source: rtems-testing/gcc/gccobjc_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#  gccobjc_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
24
25if [ ! -d ${BUILDDIR}/b-${cpu}-objc/gcc/testsuite ] ; then
26  echo Test directory not found
27  exit 1
28fi
29
30cd ${BUILDDIR}/b-${cpu}-objc/gcc/testsuite
31while :
32do
33  for BASE in objc
34  do
35    LFILE=${BASE}/${BASE}.log
36    SFILE=${BASE}/${BASE}.sum
37    if [ ! -r ${LFILE} ] ; then
38      continue
39    fi
40    loglines=`cat ${LFILE} | wc -l`
41    failed=`grep ^FAIL: ${SFILE} | wc -l`
42    passed=`grep ^PASS: ${SFILE} | wc -l`
43    unsupp=`grep ^UNSUPP ${SFILE} | wc -l`
44    unresolved=`grep ^UNRESOL ${SFILE} | wc -l`
45    untested=`grep ^UNTESTED ${SFILE} | wc -l`
46
47    printf "Lines in ${LFILE}: %5d\n" $loglines
48    printf "PASSED:           %5d\n" $passed
49    printf "FAILED:           %5d\n" $failed
50    printf "UNSUPPORTED:      %5d\n" $unsupp
51    printf "UNRESOLVED:       %5d\n" $unresolved
52    printf "UNTESTED:         %5d\n" $untested
53  done
54
55  if [ ${limit} -eq 0 ] ; then
56    break
57  fi
58  sleep ${limit}
59done
60exit 0
61
Note: See TracBrowser for help on using the repository browser.