blob: 448c9a4649cc9945c5f859d412663d33ab30105c (
plain) (
blame)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
#! /bin/sh
#
# gccgo_status
#
vfile=`dirname $0`/../VERSIONS
if [ ! -r ${vfile} ] ; then
echo VERSIONS file not found
exit 1
fi
source ${vfile}
cpu=$1
if [ $# -eq 1 ] ; then
limit=0
elif [ $# -eq 2 ] ; then
limit=$2
else
echo usage "$0 CPU [seconds]"
exit 1
fi
if [ ! -d ${BUILDDIR}/b-${cpu}-go/gcc/testsuite ] ; then
echo Test directory not found
exit 1
fi
cd ${BUILDDIR}/b-${cpu}-go/gcc/testsuite
while :
do
for BASE in go
do
LFILE=${BASE}/${BASE}.log
SFILE=${BASE}/${BASE}.sum
if [ ! -r ${LFILE} ] ; then
continue
fi
loglines=`cat ${LFILE} | wc -l`
failed=`grep ^FAIL: ${SFILE} | wc -l`
passed=`grep ^PASS: ${SFILE} | wc -l`
unsupp=`grep ^UNSUPP ${SFILE} | wc -l`
unresolved=`grep ^UNRESOL ${SFILE} | wc -l`
untested=`grep ^UNTESTED ${SFILE} | wc -l`
printf "Lines in ${LFILE}: %5d\n" $loglines
printf "PASSED: %5d\n" $passed
printf "FAILED: %5d\n" $failed
printf "UNSUPPORTED: %5d\n" $unsupp
printf "UNRESOLVED: %5d\n" $unresolved
printf "UNTESTED: %5d\n" $untested
done
if [ ${limit} -eq 0 ] ; then
break
fi
sleep ${limit}
done
exit 0
|