Changeset f630cdd in rtems-testing


Ignore:
Timestamp:
Sep 19, 2009, 2:56:54 AM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
735f7af
Parents:
c08854e
Message:

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

  • gdb-sim-run.in, qemu-rtems.in, skyeye-support: Add support for running coverage/trace on qemu/x86. Fine tune other details to support this.
Location:
sim-scripts
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sim-scripts/ChangeLog

    rc08854e rf630cdd  
     12009-09-18      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * gdb-sim-run.in, qemu-rtems.in, skyeye-support: Add support for
     4        running coverage/trace on qemu/x86. Fine tune other details to
     5        support this.
     6
    172009-09-16      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • sim-scripts/gdb-sim-run.in

    rc08854e rf630cdd  
    134134bspSupportsNIC="no"
    135135bspNeedsSttySane="yes"
     136bspNeedsTraceConversion="no"
     137bspWritesZeroCoverage="no"
    136138
    137139for v in 4.10 4.9 4.8 4.7 ""
     
    411413    echo BACKGROUND runtest ${toRun} ${testtype} ${limit}
    412414  runtest ${toRun} ${testtype} ${limit}
    413   # some simulators do not always write a coverage file with non-zero length
    414   # If we see this, try again
    415   while [ ${coverage} = "yes" -a ! -s ${toRun}.cov ]
    416   do
    417     echo Rerunning ${toRun} due to zero length coverage file
    418     runtest ${toRun} ${testtype} ${limit}
    419   done
     415  if [ ${coverage} = "yes" ] ; then
     416
     417    # some simulators do not always write a coverage file with non-zero length
     418    # If we see this, try again
     419    if [ ${bspWritesZeroCoverage} = "yes" ] ; then
     420      while [ ${coverage} = "yes" -a ! -s ${toRun}.cov ]
     421      do
     422        echo Rerunning ${toRun} due to zero length coverage file
     423        runtest ${toRun} ${testtype} ${limit}
     424      done
     425    fi
     426
     427    # some BSPs produce trace oriented files which need to be converted
     428    # to object coverage maps
     429    if [ ${bspNeedsTraceConversion} = "yes" ] ; then
     430      convertTraceToCoverageMap ${toRun}
     431    fi
     432
     433  fi
     434
    420435
    421436  if [ ${bspGeneratesDeviceTree} = "yes" ] ; then
  • sim-scripts/qemu-rtems.in

    rc08854e rf630cdd  
    66
    77bspUsesGDBSimulator="no"
    8 runBSP=qemu
     8runBSP=${HOME}/qemu-coverage/install/bin/qemu
     9if [ ! -r ${runBSP} ] ; then
     10  runBSP=qemu
     11fi
    912bspNeedsDos2Unix="yes"
     13bspNeedsTraceConversion="yes"
    1014
    1115# Set the defaults based upon arguments given and do some error checking
     
    4751  cp ${1} ${hd0Dir}/test.exe
    4852
    49   echo "-m 8 -boot a -fda ${fd0Image} -hda fat:${hd0Dir} \
     53  if [ ${coverage} = yes ] ; then
     54     COVERAGE_ARG="-trace ${1}.tra"
     55  fi
     56  echo "-m 8 -boot a -fda ${fd0Image} -hda fat:${hd0Dir} ${COVERAGE_ARG} \
    5057         -monitor null -nographic -serial stdio --no-reboot"
    5158}
     
    7279    *stackchk*)limit=5 ;;
    7380    *fatal*)   limit=1 ;;
     81    *psxtime0*)limit=60 ;;
    7482    *psxtime*) limit=180 ;;
    7583    *)         limit=60 ;;
     
    7886}
    7987
     88convertTraceToCoverageMap()
     89{
     90 trace_converter -l 100000 -h 200000 -f QEMU ${1}.tra ${1}.cov
     91
     92}
    8093bspGeneratesDeviceTree="no"
  • sim-scripts/skyeye-support

    rc08854e rf630cdd  
    1010bspGeneratesGDBCommands="yes"
    1111bspNeedsSttySane="no"
     12# sometimes the .cov file has a zero length
     13bspWritesZeroCoverage="yes"
    1214
    1315if [ ${coverage} = "yes" ] ; then
Note: See TracChangeset for help on using the changeset viewer.