2 # The Evaluator -- Master Control Script
3 # (c) 2001--2008 Martin Mares <mj@ucw.cz>
6 if [ ! -f cf/eval -o ! -f lib/libeval.sh ] ; then
7 echo "Unable to find evaluator files!"
12 while parse-cmdline "$1" ; do
16 [ -n "$2" -a -z "$4" ] || die "Usage: ev [<var>=<value>] <contestant> <problem> [<program>]"
25 if [ $TASK_TYPE != open-data ] ; then
26 locate-source `if [ -n "$3" ] ; then echo $SDIR/$3 ; fi`
30 # Initialize the points file
41 echo >>$PTSFILE "$TEST $1 $2"
46 [ -z "$EV_SAMPLE" ] || TESTS="$SAMPLE_TESTS $TESTS"
47 for TEST in $TESTS ; do
51 pstart "Test $TEST... "
52 echo "Test $TEST ($POINTS_PER_TEST points)"
56 die "You must never see this message."