selftests/bpf: Support multiple tests per file
authorAndrii Nakryiko <andrii@kernel.org>
Fri, 22 Oct 2021 22:32:26 +0000 (15:32 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 25 Oct 2021 21:45:46 +0000 (14:45 -0700)
commit8ea688e7f444f1830aa4b283e1364ab9d9bf42b5
tree2833b1fbad1ec1bf187bddf43f55394d45f8e385
parent6972dc3b8778ce0d9ce819c6f1e3d32ce2bc3dd9
selftests/bpf: Support multiple tests per file

Revamp how test discovery works for test_progs and allow multiple test
entries per file. Any global void function with no arguments and
serial_test_ or test_ prefix is considered a test.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20211022223228.99920-3-andrii@kernel.org
tools/testing/selftests/bpf/Makefile