aboutsummaryrefslogtreecommitdiffstats
path: root/make/scripts/check-junit.sh
blob: 32df5f3251bf2c37787b94275e451ba5f190bf1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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\"" | sed -e 's/.*name=\"//g' -e 's/\".*//g'
        echo
        echo failed junit classes - errors
        grep failures $builddir/test/$resdir/* | grep -v "errors=\"0\"" | sed -e 's/.*name=\"//g' -e 's/\".*//g'
        echo
    fi
}

checkresult results
checkresult results-java7
checkresult results-x32