Changeset 6871c37 in rtems-testing for sim-scripts


Ignore:
Timestamp:
Mar 18, 2009, 9:42:19 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
166c716
Parents:
800a0d7
Message:

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

  • edb7312.in, gdb-sim-run.in: Add code coverage support. Tune for skyeye.
Location:
sim-scripts
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sim-scripts/ChangeLog

    r800a0d7 r6871c37  
     12009-03-18      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * edb7312.in, gdb-sim-run.in: Add code coverage support. Tune for
     4        skyeye.
     5
    162009-03-17      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • sim-scripts/edb7312.in

    r800a0d7 r6871c37  
    4343uart: mod=pipe, desc_in=/dev/null, desc_out=/dev/stdout
    4444EOF
     45
     46  if [ ${coverage} = yes ] ; then
     47    echo "code_coverage: state=on, filename=${2}.cov, start=0x80000000, end=0x80100000"
     48  fi
    4549}
  • sim-scripts/gdb-sim-run.in

    r800a0d7 r6871c37  
    129129checkGenericExits()
    130130{
     131set -x
    131132  logfile=$1
    132133
     
    150151          running=$?
    151152          if [ $running -eq 0 ] ; then
     153            kill -2 ${pid} 2>/dev/null  # SIGINT
    152154            sleep 1
     155            kill -9 ${pid} 2>/dev/null
    153156          else
    154157            return 1
     
    194197  fi
    195198
    196   #echo run ${testname} for maximum ${max_run_time} seconds
     199  echo run ${testname} for maximum ${max_run_time} seconds
    197200  logfile=${testname}.tmp
    198201  ${runBSP} `runARGS ${testname}` >${logfile} 2>&1 &
     
    224227      bspFaults=$?
    225228      # check for cross platform messages which indicate program ended
    226       checkGenericExits ${logfile} >/dev/null 2>&1
     229      checkGenericExits ${logfile} #>/dev/null 2>&1
    227230      genericExits=$?
    228231      if [ ${bspFaults} -ne 0 -o ${genericExits} -ne 0 ] ; then
     
    240243  done
    241244  kill -9 $pid >/dev/null 2>&1
     245  rm ${logfile}
    242246}
    243247
Note: See TracChangeset for help on using the changeset viewer.