#! /bin/sh # # usage: runtest [...] # without args, runs all *.test files in the current directory # TESTFILES=$* if [ "x$TESTFILES" = "x" ]; then TESTFILES='*.test'; fi if [ ! -d work ]; then mkdir work; fi perl ../bin/opp_test -g -v $TESTFILES || exit 1 echo ( (cd work && perl ../../src/utils/opp_makemake_vc.pl -f -e cc -u cmdenv) && cmd /c "vcvars32.bat && cd work && nmake -f makefile.vc" ) || exit 1 echo perl ../bin/opp_test -r -v $TESTFILES || exit 1 echo echo Results can be found in ./work