selftests/hid: add tests for hid_bpf_input_report
authorBenjamin Tissoires <bentiss@kernel.org>
Fri, 15 Mar 2024 14:44:43 +0000 (15:44 +0100)
committerBenjamin Tissoires <bentiss@kernel.org>
Wed, 10 Apr 2024 14:38:37 +0000 (16:38 +0200)
commit2c0e8ced7d4bf746923fc424415844d695f07808
tree1f66356c79242fa9b030d75c07f754e765b107bd
parent9be50ac30a83896a753ab9f64e941763bb7900be
selftests/hid: add tests for hid_bpf_input_report

Usual way of testing, we call the function and ensures we receive
the event

Link: https://lore.kernel.org/r/20240315-b4-hid-bpf-new-funcs-v4-6-079c282469d3@kernel.org
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
tools/testing/selftests/hid/hid_bpf.c
tools/testing/selftests/hid/progs/hid.c
tools/testing/selftests/hid/progs/hid_bpf_helpers.h