Commit 0bb3ed71 authored by Benjamin Tissoires's avatar Benjamin Tissoires

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: default avatarAhelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: default avatarRoderick Colenbrander <roderick.colenbrander@sony.com>
Signed-off-by: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
parent 356888cb
...@@ -9,6 +9,8 @@ TEST_PROGS := hid-core.sh ...@@ -9,6 +9,8 @@ TEST_PROGS := hid-core.sh
TEST_PROGS += hid-gamepad.sh TEST_PROGS += hid-gamepad.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-tablet.sh
CXX ?= $(CROSS_COMPILE)g++ CXX ?= $(CROSS_COMPILE)g++
......
...@@ -20,3 +20,4 @@ CONFIG_HID=y ...@@ -20,3 +20,4 @@ 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_HID_MULTITOUCH=y
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Runs tests for the HID subsystem
export TARGET=test_multitouch.py
bash ./run-hid-tools-tests.sh
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Runs tests for the HID subsystem
export TARGET=test_tablet.py
bash ./run-hid-tools-tests.sh
# HID tests can be long, so give a little bit more time
# to them
timeout=200
This source diff could not be displayed because it is too large. You can view the blob instead.
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