From 7984737fbf3b2a14a86321387bb62abb16cfc4ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20M=C3=BCller?= Date: Mon, 15 Aug 2022 15:34:09 -0700 Subject: [PATCH] Support running of individual tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- ci/vmtest/run_selftests.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/ci/vmtest/run_selftests.sh b/ci/vmtest/run_selftests.sh index 0561d66..4ae05ed 100755 --- a/ci/vmtest/run_selftests.sh +++ b/ci/vmtest/run_selftests.sh @@ -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