]> mj.ucw.cz Git - moe.git/blobdiff - bin/ev
Renamed desktop icons.
[moe.git] / bin / ev
diff --git a/bin/ev b/bin/ev
index 8e46028c30d3b50a193575b39a253ac69c19b603..a6189077d9f94b228f471887f7a1d062873345ea 100755 (executable)
--- a/bin/ev
+++ b/bin/ev
@@ -1,6 +1,6 @@
 #!/bin/bash
 # The Evaluator -- Master Control Script
-# (c) 2001--2004 Martin Mares <mj@ucw.cz>
+# (c) 2001--2008 Martin Mares <mj@ucw.cz>
 
 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