source: rtems-testing/sim-scripts/tsim-support @ 6871c37

4.11
Last change on this file since 6871c37 was 4d17f1d, checked in by Joel Sherrill <joel.sherrill@…>, on Jan 20, 2009 at 8:30:58 PM

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

  • tsim-support: Properly handle a limit of 0 which is no limit.
  • Property mode set to 100644
File size: 938 bytes
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
44bspGeneratesDeviceTree="yes"
45bspTreeFile=${tsimName}.conf
46
47bspGenerateDeviceTree()
48{
49  if [ ${coverage} = yes ] ; then
50    echo "coverage enable"
51  fi
52  if [ ${limit} -eq 0 ] ; then
53    echo "go ${tsimGoAddress}"
54  else
55    echo "go ${tsimGoAddress} ${limit} s"
56  fi
57  if [ ${coverage} = yes ] ; then
58    echo "coverage save ${2}.cov"
59  fi
60  echo "quit"
61 
62}
Note: See TracBrowser for help on using the repository browser.