From 98bcbf5756ebb847c6491a842e2942e1e614be24 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 3 Jul 2007 10:23:35 +0200 Subject: [PATCH] submit and check now respect per-task configuration files. --- public/check | 4 +++- public/submit | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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 -- 2.39.2