selftests: hid: import hid-tools hid-sony and hid-playstation tests
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Fri, 17 Feb 2023 12:56:04 +0000 (13:56 +0100)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Wed, 12 Apr 2023 15:13:38 +0000 (17:13 +0200)
commita4ee40b6ac281125c3b7aa3e42401b271c50c7bc
tree06021bf5f766bff9a3c0e1ff4a738d7517b7f9df
parentff3b2228e3c886863f13d694480e36bfdcbe33e0
selftests: hid: import hid-tools hid-sony and hid-playstation 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.

The code is taken from [1] to fix a change in v6.3.

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

Link: https://gitlab.freedesktop.org/libevdev/hid-tools/-/merge_requests/143
Cc: Roderick Colenbrander <roderick.colenbrander@sony.com>
Cc: Jose Torreguitar <jtguitar@google.com>
Signed-off-by: Roderick Colenbrander <roderick.colenbrander@sony.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
tools/testing/selftests/hid/Makefile
tools/testing/selftests/hid/config
tools/testing/selftests/hid/hid-sony.sh [new file with mode: 0755]
tools/testing/selftests/hid/tests/test_sony.py [new file with mode: 0644]