kselftest: Add test to verify probe of devices from discoverable buses
authorNícolas F. R. A. Prado <nfraprado@collabora.com>
Mon, 22 Jan 2024 18:53:21 +0000 (15:53 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Jan 2024 01:38:53 +0000 (17:38 -0800)
commitdacf1d7a78bf8a131346c47bfba7fe1f3ff44beb
treec31879f31705fd4d4a35c0b12914f1f0465f3842
parent71ba4fe566560d1d4740d8fbce5a71e16f2fc23e
kselftest: Add test to verify probe of devices from discoverable buses

Add a new test to verify that a list of expected devices from
discoverable buses (ie USB, PCI) have been successfully instantiated and
probed by a driver.

The per-platform list of expected devices is selected from the ones
under the boards/ directory based on the DT compatible or the DMI IDs.

Signed-off-by: "Nícolas F. R. A. Prado" <nfraprado@collabora.com>
Link: https://lore.kernel.org/r/20240122-discoverable-devs-ksft-v4-1-d602e1df4aa2@collabora.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/Makefile
tools/testing/selftests/devices/Makefile [new file with mode: 0644]
tools/testing/selftests/devices/ksft.py [new file with mode: 0644]
tools/testing/selftests/devices/test_discoverable_devices.py [new file with mode: 0755]