Changeset 96c31138 in rtems-testing


Ignore:
Timestamp:
Jan 20, 2009, 8:17:05 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
c4a8fd4
Parents:
7ca77ba
Message:

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

  • .cvsignore, Makefile, gdb-sim-run.in, gdb-sim.in, skyeye-support: Add qemu-rtems script.
  • qemu-rtems.in: New file.
Location:
sim-scripts
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • sim-scripts/.cvsignore

    r7ca77ba r96c31138  
    1919psim
    2020psim-gdb
     21qemu-rtems
    2122rtl22xx
    2223smdk2410
  • sim-scripts/ChangeLog

    r7ca77ba r96c31138  
     12009-01-20      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * .cvsignore, Makefile, gdb-sim-run.in, gdb-sim.in, skyeye-support: Add
     4        qemu-rtems script.
     5        * qemu-rtems.in: New file.
     6
    172009-01-20      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • sim-scripts/Makefile

    r7ca77ba r96c31138  
    1010  rtl22xx smdk2410
    1111TSIM_SCRIPTS=erc32 leon2 leon3
    12 GENERATED_SCRIPTS=${GDBSIM_SCRIPTS} ${SKYEYE_SCRIPTS} ${TSIM_SCRIPTS}
     12QEMU_SCRIPTS=qemu-rtems
     13GENERATED_SCRIPTS=${GDBSIM_SCRIPTS} ${SKYEYE_SCRIPTS} \
     14  ${TSIM_SCRIPTS} ${QEMU_SCRIPTS}
    1315COMPILED_PROGRAMS=usleep
    1416
     
    2022usleep: usleep.c
    2123        $(CC) -o $@ $<
     24
     25### QEMU BSPs
     26qemu-rtems: gdb-sim-run.in qemu-rtems.in
     27        ./mkrun no i386 i386 qemu-rtems
    2228
    2329### Skyeye Simulator BSPs
  • sim-scripts/gdb-sim-run.in

    r7ca77ba r96c31138  
    9292bspSupportsSystemVIPC="no"
    9393bspUsesGDBSimulator="yes"
     94bspNeedsDos2Unix="no"
    9495
    9596for v in 4.10 4.9 4.8 4.7 ""
     
    104105runBSP=${defaultRUN}
    105106
    106 rtemsVersion=`echo ${progname} | sed -e 's/@BSP@-//' -e 's/-gdb//'`
    107 
    108107###################################################################
    109108###################################################################
     
    127126
    128127## These are faults any BSP may generate.  They are common to RTEMS.
    129 checkGenericFaults()
     128checkGenericExits()
    130129{
    131130  logfile=$1
     
    133132  ## Clean exit patterns -- delay for coverage to get written
    134133  for pattern in  \
    135      "^.*EXECUTIVE SHUTDOWN" \
    136      "^\*\*\* END OF "
     134      "^\*\*\* END OF " \
     135      "^.*EXECUTIVE SHUTDOWN" \
     136      "===.*FAILED.*===" \
     137      "===.*PASSED.*===" \
     138      "FAULTY THREAD WILL BE DELETED"
    137139  do
    138140    grep "${pattern}" ${logfile} >/dev/null 2>&1
     
    170172}
    171173
     174catLog()
     175{
     176  if [ ${bspNeedsDos2Unix} = "yes" ] ; then
     177    dos2unix ${1}
     178  fi
     179
     180  tr -d "\015" <${1}
     181  echo
     182}
     183
    172184runtest()
    173185{
     
    193205    # sleep 10ms at a time waiting for job to finish or timer to expire
    194206    # if job has exited, then we exit, too.
    195     usleep 10000  # ten milliseconds
    196     milliseconds=`expr ${milliseconds} + 10`
     207    usleep 25000  # twenty five milliseconds
     208    milliseconds=`expr ${milliseconds} + 25`
    197209    kill -0 $pid 2> /dev/null
    198210    running=$?
     
    200212      if [ ${milliseconds} -ge ${millilimit} ]; then
    201213        kill -9 $pid 2> /dev/null
    202         cat ${logfile}
     214        catLog ${logfile}
    203215        echo "${testname} killed after running ${max_run_time} seconds"
    204216        break
     
    207219        continue
    208220      fi
     221      # check for BSP specific messages which indicate program ended
    209222      checkBSPFaults ${logfile} >/dev/null 2>&1
    210223      bspFaults=$?
    211       checkGenericFaults ${logfile} >/dev/null 2>&1
    212       genericFaults=$?
    213       if [ ${bspFaults} -ne 0 -o ${genericFaults} -ne 0 ] ; then
     224      # check for cross platform messages which indicate program ended
     225      checkGenericExits ${logfile} >/dev/null 2>&1
     226      genericExits=$?
     227      if [ ${bspFaults} -ne 0 -o ${genericExits} -ne 0 ] ; then
    214228        kill -9 ${pid} >/dev/null 2>&1
    215         cat ${logfile}
     229        catLog ${logfile}
    216230        echo Ran in ${milliseconds} milliseconds
    217231        break
     
    219233  else
    220234    # done normally
    221     cat ${logfile}
     235    catLog ${logfile}
    222236    echo "${testname} ran in ${milliseconds} milliseconds"
    223237    break
  • sim-scripts/gdb-sim.in

    r7ca77ba r96c31138  
    1313
    1414progname=${0##*/}        # fast basename hack for ksh, bash
    15 rtemsVersion=`echo ${progname} | sed -e 's/@BSP@-//' -e 's/gdb-//'`
    1615
    1716for v in 4.10 4.9 4.8 4.7 ""
  • sim-scripts/skyeye-support

    r7ca77ba r96c31138  
    66
    77bspUsesGDBSimulator="no"
     8bspNeedsDos2Unix="yes"
    89runBSP=skyeye
    910
Note: See TracChangeset for help on using the changeset viewer.