summaryrefslogtreecommitdiffstats
path: root/sim-scripts/skyeye-support
blob: 0aaacc2cd8441cefc5eb85dec8a5e6f70acdfd7b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#
#  Shared Skyeye Support
#

bspUsesGDBSimulator="no"
bspSupportsGDBServerMode="yes"
bspNeedsDos2Unix="yes"
bspGeneratesGDBCommands="yes"
bspNeedsSttySane="no"
# sometimes the .cov file has a zero length
bspRunsFailRandomly="yes"

runBSP=skyeye

runARGS()
{
  echo "-c ${bspTreeFile} -e ${1}"
}

gdbServerARGS()
{
  echo "-c ${bspTreeFile} -d"
}

bspCheckRunWasOK()
{
  # sometimes the .cov file has a zero length
  if [ ${coverage} = "yes" -a ! -s ${toRun}.cov ] ; then
    echo 1
  else
    echo 0
  fi
}

bspGenerateGDBCommands()
{
cat <<EOF
tar remote :12345
load
EOF
}

bspLimit()
{
  tname=$1
  case ${tname} in
    *)         limit=180 ;;
  esac
  echo ${limit}
}

bspExited_ARM()
{
  for pattern in  \
     "^Unhandled exception" \
     "^SKYEYE:Error" \
     "^Bus write error," \
     "^Bus read error,"
  do
    grep "${pattern}" ${logfile}
    if [ $? -eq 0 ] ; then
      return 1
    fi
  done
  return 0
}
bspGeneratesDeviceTree="yes"