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"
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
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."
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