]> mj.ucw.cz Git - eval.git/commitdiff
Stdio tasks now don't have access to the I/O files.
authorMartin Mares <mj@ucw.cz>
Tue, 1 Jun 2004 15:04:54 +0000 (15:04 +0000)
committerMartin Mares <mj@ucw.cz>
Tue, 1 Jun 2004 15:04:54 +0000 (15:04 +0000)
TODO
bin/lib

diff --git a/TODO b/TODO
index 2683cd682170133b73c97e219fc4432b108f0fc0..29b9acd51fc62d06f02e54fc150419ed0d87df3c 100644 (file)
--- a/TODO
+++ b/TODO
@@ -2,34 +2,16 @@ Evaluator
 ~~~~~~~~~
 box: konfigurovatelny pristup k timerum a /proc/self/stat (pripadne /proc/self/fd)
 score: better formatting of the score table
-score: alignment of table cells
-stdio tasks: don't allow them to read the files
 interactive tasks: solve deadlocks?
 interactive tasks: logging of messages
-a tool for creating accounts with passwords (according to userlist?) ; replace UID ranges completely?
+creating user accounts: start with userlist, create passwd items and passwords; replace CT_UID_xxx completely?
 fix mo-* to use mo-get-users
 post-sandbox hook
 
 guide: compile <file>, not only <task>
 guide: status
+guide for CPSPC: stdio, not files, should be used for I/O
 
 Environment
 ~~~~~~~~~~~
-per-user tmp ?
-rhide: debugging Pascal programs: variable names must be upper-cased
 fpc: add switch -gl (runtime errors write line#)
-
-
-Contest
-~~~~~~~
-Prepare /home/mo/public/<problem>/* for all problems
-# ./comp-prepare
-<contest runs>
-# ./comp-kickout
-# ./comp-cleanup
-
-before competition
-~~~~~~~~~~~~~~~~~~
-uninstall telnetd
-clean /tmp + /var/tmp and check permissions
-reset owners of com-day* and com-all to avoid quota problems
diff --git a/bin/lib b/bin/lib
index a042892982df4ec6fcd0946128333b6b83bb8b41..c83367f5e2d4fc070b273450a9c9449c59a1616d 100644 (file)
--- a/bin/lib
+++ b/bin/lib
@@ -202,8 +202,7 @@ function test-prolog
                        ;;
                stdio)  echo "Input file: <stdin> (from $PDIR/$TEST.in)"
                        ln $PDIR/$TEST.in $TDIR/$TEST.in
-                       cp $PDIR/$TEST.in $BOXDIR/$PROBLEM.in
-                       BOX_EXTRAS="$BOX_EXTRAS -i$PROBLEM.in"
+                       BOX_EXTRAS="$BOX_EXTRAS -i$TDIR/$TEST.in"
                        ;;
                none)   echo "Input file: <none>"
                        ;;
@@ -215,7 +214,7 @@ function test-prolog
                        BOX_EXTRAS="$BOX_EXTRAS -o/dev/null"
                        ;;
                stdio)  echo "Output file: <stdout>"
-                       BOX_EXTRAS="$BOX_EXTRAS -o$PROBLEM.out"
+                       BOX_EXTRAS="$BOX_EXTRAS -o$TDIR/$TEST.out"
                        ;;
                none)   echo "Output file: <none>"
                        ;;
@@ -237,8 +236,7 @@ function test-epilog
                file)   [ -f $BOXDIR/$PROBLEM.out ] || test-result 0 "No output file."
                        cp $BOXDIR/$PROBLEM.out $TDIR/$TEST.out
                        ;;
-               stdio)  [ -f $BOXDIR/$PROBLEM.out ] || test-result 0 "No output file."
-                       cp $BOXDIR/$PROBLEM.out $TDIR/$TEST.out
+               stdio)  [ -f $TDIR/$TEST.out ] || test-result 0 "No output file."
                        ;;
        esac
 }