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 38 39 40 41 42 43 44 45 46
|
#!/bin/sh
# Shell script to perform an extensive test of the partial evaluator
CURRYBIN="`pwd`/../../bin"
VERBOSE=no
if [ "$1" = "-v" ] ; then
VERBOSE=yes
fi
# use the right Curry system for the tests:
PATH=$CURRYBIN:$PATH
export PATH
# clean up before
cd test && $CURRYBIN/cleancurry -r
cd ..
# execute all tests:
# set appropriate timeout:
TIMEOUT=5
if [ -x "$CURRYBIN/pakcs" ] ; then
TIMEOUT=30
fi
TESTDRIVERARGS="-v -t $TIMEOUT -Snatural -Anone -Awfo -Awqo --assert --eval"
LOGFILE=xxx$$
if [ $VERBOSE = yes ] ; then
$CURRYBIN/runcurry TestDriver.curry $TESTDRIVERARGS
if [ $? -gt 0 ] ; then
exit 1
fi
else
$CURRYBIN/runcurry TestDriver.curry $TESTDRIVERARGS > $LOGFILE 2>&1
if [ $? -gt 0 ] ; then
echo "ERROR in peval:"
cat $LOGFILE
exit 1
fi
fi
################ end of tests ####################
# Clean:
/bin/rm -f $LOGFILE
|