Skip to content

Commit 0bb3ed7

Browse files
committed
selftests: hid: import hid-tools hid-multitouch and hid-tablets 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. There are a lot of multitouch tests, and the default timeout of 45 seconds is not big enough. Bump it to 200 seconds. [0] https://gitlab.freedesktop.org/libevdev/hid-tools Cc: Peter Hutterer <peter.hutterer@who-t.net> Cc: Kai-Heng Feng <kai.heng.feng@canonical.com> Cc: Roderick Colenbrander <roderick.colenbrander@sony.com> Cc: наб <nabijaczleweli@nabijaczleweli.xyz> Cc: Blaž Hrastnik <blaz@mxxn.io> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Roderick Colenbrander <roderick.colenbrander@sony.com> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
1 parent 356888c commit 0bb3ed7

7 files changed

Lines changed: 2980 additions & 0 deletions

File tree

tools/testing/selftests/hid/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ TEST_PROGS := hid-core.sh
99
TEST_PROGS += hid-gamepad.sh
1010
TEST_PROGS += hid-keyboard.sh
1111
TEST_PROGS += hid-mouse.sh
12+
TEST_PROGS += hid-multitouch.sh
13+
TEST_PROGS += hid-tablet.sh
1214

1315
CXX ?= $(CROSS_COMPILE)g++
1416

tools/testing/selftests/hid/config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ CONFIG_HID=y
2020
CONFIG_HID_BPF=y
2121
CONFIG_INPUT_EVDEV=y
2222
CONFIG_UHID=y
23+
CONFIG_HID_MULTITOUCH=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_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_tablet.py
6+
7+
bash ./run-hid-tools-tests.sh
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# HID tests can be long, so give a little bit more time
2+
# to them
3+
timeout=200

0 commit comments

Comments
 (0)