]> mj.ucw.cz Git - eval.git/blobdiff - bin/lib
Read the right log file.
[eval.git] / bin / lib
diff --git a/bin/lib b/bin/lib
index b912be78b49eb3dd7d80079838faf8188d82391d..a186e1cd256e5c0c41c46967ebdf9690f3d18099 100644 (file)
--- a/bin/lib
+++ b/bin/lib
@@ -314,6 +314,14 @@ function test-run-interactive
        test-epilog
 }
 
+# "Running" of open-data problems
+
+function test-run-open-data
+{
+       [ -f $SDIR/$TEST.out ] || test-result 0 "No solution."
+       ln $SDIR/$TEST.out $TDIR/$TEST.out
+}
+
 # Syntax checks
 
 function syntax-check
@@ -389,5 +397,5 @@ function open-locate
        else
                SRCN=$SDIR/$PROBLEM$TEST.out
        fi
-       [ -f $SRCN ] || fatal "Output file $SRCN not found"
+       [ -f "$SDIR/$SRCN" ] || fatal "Output file $SRCN not found"
 }