diff options
author | Benjamin Tissoires <bentiss@kernel.org> | 2024-08-27 10:19:31 +0200 |
---|---|---|
committer | Benjamin Tissoires <bentiss@kernel.org> | 2024-08-29 10:39:37 +0200 |
commit | 8163892a629ca544af575ce54955bf275a3250cd (patch) | |
tree | ccaa5e2ed60fd8b46f9350740624cd8b66f8e933 /tools/testing/selftests/hid/Makefile | |
parent | selftests/hid: extract the utility part of hid_bpf.c into its own header (diff) | |
download | linux-8163892a629ca544af575ce54955bf275a3250cd.tar.xz linux-8163892a629ca544af575ce54955bf275a3250cd.zip |
selftests/hid: Add initial hidraw tests skeleton
Largely inspired from hid_bpf.c for the fixture setup.
Create a couple of tests for hidraw:
- create a uhid device and check if the fixture is working properly
- inject one uhid event and read it through hidraw
These tests are not that useful for now, but will be once we start adding
the ioctl and BPFs to revoke the hidraw node.
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Link: https://patch.msgid.link/20240827-hidraw-revoke-v5-3-d004a7451aea@kernel.org
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Diffstat (limited to 'tools/testing/selftests/hid/Makefile')
-rw-r--r-- | tools/testing/selftests/hid/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/hid/Makefile b/tools/testing/selftests/hid/Makefile index 2b5ea18bde38..72be55ac4bdf 100644 --- a/tools/testing/selftests/hid/Makefile +++ b/tools/testing/selftests/hid/Makefile @@ -32,7 +32,7 @@ CFLAGS += -Wno-unused-command-line-argument endif # Order correspond to 'make run_tests' order -TEST_GEN_PROGS = hid_bpf +TEST_GEN_PROGS = hid_bpf hidraw # Emit succinct information message describing current building step # $1 - generic step name (e.g., CC, LINK, etc); |