]> git.saurik.com Git - apt.git/blobdiff - test/integration/run-tests
Merge remote-tracking branch 'mvo/feature/README' into debian/sid
[apt.git] / test / integration / run-tests
index 79d5d1a293c4d583055ffc39aabb0b1b0260ed1d..9dd550aa253194bc81b1ce90cdd9e5a6204c82cf 100755 (executable)
@@ -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}: "
+               printf "($(($ALL+1))/${TOTAL}) ${CTEST}Testcase ${CHIGH}$(basename ${testcase})${CRESET}: "
        else
-               echo "${CTEST}Run Testcase ${CHIGH}$(basename ${testcase})${CRESET}"
+               printf "${CTEST}Run Testcase ($(($ALL+1))/${TOTAL}) ${CHIGH}$(basename ${testcase})${CRESET}\n"
        fi
        if ! ${testcase}; then
                FAIL=$((FAIL+1))