blob: 9e3461333e6d4465b514a5bb9602efacb743b837 (
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
|
#! /usr/bin/eval bash
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}-gcc/gcc/testsuite ] ; then
echo Test directory not found
exit 1
fi
cd ${BUILDDIR}/b-${cpu}-gcc/gcc/testsuite
while :
do
for BASE in gcc g++
do
LFILE=${BASE}/${BASE}.log
SFILE=${BASE}/${BASE}.log
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`
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
done
if [ ${limit} -eq 0 ] ; then
break
fi
sleep ${limit}
done
exit 0
|