X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=public%2Fsubmit;h=f597ee46b17eabf5ae1fdd5ab6067aeba06b3186;hb=50cc126ebe949259a54f153a123848d771601b77;hp=17add8dc711cb78536b06bb9e463ff0ed729a4e4;hpb=75b47f9a0228f1199d6a12ae7bf4ec80680fd691;p=eval.git 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