mirror of
https://github.com/netdata/libbpf.git
synced 2026-04-05 16:19:06 +08:00
Support running of individual tests
This change adjusts the run_selftests.sh script to accept an optional list of arguments specifying the tests to run. We will make use of it once we run selftests in parallel. Signed-off-by: Daniel Müller <deso@posteo.net>
This commit is contained in:
committed by
danielocfb
parent
a0d1e22c77
commit
7984737fbf
@@ -64,7 +64,13 @@ echo "ALLOWLIST: ${ALLOWLIST}"
|
|||||||
|
|
||||||
cd ${PROJECT_NAME}/selftests/bpf
|
cd ${PROJECT_NAME}/selftests/bpf
|
||||||
|
|
||||||
test_progs
|
if [ $# -eq 0 ]; then
|
||||||
test_progs_noalu
|
test_progs
|
||||||
test_maps
|
test_progs_noalu
|
||||||
test_verifier
|
test_maps
|
||||||
|
test_verifier
|
||||||
|
else
|
||||||
|
for test_name in "$@"; do
|
||||||
|
"${test_name}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user