From: Martin Mares Date: Tue, 3 Jul 2007 08:23:35 +0000 (+0200) Subject: submit and check now respect per-task configuration files. X-Git-Tag: python-dummy-working~311 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=98bcbf5756ebb847c6491a842e2942e1e614be24;p=moe.git submit and check now respect per-task configuration files. --- 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 diff --git a/public/submit b/public/submit index 17add8d..f597ee4 100755 --- a/public/submit +++ b/public/submit @@ -53,9 +53,10 @@ if [ $TASK_TYPE == open-data ] ; then pstart "Test case $TEST: " open-locate "$SRCFILE" ( + [ -f $PDIR/$TEST.config ] && . $PDIR/$TEST.config try-ln "$SDIR/$SRCN" $TDIR/$TEST.out syntax-check - test-result 1 OK + test-result $POINTS_PER_TEST OK ) || FAILED=1 else [ -z "$PART" ] || die "Test number should be given only for open data problems." @@ -64,6 +65,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