X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=config;h=5e2c13f94fd27db5adbbd33c79561904576fc72e;hb=e24e54a23e4cdee7bfe8d480c990697d39932cd0;hp=74cfee52ecd7e59f3ccb9bf162451a349715a611;hpb=283214723416710aaf5d94b9c1e3527fa6f1208e;p=eval.git diff --git a/config b/config index 74cfee5..5e2c13f 100644 --- a/config +++ b/config @@ -2,16 +2,38 @@ # (c) 2001 Martin Mares # Directories and users -MO_ROOT=/aux/mo +MO_ROOT=/home/mo EVAL_USER=mo-eval EVAL_GROUP=mo-eval TEST_USERS="mo-test1 mo-test2" -# Compilation commands -COMP_C='/usr/bin/gcc -o $EXE $SRC' -COMP_CXX='/usr/bin/g++ -o $EXE $SRC' -COMP_P='/usr/bin/fpc -o $EXE $SRC' -COMP_SANDBOX_OPTS='-c$BOXDIR -m65536 -t60 -w -e' +# UID range assigned to contestants +CT_UID_MIN=21000 +CT_UID_MAX=29999 +CT_UID_MIN=1000 -# Testing commands -TEST_SANDBOX_OPTS='-a2 -c$BOXDIR -f -m$MEM_LIMIT -t$TIME_LIMIT -w' +# Test user for sandboxing +TEST_USER=${TEST_USER:mo-test1} + +### all of the following variables can be overriden in per-task config file + +# Known source file extensions +EXTENSIONS="c C cpp p pas" + +# Extra compiler flags (null, but can be overriden) +EXTRA_CFLAGS= + +# For each source extension, we must give compiler command +COMP_c='/usr/bin/gcc -O2 -g -o $EXE $EXTRA_CFLAGS $SRC' +COMP_C='/usr/bin/g++ -O2 -g -o $EXE $EXTRA_CFLAGS $SRC' +COMP_cpp="$COMP_C" +COMP_p='/usr/bin/fpc -Ci -Cr -g -O2 -So -Sg -o$EXE $EXTRA_CFLAGS $SRC' +COMP_pas="$COMP_p" + +# Sandbox options used when compiling +COMP_SANDBOX_OPTS='-m65536 -t60 -w -e' + +# Sandbox options used when testing +TEST_SANDBOX_OPTS='-a2 -f -m$MEM_LIMIT -t$TIME_LIMIT' +# -w for wall clock measuring +# For stdio tasks append '-i$PROBLEM.in -o$PROBLEM.out'