source: rtems-testing/gcc/gccgo_status @ 85c521d

4.11
Last change on this file since 85c521d was 85c521d, checked in by Joel Sherrill <joel.sherrill@…>, on May 2, 2014 at 2:14:18 PM

rtems-testing: Use eval bash instead of full path

  • Property mode set to 100755
File size: 1.2 KB
Line 
1#! /usr/bin/eval bash
2#
3#  gccgo_status
4#
5
6vfile=`dirname $0`/../VERSIONS
7if [ ! -r ${vfile} ] ; then
8  echo VERSIONS file not found
9  exit 1
10fi
11
12source ${vfile}
13
14cpu=$1
15if [ $# -eq 1 ] ; then
16  limit=0
17elif [ $# -eq 2 ] ; then
18  limit=$2
19else
20  echo usage "$0 CPU [seconds]"
21  exit 1
22fi
23
24if [ ! -d ${BUILDDIR}/b-${cpu}-go/gcc/testsuite ] ; then
25  echo Test directory not found
26  exit 1
27fi
28
29cd ${BUILDDIR}/b-${cpu}-go/gcc/testsuite
30while :
31do
32  for BASE in go
33  do
34    LFILE=${BASE}/${BASE}.log
35    SFILE=${BASE}/${BASE}.sum
36    if [ ! -r ${LFILE} ] ; then
37      continue
38    fi
39    loglines=`cat ${LFILE} | wc -l`
40    failed=`grep ^FAIL: ${SFILE} | wc -l`
41    passed=`grep ^PASS: ${SFILE} | wc -l`
42    unsupp=`grep ^UNSUPP ${SFILE} | wc -l`
43    unresolved=`grep ^UNRESOL ${SFILE} | wc -l`
44    untested=`grep ^UNTESTED ${SFILE} | wc -l`
45
46    printf "Lines in ${LFILE}: %5d\n" $loglines
47    printf "PASSED:           %5d\n" $passed
48    printf "FAILED:           %5d\n" $failed
49    printf "UNSUPPORTED:      %5d\n" $unsupp
50    printf "UNRESOLVED:       %5d\n" $unresolved
51    printf "UNTESTED:         %5d\n" $untested
52  done
53
54  if [ ${limit} -eq 0 ] ; then
55    break
56  fi
57  sleep ${limit}
58done
59exit 0
60
Note: See TracBrowser for help on using the repository browser.