Skip to content

Commit 1dec39d

Browse files
committed
selftests: hid: import hid-tools wacom 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. [0] https://gitlab.freedesktop.org/libevdev/hid-tools Cc: Jason Gerecke <killertofu@gmail.com> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
1 parent 0bb3ed7 commit 1dec39d

5 files changed

Lines changed: 2215 additions & 0 deletions

File tree

tools/testing/selftests/hid/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ TEST_PROGS += hid-keyboard.sh
1111
TEST_PROGS += hid-mouse.sh
1212
TEST_PROGS += hid-multitouch.sh
1313
TEST_PROGS += hid-tablet.sh
14+
TEST_PROGS += hid-wacom.sh
1415

1516
CXX ?= $(CROSS_COMPILE)g++
1617

tools/testing/selftests/hid/config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,7 @@ CONFIG_HID=y
2020
CONFIG_HID_BPF=y
2121
CONFIG_INPUT_EVDEV=y
2222
CONFIG_UHID=y
23+
CONFIG_USB=y
24+
CONFIG_USB_HID=y
2325
CONFIG_HID_MULTITOUCH=y
26+
CONFIG_HID_WACOM=y
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
# SPDX-License-Identifier: GPL-2.0
3+
# Runs tests for the HID subsystem
4+
5+
export TARGET=test_wacom_generic.py
6+
7+
bash ./run-hid-tools-tests.sh

0 commit comments

Comments
 (0)