mirror of
https://github.com/netdata/libbpf.git
synced 2026-03-21 16:59:07 +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
|
||||
|
||||
test_progs
|
||||
test_progs_noalu
|
||||
test_maps
|
||||
test_verifier
|
||||
if [ $# -eq 0 ]; then
|
||||
test_progs
|
||||
test_progs_noalu
|
||||
test_maps
|
||||
test_verifier
|
||||
else
|
||||
for test_name in "$@"; do
|
||||
"${test_name}"
|
||||
done
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user