Added support for debug variants on tests.

This commit is contained in:
Joel Sherrill
1998-04-29 18:41:53 +00:00
parent 96d56b3690
commit 2993cd3f60

View File

@@ -71,7 +71,7 @@ tests="$args"
if [ ! "$tests" ]
then
cd $logdir
set -- `echo sp?? mp??_? psx??`
set -- `echo sp?? mp??_? psx?? sp??_g mp??_?_g psx??_g`
cd ..
tests="$*"
fi
@@ -92,15 +92,16 @@ do
mp*)
mptest=`echo $t | sed 's/_.//'`
node=`echo $t | sed 's/...._//'`
scn_file=mptests/node$node/$mptest.scn;;
tmp_scn_file=mptests/node$node/$mptest.scn;;
sp*)
scn_file=sptests/$t.scn;;
tmp_scn_file=sptests/$t.scn;;
psx*)
scn_file=psxtests/$t.scn;;
tmp_scn_file=psxtests/$t.scn;;
*)
fatal "unknown test $t";;
esac
scn_file=`echo $tmp_scn_file | sed -e s/_g//`
sed -e '/^$/d' < $logdir/$logfile | diff -b screens/$scn_file -
echo
echo