aboutsummaryrefslogtreecommitdiffstats
path: root/make/scripts
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-05-04 01:39:16 +0200
committerSven Gothel <[email protected]>2023-05-04 01:39:16 +0200
commitd9dd218df3439528c447ec9b16f5492e32e6dcbd (patch)
treef6523b4dd6e0ef209a0138c2d8e997d17a7acb4f /make/scripts
parent96d44e51aa1fa2ed4c5b9af40e327d42c80387df (diff)
Add check-junit.sh test result script
Diffstat (limited to 'make/scripts')
-rwxr-xr-xmake/scripts/check-junit.sh38
1 files changed, 38 insertions, 0 deletions
diff --git a/make/scripts/check-junit.sh b/make/scripts/check-junit.sh
new file mode 100755
index 0000000..474d074
--- /dev/null
+++ b/make/scripts/check-junit.sh
@@ -0,0 +1,38 @@
+#! /bin/bash
+
+builddir=$1
+shift
+
+function checkresult() {
+ resdir=$1
+ shift
+ if [ -e $builddir/test/$resdir ] ; then
+ echo
+ echo Results of $builddir/test/$resdir
+ echo
+ echo number of junit classes
+ grep failures $builddir/test/$resdir/* | wc
+ echo
+ echo number of passed junit classes - failures
+ grep failures $builddir/test/$resdir/* | grep "failures=\"0\"" | wc
+ echo
+ echo number of passed junit classes - errors
+ grep failures $builddir/test/$resdir/* | grep "errors=\"0\"" | wc
+ echo
+ echo number of failed junit classes - failures
+ grep failures $builddir/test/$resdir/* | grep -v "failures=\"0\"" | wc
+ echo
+ echo number of failed junit classes - errors
+ grep failures $builddir/test/$resdir/* | grep -v "errors=\"0\"" | wc
+ echo
+ echo failed junit classes - failures
+ grep failures $builddir/test/$resdir/* | grep -v "failures=\"0\""
+ echo
+ echo failed junit classes - errors
+ grep failures $builddir/test/$resdir/* | grep -v "errors=\"0\""
+ echo
+ fi
+}
+
+checkresult results
+checkresult results-x32