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 locate-source `if [ -n "$3" ] ; then echo $SDIR/$3 ; fi`
25 # Initialize the points file
36 echo >>$PTSFILE "$TEST $1 $2"
41 [ -z "$EV_SAMPLE" ] || TESTS="$SAMPLE_TESTS $TESTS"
42 for TEST in $TESTS ; do
44 [ -f $PDIR/$TEST.config ] && . $PDIR/$TEST.config
46 pstart "Test $TEST... "
47 echo "Test $TEST ($POINTS_PER_TEST points)"
51 die "You must never see this message."