diff options
author | Sven Gothel <[email protected]> | 2014-02-12 03:06:24 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-02-12 03:06:24 +0100 |
commit | a44d27c5afd4622f3ec8da464e40dfeb2e729cdd (patch) | |
tree | 4af049502a074983208df289abbf358bb2acc606 /make/scripts/check-junit.sh | |
parent | 0874fa955c0401dba9f54816a9654bb4380abed8 (diff) |
Add scripts/check-junit.sh to validate local unit tests ..
Diffstat (limited to 'make/scripts/check-junit.sh')
-rwxr-xr-x | make/scripts/check-junit.sh | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/make/scripts/check-junit.sh b/make/scripts/check-junit.sh new file mode 100755 index 00000000..232b3c6a --- /dev/null +++ b/make/scripts/check-junit.sh @@ -0,0 +1,39 @@ +#! /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-java7 +checkresult results-x32 |