+
+function test-verdict
+{
+ pend "$2"
+ exit 0
+}
+
+if [ $TASK_TYPE == open-data ] ; then
+ [ -n "$2" ] || die "You need to specify test number for open data problems."
+ TEST=$2
+ pstart "Checking $TEST: "
+ open-locate
+ ln $SRCN $TDIR/$TEST.out
+ syntax-check
+ test-result 1 OK
+else
+ [ -z "$2" ] || die "Test number should be given only for open data problems."
+ locate-source
+ compile
+ for TEST in $SAMPLE_TESTS ; do
+ (
+ pstart "Checking on sample input $TEST: "
+ test-run
+ syntax-check
+ output-check
+ )
+ done
+fi