2 # The Evaluator -- Master Control Script
3 # (c) 2001--2004 Martin Mares <mj@ucw.cz>
6 if [ ! -f config -o ! -f bin/lib ] ; then
7 echo "Unable to find evaluator files!"
13 [ -n "$2" -a -z "$4" ] || die "Usage: ev <contestant> <problem> [<program>]"
22 if [ $TASK_TYPE != open-data ] ; then
23 locate-source `if [ -n "$3" ] ; then echo $SDIR/$3 ; fi`
27 # Initialize the points file
38 echo >>$PTSFILE "$TEST $1 $2"
43 [ -z "$EV_SAMPLE" ] || TESTS="$SAMPLE_TESTS $TESTS"
44 for TEST in $TESTS ; do
46 [ -f $PDIR/$TEST.config ] && . $PDIR/$TEST.config
48 pstart "Test $TEST... "
49 echo "Test $TEST ($POINTS_PER_TEST points)"
53 die "You must never see this message."