aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/test_lirc_mode2.sh
AgeCommit message (Collapse)AuthorFilesLines
2022-03-21selftests/bpf/test_lirc_mode2.sh: Exit with proper codeHangbin Liu1-1/+4
When test_lirc_mode2_user exec failed, the test report failed but still exit with 0. Fix it by exiting with an error code. Another issue is for the LIRCDEV checking. With bash -n, we need to quote the variable, or it will always be true. So if test_lirc_mode2_user was not run, just exit with skip code. Fixes: 6bdd533cee9a ("bpf: add selftest for lirc_mode2 type program") Signed-off-by: Hangbin Liu <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
2018-12-09media: bpf: add bpf function to report mouse movementSean Young1-1/+2
Some IR remotes have a directional pad or other pointer-like thing that can be used as a mouse. Make it possible to decode these types of IR protocols in BPF. Cc: [email protected] Signed-off-by: Sean Young <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]>
2018-06-26selftests: bpf: notification about privilege required to run ↵Jeffrin Jose T1-0/+9
test_lirc_mode2.sh testing script The test_lirc_mode2.sh script require root privilege for the successful execution of the test. This patch is to notify the user about the privilege the script demands for the successful execution of the test. Signed-off-by: Jeffrin Jose T (Rajagiri SET) <[email protected]> Acked-by: Song Liu <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
2018-05-30bpf: add selftest for lirc_mode2 type programSean Young1-0/+28
This is simple test over rc-loopback. Acked-by: Yonghong Song <[email protected]> Signed-off-by: Sean Young <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>