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:
Daniel Müller
2022-08-15 15:34:09 -07:00
committed by danielocfb
parent a0d1e22c77
commit 7984737fbf

View File

@@ -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