X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=public%2Fcheck;h=51b627186acc3f5149338fdd7d50a4ceb7ed75d3;hb=e663f0222d8299a6b802cc35983858cfeca13a70;hp=152884d2aaf674806a742552a5c129c84910f407;hpb=3a9934c8d0b88440efca1432368613c2d3124dd5;p=eval.git diff --git a/public/check b/public/check index 152884d..51b6271 100755 --- a/public/check +++ b/public/check @@ -48,18 +48,20 @@ function test-verdict if [ $TASK_TYPE == open-data ] ; then [ -n "$TEST" ] || die "You need to specify test number for open data problems." pstart "Checking $TEST: " - open-locate $SRCFILE - ln $SRCN $TDIR/$TEST.out + [ -f $PDIR/$TEST.config ] && . $PDIR/$TEST.config + open-locate "$SRCFILE" + try-ln "$SDIR/$SRCN" $TDIR/$TEST.out syntax-check - test-result 1 OK + test-result $POINTS_PER_TEST OK else [ -z "$TEST" ] || die "Test number should be given only for open data problems." - locate-source $SRCFILE + locate-source "$SRCFILE" compile RC=0 for TEST in $SAMPLE_TESTS ; do ( pstart "Checking on sample input $TEST: " + [ -f $PDIR/$TEST.config ] && . $PDIR/$TEST.config test-run syntax-check output-check