2 # The Evaluator -- Public Checking Script
3 # (c) 2001--2004 Martin Mares <mj@ucw.cz>
6 [ -n "$MO_ROOT" -a -d "$MO_ROOT" ] || { echo >&2 "MO_ROOT not set, giving up." ; exit 1 ; }
10 [ -n "$1" ] || die "Usage: check <problem> [<test-number>]"
25 if [ $TASK_TYPE == open-data ] ; then
26 [ -n "$2" ] || die "You need to specify test number for open data problems."
28 pstart "Checking $TEST: "
30 ln $SRCN $TDIR/$TEST.out
34 [ -z "$2" ] || die "Test number should be given only for open data problems."
38 for TEST in $SAMPLE_TESTS ; do
40 pstart "Checking on sample input $TEST: "