mirror of https://github.com/ecmwf/eccodes.git
25 lines
562 B
Bash
25 lines
562 B
Bash
set -ea
|
|
# For CMake
|
|
|
|
# If this environment variable is set, then become verbose
|
|
# so one can see why and how a test failed
|
|
if test "x$ECCODES_TEST_VERBOSE_OUTPUT" != "x"; then
|
|
set -x
|
|
fi
|
|
|
|
proj_dir=@PROJECT_SOURCE_DIR@
|
|
data_dir=@PROJECT_BINARY_DIR@/data
|
|
|
|
def_dir=@PROJECT_SOURCE_DIR@/definitions
|
|
ECCODES_DEFINITION_PATH="${def_dir}"
|
|
export ECCODES_DEFINITION_PATH
|
|
|
|
tools_dir=@CMAKE_BINARY_DIR@/bin/
|
|
tigge_dir=@CMAKE_BINARY_DIR@/bin/
|
|
test_dir=@CMAKE_BINARY_DIR@/tests
|
|
|
|
samp_dir="${proj_dir}/samples"
|
|
ECCODES_SAMPLES_PATH=${samp_dir}
|
|
export ECCODES_SAMPLES_PATH
|
|
|