check
3.03 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
#!/bin/sh
#
# set tabsbtop=4
RST=`pwd`/`basename $1`.result
echo "* * * Test run on `hostname` at `pwd` * * *" >> $RST
if [ "$SNPSLMD_LICENSE_FILE" = "" ]; then
echo "#################################################" >> $RST
echo "Test Failed : Please setup vcs environment first" >> $RST
echo "#################################################" >> $RST
exit 1
fi
cd ..
BB_PATH=`pwd`
export IOSIM_SERVER=127.0.0.1
export IOSIM_PORT=6767
###### check out new iosim tests ######
cd ${BB_PATH}/hw2/chip/vsim
${BB_PATH}/iosim/src/pi_test/gen_ext_rand External_File.txt
./sim.ipc +vcs+lic+wait $BBOPTS &
sleep 10
cd ${BB_PATH}/tests
echo "+ + + Test Start(base on ipc simulator) + + +" >> $RST
date >> $RST
../iosim/src/iosim -f ../iosim/test/bcp_init.tst
../iosim/src/iosim -f ../iosim/test/bcp_vpll_init.tst
# IOSIM AI test
echo "Start BCP AI test "
../iosim/src/iosim -f ../iosim/test/bcp_ai.tst > tmp.$$ 2>&1
grep -i "Fail" tmp.$$ && {
echo "AI IOSIM test failed" >> $RST
} || {
echo "AI IOSIM test passed" >> $RST
}
cat tmp.$$
##### Iosim Vi test ######
### 3 test failed
[ -d ${BB_PATH}/rdpsim/backend/test/Iosim/OutData ] || {
mkdir -p ${BB_PATH}/rdpsim/backend/test/Iosim/OutData
}
cd ${BB_PATH}/rdpsim/backend/test/Iosim/OutData
rm -rf *
cd ..
make clean
make lan1.rgb
make scalew-1.rgb
make laf1.rgb
make lpf2.rgb
grep -v equate OutData/Results && {
echo "Failed: Vi iosim test error." >> $RST
} || {
echo "VI IOSIM test passed" >> $RST
}
##### rsp iosim test ######
# dma pin pin_single
#
cd $BB_PATH
cd rspsim/vuregre/regression2
rm -rf testsuite
rm -rf small_testsuite
cp simple_check testsuite
grep -v DMA simple_check > small_testsuite
cd ..
# DMA TEST
make dma >/dev/null 2>&1
grep "Failed" rsptest/dmatest/test.result > /dev/null 2>&1 && {
echo "ERROR: BCP rsp DMA test Failed" >> $RST
} || {
echo "BCP rsp DMA test passed" >> $RST
}
# PIN TEST
make pin >/dev/null 2>&1
grep "Failed" rsptest/pinTest/test.result > /dev/null 2>&1 && {
echo "ERROR: BCP rsp PIN test Failed" >> $RST
} || {
echo "BCP rsp PIN test passed" >> $RST
}
# PIN SINGLE STEP TEST
make pin_single >/dev/null 2>&1
grep "Failed" rsptest/pinTestSingle/test.result > /dev/null 2>&1 && {
echo "ERROR: BCP rsp pin Single step test Failed" >> $RST
} || {
echo "BCP rsp PIN Single step test passed" >> $RST
}
cd regression2
cvs update testsuite
cvs update small_testsuite
cd ${BB_PATH}/rdpsim/test/rdp
./testit -b -m -n 015 -t att -s io
./testit -b -m -n 038 -t tex -s io
./testit -b -m -n 017 -t ms -s io
./testit -b -m -n 028 -t cov -s io
./testit -b -m -n 126 -t ew -s io
./nightly_image_diff.sh -b -s hwio test015_att > tmp.$$
./nightly_image_diff.sh -b -s hwio test038_tex >> tmp.$$
./nightly_image_diff.sh -b -s hwio test017_ms >> tmp.$$
./nightly_image_diff.sh -b -s hwio test028_cov >> tmp.$$
./nightly_image_diff.sh -b -s hwio test126_ew >> tmp.$$
grep -i ERROR tmp.$$ && {
echo "RDP test Failed" >> $RST
} || {
echo "RDP test Passed" >> $RST
}
cd $BB_PATH/iosim
./src/iosim -f ./test/bcp_quit.tst
echo "+ + + Test End + + +" >> $RST
date >> $RST