source: rtems-testing/sim-scripts/tsim-support @ d17c1ab

4.11
Last change on this file since d17c1ab was a00ab66, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 12, 2009 at 9:16:23 PM

2009-10-12 Joel Sherrill <joel.sherrill@…>

  • ant5206.in, avrtest.in, bf537Stamp.in, csb337.in, csb350.in, csb360.in, ezkit533.in, gdb-sim-run.in, gdbarmsim.in, gumstix.in, h8sim.in, jmr3904.in, lm32_evr.in, m32csim.in, m32rsim.in, pc386.in, psim.in, qemu-gumstix.in, qemu-leon2.in, qemuppc.in, rtl22xx.in, simsh.in, sis.in, skyeye-support, smdk2410.in, tsim-support, uC5282.in: Add running minimum to pick up path where there are no Classic API Initialization Tasks. Minimum has IDLE task as first application task.
  • Property mode set to 100644
File size: 1.5 KB
Line 
1#
2#  TSIM Shared Support
3#
4#  $Id$
5#
6
7runBSP=tsim-${tsimName}
8bspUsesGDBSimulator="no"
9bspGeneratesGDBCommands="yes"
10bspSupportsGDBServerMode="yes"
11bspNeedsSttySane="no"
12
13type ${runBSP} >/dev/null 2>&1
14if [ $? -ne 0 ] ; then
15  echo "Unable to find ${runBSP} on PATH."
16  exit 1
17fi
18
19# required for this to run
20echo | ${runBSP} -nohaspnet >/dev/null
21if [ $? -ne 0 ] ; then
22  echo "No TSIM License for this machine."
23  exit 1
24fi
25
26runARGS()
27{
28  echo "-c ${bspTreeFile} ${1}"
29}
30
31gdbServerARGS()
32{
33  echo "-gdb"
34}
35
36bspGenerateGDBCommands()
37{
38cat <<EOF
39tar remote :1234
40load
41EOF
42}
43
44checkBSPFaults()
45{
46  return 0
47}
48
49bspLimit()
50{
51  testname=$1
52  case ${testname} in
53    *stackchk*)limit=5 ;;
54    *fatal*)   limit=1 ;;
55    *minimum*) limit=1 ;;
56    *psxtime*)
57       case ${tsimName} in
58         leon)  limit=240 ;;  # ran in 200 seconds on idle england
59         leon3) limit=240 ;;  # ran in 200 seconds on idle england
60         *)     limit=180 ;;
61       esac
62       ;;
63    *)         limit=60 ;;
64  esac
65  echo ${limit}
66}
67
68bspSimTrustedToExit="yes"
69bspGeneratesDeviceTree="yes"
70bspTreeFile=${tsimName}.conf
71
72bspGenerateDeviceTree()
73{
74  if [ ${inGDBScript} = no ] ; then
75    if [ ${coverage} = yes ] ; then
76      echo "coverage enable"
77    fi
78    if [ ${limit} -eq 0 ] ; then
79      echo "go ${tsimGoAddress}"
80    else
81      echo "go ${tsimGoAddress} ${limit} s"
82    fi
83    if [ ${coverage} = yes ] ; then
84      echo "coverage save ${2}.cov"
85      echo "shell sleep 1"           # give tsim time to actually write file
86    fi
87    echo "quit"
88  fi
89}
Note: See TracBrowser for help on using the repository browser.