]> asedeno.scripts.mit.edu Git - linux.git/commit
selftests/bpf: add test selectors by number and name to test_progs
authorAndrii Nakryiko <andriin@fb.com>
Sun, 28 Jul 2019 03:25:25 +0000 (20:25 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 28 Jul 2019 05:36:19 +0000 (22:36 -0700)
commit8160bae21fc29de0ec795abcd209cdd7cc144e8e
tree602a150f39ac662a653b12cfe106b8a17a5baa3f
parent766f2a59323a7881613af577718bb46cc1267b1f
selftests/bpf: add test selectors by number and name to test_progs

Add ability to specify either test number or test name substring to
narrow down a set of test to run.

Usage:
sudo ./test_progs -n 1
sudo ./test_progs -t attach_probe

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/test_progs.c