2 # The Evaluator -- Master Control Script
3 # (c) 2001 Martin Mares <mj@ucw.cz>
6 if [ ! -f config -o ! -f bin/lib ] ; then
7 echo "Unable to find evaluator files!"
14 # PDIR problem specific data
15 # SDIR contestant's solution
18 # PROBLEM problem we're evaluating
20 [ -n "$2" ] || die "Usage: ev <contestant> <problem>"
34 for TEST in $TESTS ; do
36 [ -f $PDIR/$TEST.config ] && . $PDIR/$TEST.config
38 pstart "Test $TEST ($POINTS_PER_TEST points)... "
39 echo "Test $TEST ($POINTS_PER_TEST points)"
40 echo >>$PTSFILE -n "$TEST "
41 if [ ! -f $TDIR/$PROBLEM ] ; then
42 echo >$PTSFILE "0 Compile error."
43 die "No executable file"
46 syntax-check || exit 0
47 output-check || exit 0
48 echo "Test completed OK ($POINTS_PER_TEST points)"
49 echo >>$PTSFILE "$POINTS_PER_TEST OK"