rectest 731 Bytes
#!/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