Changeset 055296c in rtems-testing for sim-scripts


Ignore:
Timestamp:
Mar 20, 2009, 7:41:25 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
29c59b5
Parents:
5466c7a
Message:

2009-03-20 Joel Sherrill <joel.sherrill@…>

  • edb7312.in, gdb-sim-run.in, skyeye-support, tsim-support: More tunning on skyeye and erc32.
Location:
sim-scripts
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • sim-scripts/ChangeLog

    r5466c7a r055296c  
     12009-03-20      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * edb7312.in, gdb-sim-run.in, skyeye-support, tsim-support: More
     4        tunning on skyeye and erc32.
     5
    162009-03-19      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • sim-scripts/edb7312.in

    r5466c7a r055296c  
    1616  bspExited_ARM
    1717  return $?
    18 }
    19 
    20 bspLimit()
    21 {
    22   testname=$1
    23   case ${tname} in
    24     *stackchk*)limit=5 ;;
    25     *fatal*)   limit=1 ;;
    26     *psxtime*) limit=180 ;;
    27     *)         limit=60 ;;
    28   esac
    29   return ${limit}
    3018}
    3119
  • sim-scripts/gdb-sim-run.in

    r5466c7a r055296c  
    6060coverage="no"
    6161verbose="no"
    62 limit="not_set"
     62defaultLimit="not_set"
    6363interactive="no"
    6464use_sysv_ipc="no"
     
    7272   g) generate_tree_and_exit="yes" ;;
    7373   i) interactive="yes";;
    74    l) limit="$OPTARG";;
     74   l) defaultLimit="$OPTARG";;
    7575   s) use_sysv_ipc="yes";;
    7676   *) fatal;;
     
    8282
    8383if [ ${interactive} = "yes" ] ; then
    84   limit=0
     84  defaultLimit=0
    8585fi
    8686
     
    9393bspUsesGDBSimulator="yes"
    9494bspNeedsDos2Unix="no"
     95bspSimTrustedToExit="no"
    9596
    9697for v in 4.10 4.9 4.8 4.7 ""
     
    198199  echo run ${testname} for maximum ${max_run_time} seconds
    199200  logfile=${testname}.tmp
     201
     202  if [ ${bspSimTrustedToExit} = "yes" ] ; then
     203    ${runBSP} `runARGS ${testname}` >${logfile} 2>&1
     204    catLog ${logfile}
     205    rm -f ${logfile}
     206    return
     207  fi
    200208  ${runBSP} `runARGS ${testname}` >${logfile} 2>&1 &
    201209  pid=$!
    202 
    203210  # Make sure it won't run forever...
    204211  millilimit=`expr ${max_run_time} \* 1000`
     
    214221    if [ $running -eq 0 ] ; then
    215222      if [ ${milliseconds} -ge ${millilimit} ]; then
     223        kill -2 $pid 2> /dev/null
     224        usleep 1000
    216225        kill -9 $pid 2> /dev/null
    217226        catLog ${logfile}
     
    229238      genericExits=$?
    230239      if [ ${bspFaults} -ne 0 -o ${genericExits} -ne 0 ] ; then
     240        kill -2 $pid 2> /dev/null
     241        usleep 1000
    231242        kill -9 ${pid} >/dev/null 2>&1
    232243        catLog ${logfile}
    233244        echo Ran in ${milliseconds} milliseconds
    234         break
     245      break
    235246      fi
    236247  else
     
    242253  done
    243254  kill -9 $pid >/dev/null 2>&1
     255
    244256  rm ${logfile}
    245257}
     
    262274  esac
    263275  # calculate the limit in case it is used by the simulator script
    264   if [ ${limit} = "not_set" ] ; then
     276  if [ ${defaultLimit} = "not_set" ] ; then
    265277    bspLimit ${toRun}
    266278    limit=$?
     279  else
     280    limit=${defaultLimit}
    267281  fi
    268282
  • sim-scripts/skyeye-support

    r5466c7a r055296c  
    77bspUsesGDBSimulator="no"
    88bspNeedsDos2Unix="yes"
     9if [ ${coverage} = "yes" ] ; then
     10  bspRunFatal="yes"
     11fi
    912runBSP=skyeye
     13
     14bspLimit()
     15{
     16  tname=$1
     17  case ${tname} in
     18    *stackchk*)limit=5 ;;
     19    *fatal*)   limit=1 ;;
     20    *psxtime*) limit=180 ;;
     21    *)         limit=60 ;;
     22  esac
     23  return ${limit}
     24}
    1025
    1126bspExited_ARM()
  • sim-scripts/tsim-support

    r5466c7a r055296c  
    4242}
    4343
     44bspSimTrustedToExit="yes"
    4445bspGeneratesDeviceTree="yes"
    4546bspTreeFile=${tsimName}.conf
     
    5758  if [ ${coverage} = yes ] ; then
    5859    echo "coverage save ${2}.cov"
     60    echo "shell sleep 1"           # give tsim time to actually write file
    5961  fi
    6062  echo "quit"
Note: See TracChangeset for help on using the changeset viewer.