X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=public%2Fcheck;h=51b627186acc3f5149338fdd7d50a4ceb7ed75d3;hb=98bcbf5756ebb847c6491a842e2942e1e614be24;hp=95403a386f0539a4d2cadd67058bfbc275735b4b;hpb=dd1e8d7e853ee5a83a89982a6a5af0efce4efa66;p=moe.git diff --git a/public/check b/public/check index 95403a3..51b6271 100755 --- a/public/check +++ b/public/check @@ -48,10 +48,11 @@ 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: " + [ -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" @@ -60,6 +61,7 @@ else 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