source: rtems-testing/sim-scripts/tsim-support @ 80c3168

4.11
Last change on this file since 80c3168 was 055296c, checked in by Joel Sherrill <joel.sherrill@…>, on Mar 20, 2009 at 7:41:25 PM

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

  • edb7312.in, gdb-sim-run.in, skyeye-support, tsim-support: More tunning on skyeye and erc32.
  • Property mode set to 100644
File size: 1.0 KB
Line 
1#
2#  TSIM Shared Support
3#
4#  $Id$
5#
6
7runBSP=tsim-${tsimName}
8
9type ${runBSP} >/dev/null 2>&1
10if [ $? -ne 0 ] ; then
11  echo "Unable to find ${runBSP} on PATH."
12  exit 1
13fi
14
15# required for this to run
16echo | ${runBSP} -nohaspnet >/dev/null
17if [ $? -ne 0 ] ; then
18  echo "No TSIM License for this machine."
19  exit 1
20fi
21
22runARGS()
23{
24  echo "-c ${bspTreeFile} ${1}"
25}
26
27checkBSPFaults()
28{
29  return 0
30}
31
32bspLimit()
33{
34  testname=$1
35  case ${tname} in
36    *stackchk*)limit=5 ;;
37    *fatal*)   limit=1 ;;
38    *psxtime*) limit=180 ;;
39    *)         limit=60 ;;
40  esac
41  return ${limit}
42}
43
44bspSimTrustedToExit="yes"
45bspGeneratesDeviceTree="yes"
46bspTreeFile=${tsimName}.conf
47
48bspGenerateDeviceTree()
49{
50  if [ ${coverage} = yes ] ; then
51    echo "coverage enable"
52  fi
53  if [ ${limit} -eq 0 ] ; then
54    echo "go ${tsimGoAddress}"
55  else
56    echo "go ${tsimGoAddress} ${limit} s"
57  fi
58  if [ ${coverage} = yes ] ; then
59    echo "coverage save ${2}.cov"
60    echo "shell sleep 1"           # give tsim time to actually write file
61  fi
62  echo "quit"
63 
64}
Note: See TracBrowser for help on using the repository browser.