X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=public%2Fcheck;h=6a8012f2bcfefee60ab3c2c174d8cba91a867614;hb=50cc126ebe949259a54f153a123848d771601b77;hp=a3bf810fc97571fc4b582d730b244974298ebfad;hpb=e7d24c46c66aead08c0dde29cfbc6e0a58753793;p=eval.git diff --git a/public/check b/public/check index a3bf810..6a8012f 100755 --- a/public/check +++ b/public/check @@ -1,6 +1,6 @@ #!/bin/bash # The Evaluator -- Public Checking Script -# (c) 2001--2007 Martin Mares +# (c) 2001--2008 Martin Mares set -e [ -n "$MO_ROOT" -a -d "$MO_ROOT" ] || { echo >&2 "MO_ROOT not set, giving up." ; exit 1 ; } @@ -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: " + test-config open-locate "$SRCFILE" - ln "$SRCN" $TDIR/$TEST.out + 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: " + test-config test-run syntax-check output-check