Skip to content

Commit ab396fb

Browse files
author
Jiri Kosina
committed
Merge branch 'for-6.4/tests' into for-linus
- import of bunch of HID selftests from out-of-tree hid-tools project (Benjamin Tissoires)
2 parents 67471b8 + bf81de7 commit ab396fb

31 files changed

+8614
-10
lines changed

tools/testing/selftests/hid/Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ include ../../../build/Build.include
55
include ../../../scripts/Makefile.arch
66
include ../../../scripts/Makefile.include
77

8+
TEST_PROGS := hid-core.sh
9+
TEST_PROGS += hid-apple.sh
10+
TEST_PROGS += hid-gamepad.sh
11+
TEST_PROGS += hid-ite.sh
12+
TEST_PROGS += hid-keyboard.sh
13+
TEST_PROGS += hid-mouse.sh
14+
TEST_PROGS += hid-multitouch.sh
15+
TEST_PROGS += hid-sony.sh
16+
TEST_PROGS += hid-tablet.sh
17+
TEST_PROGS += hid-usb_crash.sh
18+
TEST_PROGS += hid-wacom.sh
19+
820
CXX ?= $(CROSS_COMPILE)g++
921

1022
HOSTPKG_CONFIG := pkg-config

tools/testing/selftests/hid/config

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,14 @@ CONFIG_HID=y
2020
CONFIG_HID_BPF=y
2121
CONFIG_INPUT_EVDEV=y
2222
CONFIG_UHID=y
23+
CONFIG_LEDS_CLASS_MULTICOLOR=y
24+
CONFIG_USB=y
25+
CONFIG_USB_HID=y
26+
CONFIG_HID_APPLE=y
27+
CONFIG_HID_ITE=y
28+
CONFIG_HID_MULTITOUCH=y
29+
CONFIG_HID_PLAYSTATION=y
30+
CONFIG_PLAYSTATION_FF=y
31+
CONFIG_HID_SONY=y
32+
CONFIG_SONY_FF=y
33+
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
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_hid_core.py
6+
7+
bash ./run-hid-tools-tests.sh
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_gamepad.py
6+
7+
bash ./run-hid-tools-tests.sh
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_ite_keyboard.py
6+
7+
bash ./run-hid-tools-tests.sh
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_keyboard.py
6+
7+
bash ./run-hid-tools-tests.sh
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_mouse.py
6+
7+
bash ./run-hid-tools-tests.sh
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_multitouch.py
6+
7+
bash ./run-hid-tools-tests.sh
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_sony.py
6+
7+
bash ./run-hid-tools-tests.sh

0 commit comments

Comments
 (0)