make distcheck happy
[gnucap-felix.git] / tests / test
blobe8e6fb6adc9eae126469a7ca4509a428dcfd61fd
1 #!/bin/sh
2 if [ $# -eq 0 ] ; then
3 echo "usage: ./test gnucap \"testcases\" targetdir refdir"
4 echo "usual testcases is \"\", usual refdir is =="
5 echo "example: ./test gnucap \"\" myversion =="
6 exit 1
7 else
8 \mkdir $3
9 \rm -f $3/$2.diffs
10 for ii in $2*.ckt
12 echo $ii
13 echo $ii >>$3/$2.diffs
14 $1 -b $ii |tail -n +12 >$3/$ii.out
15 diff -u $4/$ii.out $3/$ii.out >>$3/$2.diffs || echo "**** $ii fails ****"
16 done
17 for ii in $2*.gc
19 echo $ii
20 echo $ii >>$3/$2.diffs
21 $1 $ii |tail -n +12 >$3/$ii.out
22 diff -u $4/$ii.out $3/$ii.out >>$3/$2.diffs || echo "**** $ii fails ****"
23 done
24 echo done with $1 $2 >>$3/$2.diffs
25 echo done with $1 $2
26 exit 0