summaryrefslogtreecommitdiffstats
path: root/make/scripts/check-junit.sh
diff options
context:
space:
mode:
Diffstat (limited to 'make/scripts/check-junit.sh')
-rwxr-xr-xmake/scripts/check-junit.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/make/scripts/check-junit.sh b/make/scripts/check-junit.sh
new file mode 100755
index 0000000..1b1ba78
--- /dev/null
+++ b/make/scripts/check-junit.sh
@@ -0,0 +1,27 @@
+#! /bin/bash
+
+builddir=$1
+shift
+
+echo number of junit classes
+grep failures $builddir/test/results/* | wc
+echo
+echo number of passed junit classes - failures
+grep failures $builddir/test/results/* | grep "failures=\"0\"" | wc
+echo
+echo number of passed junit classes - errors
+grep failures $builddir/test/results/* | grep "errors=\"0\"" | wc
+echo
+echo number of failed junit classes - failures
+grep failures $builddir/test/results/* | grep -v "failures=\"0\"" | wc
+echo
+echo number of failed junit classes - errors
+grep failures $builddir/test/results/* | grep -v "errors=\"0\"" | wc
+echo
+echo failed junit classes - failures
+grep failures $builddir/test/results/* | grep -v "failures=\"0\""
+echo
+echo failed junit classes - errors
+grep failures $builddir/test/results/* | grep -v "errors=\"0\""
+echo
+