summaryrefslogtreecommitdiffstats
path: root/make/scripts/check-junit.sh
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-12-18 23:11:17 +0100
committerSven Gothel <[email protected]>2011-12-18 23:11:17 +0100
commit013600318f24391cd6c8c541343c208736b5f4f4 (patch)
tree763fa750e1a35ca3f1608d3f0e14bdded71aad51 /make/scripts/check-junit.sh
parentaa4cc872d630d7de170bdc4202d072220c053325 (diff)
junit.run: Add 32bit tests for OSX (fat binaries)v2.0-rc5
Diffstat (limited to 'make/scripts/check-junit.sh')
-rwxr-xr-xmake/scripts/check-junit.sh53
1 files changed, 32 insertions, 21 deletions
diff --git a/make/scripts/check-junit.sh b/make/scripts/check-junit.sh
index 1b1ba78..474d074 100755
--- a/make/scripts/check-junit.sh
+++ b/make/scripts/check-junit.sh
@@ -3,25 +3,36 @@
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
+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