selftests: hid: import hid-tools usb-crash tests
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Fri, 17 Feb 2023 13:04:41 +0000 (14:04 +0100)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Wed, 12 Apr 2023 15:13:38 +0000 (17:13 +0200)
commitbf81de760a8364656441a1fe067c17fa5261da5c
tree149d724cedcc05d0d33c61ddc4e20d044de0dc6b
parenta4ee40b6ac281125c3b7aa3e42401b271c50c7bc
selftests: hid: import hid-tools usb-crash tests

These tests have been developed in the hid-tools[0] tree for a while.
Now that we have  a proper selftests/hid kernel entry and that the tests
are more reliable, it is time to directly include those in the kernel
tree.

This one gets skipped when run by vmtest.sh as we currently need to test
against actual kernel modules (.ko), not built-in to fetch the list
of supported devices.

[0] https://gitlab.freedesktop.org/libevdev/hid-tools

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
tools/testing/selftests/hid/Makefile
tools/testing/selftests/hid/hid-usb_crash.sh [new file with mode: 0755]
tools/testing/selftests/hid/tests/test_usb_crash.py [new file with mode: 0644]