1 # The Evaluator -- Master Control Script
2 # (c) 2001 Martin Mares <mj@ucw.cz>
5 if [ ! -f config -o ! -f bin/lib ] ; then
6 echo "Unable to find evaluator files!"
13 # PDIR problem specific data
14 # SDIR contestant's solution
17 # PROBLEM problem we're evaluating
19 [ -n "$2" ] || die "Usage: ev <contestant> <problem>"
32 for TEST in $TESTS ; do
34 pstart "Test $TEST... "
35 [ -f $PDIR/$TEST.config ] && . $PDIR/$TEST.config
37 PTSFILE=$TDIR/$TEST.pts
38 echo "Test $TEST ($POINTS_PER_TEST points)"
39 if [ ! -f $TDIR/compile.out ] ; then
43 if [ ! -f $TDIR/$PROBLEM ] ; then
45 die "No executable file"
47 $TEST_RUN_METHOD || exit 0
49 echo "Test completed OK ($POINTS_PER_TEST points)"
50 echo >$PTSFILE "$POINTS_PER_TEST OK"