blob: 1e520ae59cf2cc952d72782f961525a49dafbdb3 (
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
68
69
70
71
72
73
74
75
|
#
# MIPS JMR3904 Support
#
runARGS()
{
echo "--board=jmr3904 ${1}"
}
checkBSPFaults()
{
logfile=$1
for err in \
"^Unhandled exception" \
"^mips-core: " \
"Data Bus Error" \
"ReservedInstruction at PC =" \
"HILO: MFHI: MF"
do
grep "${err}" ${logfile}
if [ $? -eq 0 ]; then
return 1
fi
done
return 0
grep "^Unhandled exception" ${logfile}
if [ $? -eq 0 ]; then
return 1
fi
grep "^mips-core: " ${logfile}
if [ $? -eq 0 ]; then
return 1
fi
grep "Data Bus Error" ${logfile}
if [ $? -eq 0 ]; then
return 1
fi
grep "ReservedInstruction at PC =" ${logfile}
if [ $? -eq 0 ]; then
return 1
fi
return 0
}
bspLimit()
{
testname=$1
case ${testname} in
*stackchk*) limit=5 ;;
*fatal*) limit=1 ;;
*minimum*) limit=1 ;;
*psxtime*) limit=180 ;;
*fsdosfsformat01*) limit=90 ;;
*) limit=60 ;;
esac
echo ${limit}
}
bspGeneratesGDBCommands="yes"
bspGenerateGDBCommands()
{
cat <<EOF
tar sim --board=jmr3904
load
EOF
}
|