diff options
author | Michael Vogt <mvo@debian.org> | 2014-05-07 21:03:45 +0200 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2014-05-07 21:03:45 +0200 |
commit | b41713efc8f37d62f078bea850ef0a74e0af0103 (patch) | |
tree | 83aa83f10ac90a5f5facf269d764ffa1b740dacc /test/integration | |
parent | 41a658f873a36e2f8507a84fb40f0632e2a62b15 (diff) |
show progress in run-tests
Diffstat (limited to 'test/integration')
-rwxr-xr-x | test/integration/run-tests | 3 |
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)) |