Commit a4ee40b6 authored by Benjamin Tissoires's avatar Benjamin Tissoires

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 [1]
Cc: Roderick Colenbrander <roderick.colenbrander@sony.com>
Cc: Jose Torreguitar <jtguitar@google.com>
Signed-off-by: default avatarRoderick Colenbrander <roderick.colenbrander@sony.com>
Signed-off-by: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
parent ff3b2228
...@@ -12,6 +12,7 @@ TEST_PROGS += hid-ite.sh ...@@ -12,6 +12,7 @@ TEST_PROGS += hid-ite.sh
TEST_PROGS += hid-keyboard.sh TEST_PROGS += hid-keyboard.sh
TEST_PROGS += hid-mouse.sh TEST_PROGS += hid-mouse.sh
TEST_PROGS += hid-multitouch.sh TEST_PROGS += hid-multitouch.sh
TEST_PROGS += hid-sony.sh
TEST_PROGS += hid-tablet.sh TEST_PROGS += hid-tablet.sh
TEST_PROGS += hid-wacom.sh TEST_PROGS += hid-wacom.sh
......
...@@ -20,9 +20,14 @@ CONFIG_HID=y ...@@ -20,9 +20,14 @@ CONFIG_HID=y
CONFIG_HID_BPF=y CONFIG_HID_BPF=y
CONFIG_INPUT_EVDEV=y CONFIG_INPUT_EVDEV=y
CONFIG_UHID=y CONFIG_UHID=y
CONFIG_LEDS_CLASS_MULTICOLOR=y
CONFIG_USB=y CONFIG_USB=y
CONFIG_USB_HID=y CONFIG_USB_HID=y
CONFIG_HID_APPLE=y CONFIG_HID_APPLE=y
CONFIG_HID_ITE=y CONFIG_HID_ITE=y
CONFIG_HID_MULTITOUCH=y CONFIG_HID_MULTITOUCH=y
CONFIG_HID_PLAYSTATION=y
CONFIG_PLAYSTATION_FF=y
CONFIG_HID_SONY=y
CONFIG_SONY_FF=y
CONFIG_HID_WACOM=y CONFIG_HID_WACOM=y
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Runs tests for the HID subsystem
export TARGET=test_sony.py
bash ./run-hid-tools-tests.sh
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment