selftests: hid: import hid-tools hid-core tests
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Fri, 17 Feb 2023 11:25:14 +0000 (12:25 +0100)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Wed, 12 Apr 2023 15:13:37 +0000 (17:13 +0200)
commitffb85d5c9e80892466fe8cfead60a71f1ee7c918
tree142321f4265292d552dbdd71ef50561bfc585984
parent7d0b3f100b144d6910d75158c586b047f7e634a2
selftests: hid: import hid-tools hid-core 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.

I haven't imported all of hid-tools, the python module, but only the
tests related to the kernel. We can rely on pip to fetch the latest
hid-tools release, and then run the tests directly from the tree.

This should now be easier to request tests when something is not behaving
properly in the HID subsystem.

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

Cc: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
tools/testing/selftests/hid/Makefile
tools/testing/selftests/hid/hid-core.sh [new file with mode: 0755]
tools/testing/selftests/hid/run-hid-tools-tests.sh [new file with mode: 0755]
tools/testing/selftests/hid/tests/__init__.py [new file with mode: 0644]
tools/testing/selftests/hid/tests/base.py [new file with mode: 0644]
tools/testing/selftests/hid/tests/conftest.py [new file with mode: 0644]
tools/testing/selftests/hid/tests/test_hid_core.py [new file with mode: 0644]
tools/testing/selftests/hid/vmtest.sh