X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=bin%2Fev;h=a6189077d9f94b228f471887f7a1d062873345ea;hb=c54cab5bbd5b7c4cb0a48e17257b0150b4ceea66;hp=eeb5f0099aa15519c8f2a575fcf9fb630e172a9e;hpb=e39c44529e453e897e638bf3424f912891066a5d;p=eval.git diff --git a/bin/ev b/bin/ev index eeb5f00..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 $SDIR/$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