Skip to content

Commit

Permalink
testsuite: Summarize test counts in spectest report
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmark committed Oct 18, 2024
1 parent 3fb49e9 commit 5400b7e
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions test/testsuite/spectest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,19 +74,29 @@ else
fi

echo "====================================="
echo "Test summary"
echo "------------"
echo "Passed tests:"
grep "summary.*PASS" ./test/testsuite/spectest.log | wc -l
echo "Failed tests:"
grep "summary.*FAIL" ./test/testsuite/spectest.log | wc -l
echo "Skipped tests:"
egrep "summary.*NOT TESTED|summary.*SKIPPED" ./test/testsuite/spectest.log | wc -l
echo "====================================="

echo "Failed tests"
echo "------------"
grep "summary.*FAIL" ./test/testsuite/spectest.log | sed s/test//g | sort -n | uniq
grep "summary.*FAIL" ./test/testsuite/spectest.log | sed s/test//g | sed s/summary\ -\ //g | sort -n | uniq
echo "====================================="

echo "Skipped tests"
echo "------------"
egrep 'summary.*NOT TESTED|summary.*SKIPPED' ./test/testsuite/spectest.log | sed s/test//g | sort -n | uniq
egrep "summary.*NOT TESTED|summary.*SKIPPED" ./test/testsuite/spectest.log | sed s/test//g | sed s/summary\ -\ //g | sort -n | uniq
echo "====================================="

echo "Successful tests"
echo "------------"
grep "summary.*PASSED" ./test/testsuite/spectest.log | sed s/test//g | sort -n | uniq
grep "summary.*PASSED" ./test/testsuite/spectest.log | sed s/test//g | sed s/summary\ -\ //g | sort -n | uniq
echo "====================================="

# cleanup
Expand Down

0 comments on commit 5400b7e

Please sign in to comment.