From 5400b7efc73f673654356cd474a6f8ffa4785a47 Mon Sep 17 00:00:00 2001 From: Daniel Markstedt Date: Fri, 18 Oct 2024 21:09:05 +0200 Subject: [PATCH] testsuite: Summarize test counts in spectest report --- test/testsuite/spectest.sh | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/test/testsuite/spectest.sh b/test/testsuite/spectest.sh index 92e288bd96..8fde5104f7 100755 --- a/test/testsuite/spectest.sh +++ b/test/testsuite/spectest.sh @@ -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