Skip to content

Commit 9898fa5

Browse files
committed
selftests: hid: import hid-tools hid-apple 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: Roderick Colenbrander <roderick.colenbrander@sony.com> Signed-off-by: Roderick Colenbrander <roderick.colenbrander@sony.com> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
1 parent 1dec39d commit 9898fa5

4 files changed

Lines changed: 449 additions & 0 deletions

File tree

tools/testing/selftests/hid/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ include ../../../scripts/Makefile.arch
66
include ../../../scripts/Makefile.include
77

88
TEST_PROGS := hid-core.sh
9+
TEST_PROGS += hid-apple.sh
910
TEST_PROGS += hid-gamepad.sh
1011
TEST_PROGS += hid-keyboard.sh
1112
TEST_PROGS += hid-mouse.sh

tools/testing/selftests/hid/config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ CONFIG_INPUT_EVDEV=y
2222
CONFIG_UHID=y
2323
CONFIG_USB=y
2424
CONFIG_USB_HID=y
25+
CONFIG_HID_APPLE=y
2526
CONFIG_HID_MULTITOUCH=y
2627
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_apple_keyboard.py
6+
7+
bash ./run-hid-tools-tests.sh

0 commit comments

Comments
 (0)