#!/bin/bash
# The Evaluator -- Master Control Script
-# (c) 2001--2004 Martin Mares <mj@ucw.cz>
+# (c) 2001--2008 Martin Mares <mj@ucw.cz>
set -e
if [ ! -f config -o ! -f bin/lib ] ; then
box-init
# Compile the program
-locate-source `if [ -n "$3" ] ; then echo $SDIR/$3 ; fi`
-compile || true
+if [ $TASK_TYPE != open-data ] ; then
+ locate-source `if [ -n "$3" ] ; then echo $SDIR/$3 ; fi`
+ compile || true
+fi
# Initialize the points file
PTSFILE=$TDIR/points
[ -z "$EV_SAMPLE" ] || TESTS="$SAMPLE_TESTS $TESTS"
for TEST in $TESTS ; do
(
- [ -f $PDIR/$TEST.config ] && . $PDIR/$TEST.config
exec >$TDIR/$TEST.log
+ test-config
pstart "Test $TEST... "
echo "Test $TEST ($POINTS_PER_TEST points)"
test-run