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