Changeset e997f7a in rtems-testing


Ignore:
Timestamp:
Apr 21, 2014, 2:06:01 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
85c521d
Parents:
ee6207c
Message:

jmr3904.in: Add ReservedInstruction? as fatal message to detect

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sim-scripts/jmr3904.in

    ree6207c re997f7a  
    1111{
    1212  logfile=$1
     13 
     14  for err in \
     15    "^Unhandled exception" \
     16    "^mips-core: " \
     17    "Data Bus Error" \
     18    "ReservedInstruction at PC =" \
     19    "HILO: MFHI: MF"
     20  do
     21    grep "${err}" ${logfile}
     22    if [ $? -eq 0 ]; then
     23      return 1
     24    fi
     25  done
     26
     27  return 0
     28
    1329  grep "^Unhandled exception" ${logfile}
    14   exceptionExit=$?
    15   grep "^mips-core: " ${logfile}
    16   badAccessExit=$?
    17   grep "Data Bus Error" ${logfile}
    18   dataBusError=$?
    19   if [ $badAccessExit -eq 0 -o $exceptionExit -eq 0 -o \
    20        $dataBusError -eq 0 ] ; then
     30  if [ $? -eq 0 ]; then
    2131    return 1
    2232  fi
     33
     34  grep "^mips-core: " ${logfile}
     35  if [ $? -eq 0 ]; then
     36    return 1
     37  fi
     38
     39  grep "Data Bus Error" ${logfile}
     40  if [ $? -eq 0 ]; then
     41    return 1
     42  fi
     43
     44  grep "ReservedInstruction at PC =" ${logfile}
     45  if [ $? -eq 0 ]; then
     46    return 1
     47  fi
     48
     49
    2350  return 0
    2451}
     
    2855  testname=$1
    2956  case ${testname} in
    30     *stackchk*)limit=5 ;;
    31     *fatal*)   limit=1 ;;
    32     *minimum*) limit=1 ;;
    33     *psxtime*) limit=180 ;;
    34     *)         limit=60 ;;
     57    *stackchk*)        limit=5 ;;
     58    *fatal*)           limit=1 ;;
     59    *minimum*)         limit=1 ;;
     60    *psxtime*)         limit=180 ;;
     61    *fsdosfsformat01*) limit=90 ;;
     62    *)                 limit=60 ;;
    3563  esac
    3664  echo ${limit}
Note: See TracChangeset for help on using the changeset viewer.