summaryrefslogtreecommitdiff
path: root/test/integration
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2014-05-07 21:03:45 +0200
committerMichael Vogt <mvo@debian.org>2014-05-07 21:03:45 +0200
commitb41713efc8f37d62f078bea850ef0a74e0af0103 (patch)
tree83aa83f10ac90a5f5facf269d764ffa1b740dacc /test/integration
parent41a658f873a36e2f8507a84fb40f0632e2a62b15 (diff)
show progress in run-tests
Diffstat (limited to 'test/integration')
-rwxr-xr-xtest/integration/run-tests3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/integration/run-tests b/test/integration/run-tests
index 79d5d1a29..d700cc3fc 100755
--- a/test/integration/run-tests
+++ b/test/integration/run-tests
@@ -36,11 +36,12 @@ else
CRESET=''
fi
+TOTAL="$(run-parts --list $DIR | grep '/test-' | wc -l)"
for testcase in $(run-parts --list $DIR | grep '/test-'); do
if [ "$MSGLEVEL" -le 2 ]; then
echo -n "${CTEST}Testcase ${CHIGH}$(basename ${testcase})${CRESET}: "
else
- echo "${CTEST}Run Testcase ${CHIGH}$(basename ${testcase})${CRESET}"
+ echo "${CTEST}Run Testcase ($(($ALL+1))/${TOTAL}) ${CHIGH}$(basename ${testcase})${CRESET}"
fi
if ! ${testcase}; then
FAIL=$((FAIL+1))