]> mj.ucw.cz Git - moe.git/blobdiff - config
Added interactive+output mode.
[moe.git] / config
diff --git a/config b/config
index 74cfee52ecd7e59f3ccb9bf162451a349715a611..9c20211948148257475eec0a3756f8c24720eab4 100644 (file)
--- a/config
+++ b/config
@@ -7,11 +7,42 @@ 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'
-
-# Testing commands
-TEST_SANDBOX_OPTS='-a2 -c$BOXDIR -f -m$MEM_LIMIT -t$TIME_LIMIT -w'
+# UID range assigned to contestants
+CT_UID_MIN=65100
+CT_UID_MAX=65199
+
+# Test user for sandboxing
+TEST_USER=${TEST_USER:mo-test1}
+
+### all of the following variables can be overriden in per-task config file
+
+# Default task type (file or interactive)
+TASK_TYPE=file
+
+# Known source file extensions
+EXTENSIONS="c C cpp p pas"
+
+# Extra compiler flags for C (null, but can be overriden)
+EXTRA_CFLAGS=
+
+# Extra compiler flags for Pascal
+EXTRA_PFLAGS=
+
+# 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_PFLAGS $SRC'
+COMP_pas="$COMP_p"
+
+# Sandbox options used when compiling
+COMP_SANDBOX_OPTS='-m65536 -t60 -w -e'
+
+# Sandbox initializaton commands for compilation
+COMP_SANDBOX_INIT=
+
+# 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'
+SANDBOX_INIT=