From: Balint Reczey Date: Mon, 10 May 2021 18:46:37 +0000 (+0200) Subject: test: Allow running only a subset of integration tests by setting SELECTED_TESTS X-Git-Tag: v249-rc1~215 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=39f1bdecc20daae6a659a24408914b78bd65e423;p=thirdparty%2Fsystemd.git test: Allow running only a subset of integration tests by setting SELECTED_TESTS --- diff --git a/test/run-integration-tests.sh b/test/run-integration-tests.sh index 036c075eefc..47cf8a89124 100755 --- a/test/run-integration-tests.sh +++ b/test/run-integration-tests.sh @@ -60,17 +60,19 @@ pass_deny_list() { return 0 } +SELECTED_TESTS="${SELECTED_TESTS:-TEST-??-*}" + # Let's always do the cleaning operation first, because it destroys the image # cache. if [ $CLEAN = 1 ]; then - for TEST in TEST-??-* ; do + for TEST in $SELECTED_TESTS; do ( set -x ; make -C "$TEST" clean ) done fi # Run actual tests (if requested) if [[ $args =~ [a-z] ]]; then - for TEST in TEST-??-* ; do + for TEST in $SELECTED_TESTS; do COUNT=$(($COUNT+1)) pass_deny_list $TEST || continue