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