selftests/hid: import base_device.py from hid-tools
authorBenjamin Tissoires <bentiss@kernel.org>
Wed, 10 Apr 2024 17:19:30 +0000 (19:19 +0200)
committerBenjamin Tissoires <bentiss@kernel.org>
Tue, 7 May 2024 13:39:23 +0000 (15:39 +0200)
commita7def2e51c667578140d9aa3282533463ed3df91
treed74968d1d3f3163c496e93b7cca9141f2d822dc0
parent0cd1465cac52d7d5b4584a29f97bddc5e8bb421f
selftests/hid: import base_device.py from hid-tools

We need to slightly change base_device.py for supporting HID-BPF,
so instead of monkey patching, let's just embed it in the kernel tree.

Link: https://lore.kernel.org/r/20240410-bpf_sources-v1-10-a8bf16033ef8@kernel.org
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
tools/testing/selftests/hid/tests/base.py
tools/testing/selftests/hid/tests/base_device.py [new file with mode: 0644]