From: Martin Mares Date: Sun, 23 Mar 2003 22:36:22 +0000 (+0000) Subject: Added interactive+output mode. X-Git-Tag: python-dummy-working~486 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=0d98c7537d17fd4b615a92fb20dd76cb4c30f09b;p=moe.git Added interactive+output mode. --- diff --git a/TODO b/TODO index 335f6e6..718b066 100644 --- a/TODO +++ b/TODO @@ -1,5 +1,6 @@ Evaluator ~~~~~~~~~ +!!! timed-out interactive tasks !!! lepsi time limity zkopirovat *.ok i kdyz program spadne na run-time error konfigurovatelne vstupni a vystupni soubory diff --git a/bin/lib b/bin/lib index cb9f910..9adf0dd 100644 --- a/bin/lib +++ b/bin/lib @@ -190,6 +190,11 @@ function test-run-file fi cat $TDIR/exec.out rm $TDIR/exec.out + test-fetch-output || return 1 +} + +function test-fetch-output +{ echo "Output files:" ls -Al $BOXDIR if [ ! -s $BOXDIR/$PROBLEM.out ] ; then @@ -234,6 +239,7 @@ function test-run-interactive fi cat $TDIR/exec.out rm $TDIR/exec.out + [ -z "$OUTPUT_CHECK" ] || test-fetch-output || return 1 } # Syntax checks