]> mj.ucw.cz Git - eval.git/blob - t/config
Added ConfigTree.remove, adapted parse and parse_file
[eval.git] / t / config
1 # Basic directories
2 TDIR = "{HOME}/testing"
3 PDIR = "{HOME}/tasks/{TASK}"
4
5 # Files
6 USER_LOG = "{TDIR}/log"
7 TASK_CONFIG = "{PDIR}/config"
8 STATUS_FILE = "{TDIR}/status"
9
10 # Default debug level - INFO
11 DEBUG_LEVEL = "20"
12
13 # only for testing: 
14 TASK = "sum"
15 USER = "gavento"
16 SOURCE = "suma.c"
17 EXTENSIONS += " dummy "
18
19 #### Old config format (inspiration?)
20
21 # # HOME set automatically
22 # # CONTESTANT set automatically
23 # # TASK set automatically
24
25 # PDIR="${HOME}/problems/${TASK}"
26 # SDIR="${HOME}/solutions/${CONTESTANT}/${TASK}"
27 # TDIR="${HOME}/testing/${CONTESTANT}/${TASK}"
28
29 # TESTCASE_IN=${TEST}.in
30 # TESTCASE_OUT=${TEST}.out
31 # TESTCASE_OK=${TEST}.ok
32 # TESTCASE_STATUS=${TEST}.stat
33 # TESTCASE_RAW=${TEST}.raw
34 # # backward compatibility
35 # TESTCASE_PTS=${TEST}.pts
36
37 # DEBUG=1
38
39 # # HOOKS
40 # # TESTCASE_HOOKS
41
42 # ### Programming language settings
43
44 # # Known source file extensions
45 # EXTENSIONS="c cc C cpp p pas"
46
47 # # Some of the extensions can be aliases for other extensions
48 # ALIAS_EXT_cc=cpp
49 # ALIAS_EXT_C=cpp
50 # ALIAS_EXT_p=pas
51
52 # # SRC is auto
53
54 # ## Variables which control compilation and execution
55 # ## (see below for values for individual languages)
56
57 # # Command used to run the compiler
58 # COMP=false
59
60 # # Sandbox options used when compiling
61 # COMP_SANDBOX_OPTS="-m262144 -w60 -e -i/dev/null"
62
63 # EXE=$TASK
64
65 # # Command used to execute the compiled program, may be ./$PROGRAM (default) or an
66 # # interpreter with $PROGRAM as a parameter.
67 # TEST_EXEC_CMD=./$EXE
68
69 # ## Settings for individual languages
70
71 # # C
72 # EXT_c_COMP="/usr/bin/gcc -std=gnu99 -O2 -g -o $EXE $EXTRA_CFLAGS $SRC -lm"
73 # EXTRA_CFLAGS=
74
75 # # C++
76 # EXT_cpp_COMP="/usr/bin/g++ -O2 -g -o $EXE $EXTRA_CXXFLAGS $SRC -lm"
77 # EXTRA_CXXFLAGS=
78
79 # # Pascal
80 # EXT_pas_COMP="/usr/bin/fpc -Ci -g -O2 -Sg -o$EXE $EXTRA_PFLAGS $SRC"
81 # EXTRA_PFLAGS=
82
83 # ### Per-task configuration variables (default values, override in per-task config)
84
85 # # List of extra files needed for compilation. They are copied to the compiler
86 # # sandbox from the problem's directory. XXX: or tdir
87 # #COMP_EXTRAS="extras.h"
88
89 # # Task type:
90 # # batch               off-line task
91 # # interactive interactive task communicating via stdio with a testing program
92 # # open-data   open-data task (i.e., we don't submit program, but output files)
93 # TASK_TYPE=batch
94
95 # # I/O type (IO_TYPE sets defaults for IN_TYPE and OUT_TYPE)
96 # # file                input from $PROBLEM.in, output to $PROBLEM.out (possible even for interactive tasks)
97 # # stdio               input from stdin, output to stdout
98 # # dir                 input from all files in the directory $TEST.in; these are copied to $BOXDIR
99 # #             and if they include .stdin, it will be available as program's std. input.
100 # # none                no input/output
101 # IO_TYPE=stdio
102 # #IN_TYPE=stdio
103 # #OUT_TYPE=stdio
104
105 # IN_NAME=$TASK.in
106 # OUT_NAME=$TASK.out
107
108 # # A list of all tests
109 # TESTS="1 2 3 4 5 6 7 8 9 10"
110
111 # # A list of public tests (executed by submit and check scripts)
112 # SAMPLE_TESTS="0"
113
114 # # Number of points per test
115 # POINTS_PER_TEST=1
116
117 # # Time limit in seconds (can be fractional, but beware of noise)
118 # TIME_LIMIT=10
119
120 # # Memory limit in kilobytes
121 # MEM_LIMIT=16384
122
123 # # Stack size limit in kilobytes (0=limited only by MEM_LIMIT)
124 # STACK_LIMIT=0
125
126 # # Command used for filtering of program output (optional)
127 # # If turned on, program output (*.raw) is ran through this filter and the
128 # # checkers are applied to the output of the filter (*.out).
129 # # Can exit with code 1 if there is a syntax error in the output.
130 # #OUTPUT_FILTER=tr -d '\r' <$TDIR/$TEST.raw >$TDIR/$TEST.out
131
132 # # Command used to check output syntax (optional)
133 # # Returns exit code 1 if syntax is wrong, 0 if correct
134 # # fd1 is connect to evaluator log, feel free to log anything
135 # # fd2 is an optional one-line verdict
136 # #SYNTAX_CHECK=grep -v -- - $TDIR/$TEST.out
137
138 # # Command used to check output correctness
139 # # Returns exit code 1 if output is incorrect, 0 if correct
140 # # fd1 is connect to evaluator log, feel free to log anything
141 # # fd2 is an optional one-line verdict
142 # # The checker can generate $TDIR/$TEST.pts to assign points irregularly
143 # OUTPUT_CHECK=diff -bBu $TDIR/$TEST.ok $TDIR/$TEST.out
144
145 # # Checker for interactive tasks
146 # # Returns exit code 1 if test failed, 0 if passed
147 # # fd0 and fd1 are connected to fd1 and fd0 of the program tested
148 # # fd2 is an optional one-line verdict
149 # # The checker can generate $TDIR/$TEST.pts to assign points irregularly
150 # #IC_CHECK=$PDIR/checker $PDIR/$TEST.in $PDIR/$TEST.chk
151
152 # # Sandbox options used when testing
153 # TEST_SANDBOX_OPTS=-a2 -f -m$MEM_LIMIT -k$STACK_LIMIT -t$TIME_LIMIT $BOX_EXTRAS $BOX_IO_OPTS
154
155 # # Extra options to be overridden in task configuration
156 # BOX_EXTRAS=
157
158 # ### Hook priorities:
159
160 # # Task pipeline for batch and interactive tasks:
161 # #     100     compile-init
162 # #     150     compile-run
163 # #     190     compile-done
164 # #     200     batch-tests
165
166 # # Test pipeline:
167 # #     000     setup           copy input and correct output to $TDIR
168 # #     100     prepare         copy input and executables to the sandbox
169 # #     200     run             run inside the sandbox
170 # #     300     collect         copy output out of the sandbox
171 # #     400     filter          filter the output ($OUTPUT_FILTER)
172 # #     500     syntax          check syntax of the output ($SYNTAX_CHECK)
173 # #     600     judge           check correctness of the output ($OUTPUT_CHECK)
174 # #     700     points          award $POINTS_PER_TEST points unless already done