projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce6b785
)
run-integration-tests: show number of tests run
author
Lennart Poettering
<lennart@poettering.net>
Fri, 23 Mar 2018 09:02:22 +0000
(10:02 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 23 Mar 2018 14:46:11 +0000
(15:46 +0100)
test/run-integration-tests.sh
patch
|
blob
|
history
diff --git
a/test/run-integration-tests.sh
b/test/run-integration-tests.sh
index 4afaa0909eee29047c510e1c7a17c5eb753c3033..94df346c286ee615bab809a5e7d15af539712bd6 100755
(executable)
--- a/
test/run-integration-tests.sh
+++ b/
test/run-integration-tests.sh
@@
-11,11
+11,13
@@
ninja -C "$BUILD_DIR"
declare -A results
-
RESUL
T=0
+
COUN
T=0
FAILURES=0
cd "$(dirname "$0")"
for TEST in TEST-??-* ; do
+ COUNT=$(($COUNT+1))
+
echo -e "\n--x-- Running $TEST --x--"
set +e
( set -x ; make -C "$TEST" "BUILD_DIR=$BUILD_DIR" $args )
@@
-40,9
+42,9
@@
for TEST in ${!results[@]}; do
done | sort
if [ "$FAILURES" -eq 0 ] ; then
- echo -e "\nALL PASSED"
+ echo -e "\nALL
$COUNT TESTS
PASSED"
else
- echo -e "\nTOTAL FAILURES: $FAILURES"
+ echo -e "\nTOTAL FAILURES: $FAILURES
OF $COUNT
"
fi
exit "$FAILURES"