]> mj.ucw.cz Git - moe.git/blob - config
Act sensibly when connection to the server is lost.
[moe.git] / config
1 # Configuration file for the MO Evaluator
2 # (c) 2001--2007 Martin Mares <mj@ucw.cz>
3
4 # The root of the whole directory hierarchy
5 MO_ROOT=/mo
6
7 # User and group used by the evaluator itself
8 EVAL_USER=mo-eval
9 EVAL_GROUP=mo-eval
10
11 # Test user for the sandbox. You can let mo-setup create more test users
12 # and then run several evaluators in parallel, each in its own sandbox.
13 # For testing, you can also leave TEST_USER undefined and run the sandbox
14 # with EVAL_USER privileges, but beware, this is INSECURE.
15 #TEST_USER=${TEST_USER:-mo-test1}
16 TEST_USERS="mo-test1 mo-test2"
17 TEST_GROUP=mo-test
18
19 # These values are used when creating logins for eval and contestants
20 # (group id's are from the same range)
21 EVAL_UID_MIN=65000
22 CT_UID_MIN=65100
23 CT_UID_MAX=65199
24
25 # Sometimes we need to get a list of all contestants (not in the evaluator
26 # itself, but in various auxiliary scripts). In such cases we call mo-get-users,
27 # which either uses an explicit list of contestants CT_USER_LIST (username<tab>fullname),
28 # or (if undefined) scans /etc/passwd for users with UID between CT_UID_MIN and CT_UID_MAX.
29 CT_USER_LIST=userlist
30
31 # (optional) Use remote submitting
32 REMOTE_SUBMIT=1
33 REMOTE_SUBMIT_USER=mo-submit
34 REMOTE_SUBMIT_GROUP=mo-submit
35
36 ### Per-task configuration variables (default values, override in per-task config)
37
38 ## Compiler settings:
39
40 # Known source file extensions
41 EXTENSIONS="c cc C cpp p pas"
42
43 # Extra compiler flags for C (null, but can be overriden)
44 EXTRA_CFLAGS=
45
46 # Extra compiler flags for Pascal
47 EXTRA_PFLAGS=
48
49 # For each source extension, we must give compiler command
50 COMP_c='/usr/bin/gcc -std=gnu99 -O2 -g -o $EXE $EXTRA_CFLAGS $SRC'
51 COMP_C='/usr/bin/g++ -O2 -g -o $EXE $EXTRA_CFLAGS $SRC'
52 COMP_cpp="$COMP_C"
53 COMP_cc="$COMP_C"
54 COMP_p='/usr/bin/fpc -Ci -Cr -Ct -g -O2 -Sg -o$EXE $EXTRA_PFLAGS $SRC'
55 COMP_pas="$COMP_p"
56
57 # Sandbox options used when compiling
58 COMP_SANDBOX_OPTS='-m262144 -w60 -e -i/dev/null'
59
60 # Sandbox initialization commands for compilation
61 COMP_SANDBOX_INIT=
62
63 # List of extra files needed for compilation. They are copied to the compiler
64 # sandbox from the problem's directory.
65 #COMP_EXTRAS="extras.h"
66
67 ## Tester settings (most can be overriden in per-test config):
68
69 # The following variables are automatically set by the evaluator:
70 # PROBLEM       name of the problem
71 # HDIR          home directory of the evaluator (i.e., this file is $HDIR/config)
72 # PDIR          directory containing problem data
73 # SDIR          directory containing contestant's solution
74 # TDIR          directory containing testing results
75 # TMPDIR        directory containing temporary files
76 # TEST          name of the current test
77
78 # Task type:
79 # offline       off-line task
80 # interactive   interactive task communicating via stdio with a testing program
81 # open-data     open-data task (i.e., we don't submit program, but output files)
82 TASK_TYPE=file
83
84 # I/O type (IO_TYPE sets defaults for IN_TYPE and OUT_TYPE)
85 # file          input from $PROBLEM.in, output to $PROBLEM.out (possible even for interactive tasks)
86 # stdio         input from stdin, output to stdout
87 # none          no input/output
88 IO_TYPE=stdio
89 #IN_TYPE=stdio
90 #OUT_TYPE=stdio
91
92 # A list of all tests
93 TESTS="1 2 3 4 5 6 7 8 9 10"
94
95 # A list of public tests (executed by submit and check scripts)
96 SAMPLE_TESTS="0"
97
98 # Number of points per test
99 POINTS_PER_TEST=1
100
101 # Time limit in seconds (can be fractional, but beware of noise)
102 TIME_LIMIT=10
103
104 # Memory limit in kilobytes
105 MEM_LIMIT=16384
106
107 # Command used to check output syntax (optional)
108 # Returns exit code 1 if syntax is wrong, 0 if correct
109 # fd1 is connect to evaluator log, feel free to log anything
110 # fd2 is an optional one-line verdict
111 #SYNTAX_CHECK='grep -v -- - $TDIR/$TEST.out'
112
113 # Command used to check output correctness
114 # Returns exit code 1 if output is incorrect, 0 if correct
115 # fd1 is connect to evaluator log, feel free to log anything
116 # fd2 is an optional one-line verdict
117 # The checker can generate $TDIR/$TEST.pts to assign points irregularly
118 OUTPUT_CHECK='diff -bBu $TDIR/$TEST.ok $TDIR/$TEST.out'
119
120 # Checker for interactive tasks
121 # Returns exit code 1 if test failed, 0 if passed
122 # fd0 and fd1 are connected to fd1 and fd0 of the program tested
123 # fd2 is an optional one-line verdict
124 # The checker can generate $TDIR/$TEST.pts to assign points irregularly
125 #IC_CHECK='$PDIR/checker $PDIR/$TEST.in $PDIR/$TEST.chk'
126
127 # Sandbox options used when testing
128 TEST_SANDBOX_OPTS='-a2 -f -m$MEM_LIMIT -t$TIME_LIMIT'
129
130 # Sandbox initialization commands
131 SANDBOX_INIT=