Commit c2c9418c authored by Michael Hanus's avatar Michael Hanus
Browse files

TestDriver modified, testall.sh added

parent d9e03483
......@@ -60,7 +60,7 @@ timeoutCmd = "/usr/bin/timeout"
--- Options supplied to PAKCS for evaluation of program
pakcsEvalOpts :: String -> [String]
pakcsEvalOpts mod = [":set", "v0", ":set", "parser", "-Wnone"
pakcsEvalOpts mod = [":set", "v0", ":set", "-time", ":set", "parser", "-Wnone"
, ":load", mod, ":eval", "main", ":quit"]
--- Timeout used for evaluation of program using PAKCS
......
#!/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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment