Skip to content

Commit 356888c

Browse files
committed
selftests: hid: import hid-tools hid-mouse 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: Peter Hutterer <peter.hutterer@who-t.net> Cc: Roderick Colenbrander <roderick.colenbrander@sony.com> 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 b2c4944 commit 356888c

3 files changed

Lines changed: 985 additions & 0 deletions

File tree

tools/testing/selftests/hid/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ include ../../../scripts/Makefile.include
88
TEST_PROGS := hid-core.sh
99
TEST_PROGS += hid-gamepad.sh
1010
TEST_PROGS += hid-keyboard.sh
11+
TEST_PROGS += hid-mouse.sh
1112

1213
CXX ?= $(CROSS_COMPILE)g++
1314

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

0 commit comments

Comments
 (0)