2 # The Evaluator for Open Data Problems
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 # HDIR home dir of the evaluator
15 # PDIR problem specific data
16 # SDIR contestant's solution
19 # PROBLEM problem we're evaluating
21 [ -n "$2" ] || die "Usage: ev-open <contestant> <problem>"
30 for TEST in $TESTS ; do
32 [ -f $PDIR/$TEST.config ] && . $PDIR/$TEST.config
34 pstart "Test $TEST ($POINTS_PER_TEST points)... "
35 echo "Test $TEST ($POINTS_PER_TEST points)"
36 echo >>$PTSFILE -n "$TEST "
37 if [ ! -f $SDIR/$TEST.out ] ; then
38 echo >>$PTSFILE "0 No solution."
41 syntax-check || exit 0
42 output-check || exit 0
43 echo "Test completed OK ($POINTS_PER_TEST points)"
44 echo >>$PTSFILE "$POINTS_PER_TEST OK"