X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=t%2Fconfig;h=d9387bca4022b4b97e3b8f38c8f897c5b7cb8f3f;hb=3f9d4a11f58763130548b04a3ff449c8d468c17a;hp=910dfcb1ec99bc29ca8a7a59ac6347eda485751c;hpb=3f526141c46760219dbd8fef09a3ae632e44e574;p=eval.git diff --git a/t/config b/t/config index 910dfcb..d9387bc 100644 --- a/t/config +++ b/t/config @@ -1,8 +1,56 @@ # HOME set automatically # CONTESTANT set automatically # TASK set automatically +## FIXME: Rename? TASK_DIR="${HOME}/problems/${TASK}" SOL_DIR="${HOME}/solutions/${CONTESTANT}/${TASK}" TEST_DIR="${HOME}/testing/${CONTESTANT}/${TASK}" TASK_TYPE=batch + +### Programming language settings + +# Known source file extensions +EXTENSIONS="c cc C cpp p pas" + +# Some of the extensions can be aliases for other extensions +ALIAS_EXT_cc=cpp +ALIAS_EXT_C=cpp +ALIAS_EXT_p=pas + +# SRC is auto + +## Variables which control compilation and execution +## (see below for values for individual languages) + +# Command used to run the compiler +COMP=false + +# Sandbox options used when compiling +COMP_SANDBOX_OPTS='-m262144 -w60 -e -i/dev/null' + +# EXE is auto, but can be overridden + +# Command used to execute the compiled program, may be ./$PROGRAM (default) or an +# interpreter with $PROGRAM as a parameter. +TEST_EXEC_CMD=./$EXE + +## Settings for individual languages + +# C +EXT_c_COMP='/usr/bin/gcc -std=gnu99 -O2 -g -o $EXE $EXTRA_CFLAGS $SRC -lm' +EXTRA_CFLAGS= + +# C++ +EXT_cpp_COMP='/usr/bin/g++ -O2 -g -o $EXE $EXTRA_CXXFLAGS $SRC -lm' +EXTRA_CXXFLAGS= + +# Pascal +EXT_pas_COMP='/usr/bin/fpc -Ci -g -O2 -Sg -o$EXE $EXTRA_PFLAGS $SRC' +EXTRA_PFLAGS= + +### Per-task configuration variables (default values, override in per-task config) + +# List of extra files needed for compilation. They are copied to the compiler +# sandbox from the problem's directory. XXX: or tdir +#COMP_EXTRAS="extras.h"