X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=bin%2Fev;h=a6189077d9f94b228f471887f7a1d062873345ea;hb=50cc126ebe949259a54f153a123848d771601b77;hp=554e5dc874778df2d980539088e1d30365475242;hpb=0ef7fd9921eb6018b54793ced6592d15979edbc0;p=eval.git diff --git a/bin/ev b/bin/ev index 554e5dc..a618907 100755 --- a/bin/ev +++ b/bin/ev @@ -1,6 +1,6 @@ #!/bin/bash # The Evaluator -- Master Control Script -# (c) 2001--2004 Martin Mares +# (c) 2001--2008 Martin Mares set -e if [ ! -f config -o ! -f bin/lib ] ; then @@ -19,8 +19,10 @@ log-init box-init # Compile the program -locate-source $3 -compile || true +if [ $TASK_TYPE != open-data ] ; then + locate-source `if [ -n "$3" ] ; then echo $SDIR/$3 ; fi` + compile || true +fi # Initialize the points file PTSFILE=$TDIR/points @@ -38,10 +40,11 @@ function test-verdict } # Perform the tests +[ -z "$EV_SAMPLE" ] || TESTS="$SAMPLE_TESTS $TESTS" for TEST in $TESTS ; do ( - [ -f $PDIR/$TEST.config ] && . $PDIR/$TEST.config exec >$TDIR/$TEST.log + test-config pstart "Test $TEST... " echo "Test $TEST ($POINTS_PER_TEST points)" test-run