Skip to content

Commit ce11be6

Browse files
committed
tests: show stats after test run
Show simple statistics after each test run. Change-Id: Ifca706de38c6bfd60c3948efe56183d241864f81 Signed-off-by: Pavel Boldin <pboldin@cloudlinux.com>
1 parent c61cb19 commit ce11be6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/run_tests.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,20 +573,31 @@ EOF
573573
fi
574574

575575

576+
nskipped=0
577+
nfailed=0
578+
nok=0
579+
ntotal=0
580+
576581
FAILED=""
577582

578583
${FLAVOR}_init "$TESTS"
579584
for tst in $TESTS; do
585+
ntotal=$(($ntotal + 1))
580586
if should_skip $tst; then
581587
echo "SKIP: $tst"
588+
nskipped=$(($nskipped + 1))
582589
continue
583590
fi
584591
if ! test_one $tst $FLAVOR; then
585592
FAILED="${FAILED:+$FAILED }$tst"
593+
nfailed=$(($nfailed + 1))
594+
else
595+
nok=$(($nok + 1))
586596
fi
587597
done
588598
${FLAVOR}_fini
589599

600+
echo "OK $nok FAIL $nfailed SKIP $nskipped TOTAL $ntotal"
590601
if test -n "$FAILED"; then
591602
echo "FAILED TESTS: $FAILED"
592603
exit 1

0 commit comments

Comments
 (0)