rectest
729 Bytes
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
#!/bin/csh
rm -r rtests
cp -r $1 rtests
cp rtests/{init_regs,init_vregs,test.out,test.dat,test.vreg,test.regs} ..
cd ..
rsp -tRz < go |& sed -e "s/^rsp > //" | egrep "^0x0" > trace.out
sed 's/://' trace.out | awk '{print $3}' | tee pcs | nper | tail -1 | awk '{ print $10}' >> test.cnt
cp trace_out test.ctrace
echo -n "NC " >> test.ctrace
( echo obase=16 ; tail -1 test.cnt ) | bc | tr "[A-Z]" "[a-z]" >> test.ctrace
cd rsptst/rtests
rm test.IMEM
make >& /dev/null
cd ..
time rsp_random +ctrace -nocompile
grep "TRACE Error" random.stdout
grep "FAIL" random.log $1/random.log
mv $1/old $1/older
mkdir $1/old
mv $1/random* $1/trace.out $1/older $1/old
cp random.* ../trace.out $1
rm -r rtests