projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9578b47
)
test: Allow running only a subset of integration tests by setting SELECTED_TESTS
author
Balint Reczey
<balint.reczey@canonical.com>
Mon, 10 May 2021 18:46:37 +0000
(20:46 +0200)
committer
Luca Boccassi
<luca.boccassi@gmail.com>
Mon, 17 May 2021 13:16:09 +0000
(14:16 +0100)
test/run-integration-tests.sh
patch
|
blob
|
history
diff --git
a/test/run-integration-tests.sh
b/test/run-integration-tests.sh
index 036c075eefc214ad5ad60ff6990eb0d4d64a527f..47cf8a891247b89849c8a126472d1ef601348dbe 100755
(executable)
--- 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