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