selftests/bpf: revamp test_progs to allow more control
authorAndrii Nakryiko <andriin@fb.com>
Sun, 28 Jul 2019 03:25:24 +0000 (20:25 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 28 Jul 2019 05:36:19 +0000 (22:36 -0700)
commit766f2a59323a7881613af577718bb46cc1267b1f
tree70029292eec759666348a5e12b7d7af3b59af7ce
parent61098e89e6c80d6a141774ef8ee41e38471b069e
selftests/bpf: revamp test_progs to allow more control

Refactor test_progs to allow better control on what's being run.
Also use argp to do argument parsing, so that it's easier to keep adding
more options.

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