From 66b788c1a464226249794cd5a0f4fb317d2be2a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20M=C3=BCller?= Date: Mon, 15 Aug 2022 14:42:57 -0700 Subject: [PATCH] Factor out test_progs_noalu function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This change factors out a new function, test_progs_noalu, in the run_selftests.sh script. Having this function available will make it easier for us to run tests conditionally later on, but it's also a matter of having one function for one binary. Signed-off-by: Daniel Müller --- travis-ci/vmtest/run_selftests.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/travis-ci/vmtest/run_selftests.sh b/travis-ci/vmtest/run_selftests.sh index fc2df61..30aec6e 100755 --- a/travis-ci/vmtest/run_selftests.sh +++ b/travis-ci/vmtest/run_selftests.sh @@ -26,7 +26,9 @@ test_progs() { echo "test_progs:$?" >> "${STATUS_FILE}" foldable end test_progs fi +} +test_progs_noalu() { foldable start test_progs-no_alu32 "Testing test_progs-no_alu32" ./test_progs-no_alu32 ${DENYLIST:+-d$DENYLIST} ${ALLOWLIST:+-a$ALLOWLIST} && true echo "test_progs-no_alu32:$?" >> "${STATUS_FILE}" @@ -56,6 +58,7 @@ ALLOWLIST=$(read_lists "$configs_path/ALLOWLIST-${KERNEL}" "$configs_path/ALLOWL cd ${PROJECT_NAME}/selftests/bpf test_progs +test_progs_noalu if [[ "${KERNEL}" == 'latest' ]]; then test_maps