X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=bin%2Flib;h=a186e1cd256e5c0c41c46967ebdf9690f3d18099;hb=785567d13d74d89796cb251b1945fe9a0ab39220;hp=b912be78b49eb3dd7d80079838faf8188d82391d;hpb=6493c533ffbb60605df2c8cbbb0a3493f8431bba;p=eval.git diff --git a/bin/lib b/bin/lib index b912be7..a186e1c 100644 --- 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" }