diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-04-21 09:06:01 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-04-21 09:06:01 -0500 |
commit | e997f7abbef9f467b102e9406025bf9ee6c67f24 (patch) | |
tree | 2f40d416edb3a607bc3a32d0d3620b5ceb2e2286 | |
parent | gdb-sim.in: Symbol is now _Terminate (diff) | |
download | rtems-testing-e997f7abbef9f467b102e9406025bf9ee6c67f24.tar.bz2 |
jmr3904.in: Add ReservedInstruction as fatal message to detect
-rw-r--r-- | sim-scripts/jmr3904.in | 48 |
1 files changed, 38 insertions, 10 deletions
diff --git a/sim-scripts/jmr3904.in b/sim-scripts/jmr3904.in index decc8de..1e520ae 100644 --- a/sim-scripts/jmr3904.in +++ b/sim-scripts/jmr3904.in @@ -10,16 +10,43 @@ runARGS() checkBSPFaults() { logfile=$1 + + for err in \ + "^Unhandled exception" \ + "^mips-core: " \ + "Data Bus Error" \ + "ReservedInstruction at PC =" \ + "HILO: MFHI: MF" + do + grep "${err}" ${logfile} + if [ $? -eq 0 ]; then + return 1 + fi + done + + return 0 + grep "^Unhandled exception" ${logfile} - exceptionExit=$? + if [ $? -eq 0 ]; then + return 1 + fi + grep "^mips-core: " ${logfile} - badAccessExit=$? + if [ $? -eq 0 ]; then + return 1 + fi + grep "Data Bus Error" ${logfile} - dataBusError=$? - if [ $badAccessExit -eq 0 -o $exceptionExit -eq 0 -o \ - $dataBusError -eq 0 ] ; then + if [ $? -eq 0 ]; then return 1 fi + + grep "ReservedInstruction at PC =" ${logfile} + if [ $? -eq 0 ]; then + return 1 + fi + + return 0 } @@ -27,11 +54,12 @@ bspLimit() { testname=$1 case ${testname} in - *stackchk*)limit=5 ;; - *fatal*) limit=1 ;; - *minimum*) limit=1 ;; - *psxtime*) limit=180 ;; - *) limit=60 ;; + *stackchk*) limit=5 ;; + *fatal*) limit=1 ;; + *minimum*) limit=1 ;; + *psxtime*) limit=180 ;; + *fsdosfsformat01*) limit=90 ;; + *) limit=60 ;; esac echo ${limit} } |