Changeset 1ecb62c in rtems-testing


Ignore:
Timestamp:
Jul 8, 2010, 8:18:50 AM (9 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
0ad2fef
Parents:
dca7321
Message:

2010-07-08 Sebastian Huber <sebastian.huber@…>

  • gdb-sim-run.in: Changed non-interactive test run status messages.
Location:
sim-scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sim-scripts/ChangeLog

    rdca7321 r1ecb62c  
     12010-07-08      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * gdb-sim-run.in: Changed non-interactive test run status messages.
     4
    152010-07-07      Sebastian Huber <sebastian.huber@embedded-brains.de>
    26
  • sim-scripts/gdb-sim-run.in

    rdca7321 r1ecb62c  
    286286  fi
    287287
    288   echo Running ${testname} for maximum ${max_run_time} seconds
    289288  echo $testname | grep "exe$" >/dev/null
    290289  tname=`get_tname $testname`
     
    312311  millilimit=`expr ${max_run_time} \* 1000`
    313312  milliseconds=0
     313  echo -n "running ${testname} for maximum ${max_run_time} seconds... "
    314314  while :
    315315  do
    316     # sleep 10ms at a time waiting for job to finish or timer to expire
     316    # sleep 50ms at a time waiting for job to finish or timer to expire
    317317    # if job has exited, then we exit, too.
    318318    usleep 50000  # fifty milliseconds
     
    323323      if [ ${milliseconds} -ge ${millilimit} ]; then
    324324        killpid ${pid}
    325         catLog ${logfile}
    326         echo "${testname} killed after running ${max_run_time} seconds"
     325        echo -n "killed due to over time... "
    327326        break
    328327      fi
     
    332331      # check for BSP specific messages which indicate program ended
    333332      checkBSPFaults ${logfile} >/dev/null 2>&1
    334       bspFaults=$?
     333      if [ $? -ne 0  ] ; then
     334        killpid ${pid}
     335        echo -n "killed due to BSP fault... "
     336        break
     337      fi
    335338      # check for cross platform messages which indicate program ended
    336339      checkGenericExits ${logfile} #>/dev/null 2>&1
    337       genericExits=$?
    338       if [ ${bspFaults} -ne 0 -o ${genericExits} -ne 0 ] ; then
     340      if [ $? -ne 0 ] ; then
    339341        killpid ${pid}
    340         catLog ${logfile}
    341         echo Ran in ${milliseconds} milliseconds
     342        echo -n "killed due to generic exit... "
     343        break
     344      fi
     345    else
     346      # done normally
    342347      break
    343       fi
    344   else
    345     # done normally
    346     catLog ${logfile}
    347     test ${verbose} = "yes" && \
    348       echo "${testname} ran in ${milliseconds} milliseconds"
    349     break
    350   fi
     348    fi
    351349  done
     350  catLog ${logfile}
     351  echo "${milliseconds} ms run time"
    352352}
    353353
     
    405405  case ${toRun} in
    406406    monitor*|termios.*|fileio*|capture*)
    407         warn "Skipping ${toRun}; it is interactive"
     407        warn "skipping interactive ${toRun}"
    408408        continue
    409409        ;;
     
    416416      ;;
    417417    pppd*)
    418       warn "Skipping ${toRun}; it locks up or takes a VERY long time to run"
     418      warn "skipping long running ${toRun}"
    419419      continue
    420420      ;;
Note: See TracChangeset for help on using the changeset viewer.