1 # HOME set automatically
2 # CONTESTANT set automatically
3 # TASK set automatically
4 PDIR="${HOME}/problems/${TASK}"
5 SDIR="${HOME}/solutions/${CONTESTANT}/${TASK}"
6 TDIR="${HOME}/testing/${CONTESTANT}/${TASK}"
10 TESTCASE_IN=${TEST}.in
11 TESTCASE_OUT=${TEST}.out
12 TESTCASE_OK=${TEST}.ok
13 TESTCASE_STATUS=${TEST}.stat
18 ### Programming language settings
20 # Known source file extensions
21 EXTENSIONS="c cc C cpp p pas"
23 # Some of the extensions can be aliases for other extensions
30 ## Variables which control compilation and execution
31 ## (see below for values for individual languages)
33 # Command used to run the compiler
36 # Sandbox options used when compiling
37 COMP_SANDBOX_OPTS="-m262144 -w60 -e -i/dev/null"
41 # Command used to execute the compiled program, may be ./$PROGRAM (default) or an
42 # interpreter with $PROGRAM as a parameter.
45 ## Settings for individual languages
48 EXT_c_COMP="/usr/bin/gcc -std=gnu99 -O2 -g -o $EXE $EXTRA_CFLAGS $SRC -lm"
52 EXT_cpp_COMP="/usr/bin/g++ -O2 -g -o $EXE $EXTRA_CXXFLAGS $SRC -lm"
56 EXT_pas_COMP="/usr/bin/fpc -Ci -g -O2 -Sg -o$EXE $EXTRA_PFLAGS $SRC"
59 ### Per-task configuration variables (default values, override in per-task config)
61 # List of extra files needed for compilation. They are copied to the compiler
62 # sandbox from the problem's directory. XXX: or tdir
63 #COMP_EXTRAS="extras.h"
67 # interactive interactive task communicating via stdio with a testing program
68 # open-data open-data task (i.e., we don't submit program, but output files)
71 # I/O type (IO_TYPE sets defaults for IN_TYPE and OUT_TYPE)
72 # file input from $PROBLEM.in, output to $PROBLEM.out (possible even for interactive tasks)
73 # stdio input from stdin, output to stdout
74 # dir input from all files in the directory $TEST.in; these are copied to $BOXDIR
75 # and if they include .stdin, it will be available as program's std. input.
76 # none no input/output
85 TESTS="1 2 3 4 5 6 7 8 9 10"
87 # A list of public tests (executed by submit and check scripts)
90 # Number of points per test
93 # Time limit in seconds (can be fractional, but beware of noise)
96 # Memory limit in kilobytes
99 # Stack size limit in kilobytes (0=limited only by MEM_LIMIT)
102 # Command used for filtering of program output (optional)
103 # If turned on, program output (*.raw) is ran through this filter and the
104 # checkers are applied to the output of the filter (*.out).
105 # Can exit with code 1 if there is a syntax error in the output.
106 #OUTPUT_FILTER=tr -d '\r' <$TDIR/$TEST.raw >$TDIR/$TEST.out
108 # Command used to check output syntax (optional)
109 # Returns exit code 1 if syntax is wrong, 0 if correct
110 # fd1 is connect to evaluator log, feel free to log anything
111 # fd2 is an optional one-line verdict
112 #SYNTAX_CHECK=grep -v -- - $TDIR/$TEST.out
114 # Command used to check output correctness
115 # Returns exit code 1 if output is incorrect, 0 if correct
116 # fd1 is connect to evaluator log, feel free to log anything
117 # fd2 is an optional one-line verdict
118 # The checker can generate $TDIR/$TEST.pts to assign points irregularly
119 OUTPUT_CHECK=diff -bBu $TDIR/$TEST.ok $TDIR/$TEST.out
121 # Checker for interactive tasks
122 # Returns exit code 1 if test failed, 0 if passed
123 # fd0 and fd1 are connected to fd1 and fd0 of the program tested
124 # fd2 is an optional one-line verdict
125 # The checker can generate $TDIR/$TEST.pts to assign points irregularly
126 #IC_CHECK=$PDIR/checker $PDIR/$TEST.in $PDIR/$TEST.chk
128 # Sandbox options used when testing
129 TEST_SANDBOX_OPTS=-a2 -f -m$MEM_LIMIT -k$STACK_LIMIT -t$TIME_LIMIT $BOX_EXTRAS $BOX_IO_OPTS
131 # Extra options to be overridden in task configuration