X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=bin%2Fev;h=a6189077d9f94b228f471887f7a1d062873345ea;hb=50cc126ebe949259a54f153a123848d771601b77;hp=8e46028c30d3b50a193575b39a253ac69c19b603;hpb=6493c533ffbb60605df2c8cbbb0a3493f8431bba;p=eval.git diff --git a/bin/ev b/bin/ev index 8e46028..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 `if [ -n "$3" ] ; then echo $SDIR/$3 ; fi` -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 @@ -41,8 +43,8 @@ function test-verdict [ -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