]> mj.ucw.cz Git - eval.git/commitdiff
The retest utility will no longer be needed.
authorMartin Mares <mj@ucw.cz>
Thu, 28 Jun 2007 17:22:11 +0000 (19:22 +0200)
committerMartin Mares <mj@ucw.cz>
Thu, 28 Jun 2007 17:22:11 +0000 (19:22 +0200)
TODO
public/retest [deleted file]

diff --git a/TODO b/TODO
index 97cdad16597e7dd04c49bbc82d66f995522491a6..569461b9cb3396d56f3521300908c0f4b1fa0fc7 100644 (file)
--- a/TODO
+++ b/TODO
@@ -5,8 +5,6 @@ interactive tasks: solve deadlocks?
 interactive tasks: logging of messages
 terminology: problem -> task ?
 submit, check: unify command-line arguments
-do we need SDIR?
-clean up retest utility
 writing of verdicts to stdout (include timing and check on interactive tasks, including judge errors)
 box: memory usage statistics (need to search for VMPeak in /proc/$PID/status, but it disappears too early)
 check: rename `log' ?
diff --git a/public/retest b/public/retest
deleted file mode 100755 (executable)
index a959f03..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/bin/bash
-# The Evaluator -- Public Checking Script
-# (c) 2001--2007 Martin Mares <mj@ucw.cz>
-
-set -e
-[ -n "$MO_ROOT" -a -d "$MO_ROOT" ] || { echo >&2 "MO_ROOT not set, giving up." ; exit 1 ; }
-. $MO_ROOT/bin/lib
-. $MO_ROOT/config
-
-function usage
-{
-       die "Usage: check [-s <source-file>] <problem> [<test-number>]"
-}
-
-SRCFILE=
-while getopts "s:" opt ; do
-       case $opt in
-               s)      SRCFILE="$OPTARG"
-                       ;;
-               *)      usage
-                       ;;
-       esac
-done
-shift $(($OPTIND-1))
-[ -n "$1" ] || usage
-PROBLEM=$1
-TEST=
-shift
-if [ -n "$1" ] ; then
-       TEST="$1"
-       shift
-fi
-[ -z "$1" ] || usage
-
-public-setup
-HDIR=/mo/cpspc/day1/
-PDIR=$HDIR/problems/$PROBLEM
-. $PDIR/config
-
-function test-verdict
-{
-       pend "$2"
-       if [ $1 == 0 ] ; then
-               exit 1
-       else
-               exit 0
-       fi
-}
-
-if [ $TASK_TYPE == open-data ] ; then
-       [ -n "$TEST" ] || die "You need to specify test number for open data problems."
-       pstart "Checking $TEST: "
-       open-locate $SRCFILE
-       ln $SRCN $TDIR/$TEST.out
-       syntax-check
-       test-result 1 OK
-else
-       [ -z "$TEST" ] || die "Test number should be given only for open data problems."
-       locate-source $SRCFILE
-       compile
-       RC=0
-       for TEST in $TESTS ; do
-               (
-               pstart "Checking on sample input $TEST: "
-               test-run
-               syntax-check
-               output-check
-               ) || RC=1
-       done
-       exit $RC
-fi