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