2014-03-31 12:57:06 +00:00
|
|
|
set -ea
|
|
|
|
# For CMake
|
|
|
|
|
2015-01-26 17:08:10 +00:00
|
|
|
# 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
|
|
|
|
|
2014-03-31 12:57:06 +00:00
|
|
|
proj_dir=@PROJECT_SOURCE_DIR@
|
|
|
|
data_dir=@PROJECT_BINARY_DIR@/data
|
|
|
|
|
2015-03-10 18:19:51 +00:00
|
|
|
# use definitions from binary dir to test if installation will be correct
|
|
|
|
def_dir="@CMAKE_BINARY_DIR@/share/@PROJECT_NAME@/definitions"
|
2015-01-23 22:47:51 +00:00
|
|
|
ECCODES_DEFINITION_PATH="${def_dir}"
|
|
|
|
export ECCODES_DEFINITION_PATH
|
2014-03-31 12:57:06 +00:00
|
|
|
|
2015-03-10 18:19:51 +00:00
|
|
|
# binaries are in the TOP CMAKE_BINARY_DIR
|
|
|
|
tools_dir=@CMAKE_BINARY_DIR@/bin/
|
|
|
|
tigge_dir=@CMAKE_BINARY_DIR@/bin/
|
|
|
|
|
|
|
|
# ecCodes tests are in the PROJECT_BINARY_DIR
|
2015-03-09 16:22:55 +00:00
|
|
|
test_dir=@PROJECT_BINARY_DIR@/tests
|
2014-03-31 12:57:06 +00:00
|
|
|
|
2015-03-10 18:19:51 +00:00
|
|
|
# use samples from binary dir to test if installation will be correct
|
|
|
|
samp_dir="@CMAKE_BINARY_DIR@/share/@PROJECT_NAME@/samples"
|
2015-01-23 22:47:51 +00:00
|
|
|
ECCODES_SAMPLES_PATH=${samp_dir}
|
|
|
|
export ECCODES_SAMPLES_PATH
|
2016-08-05 15:24:14 +00:00
|
|
|
|
|
|
|
# Options
|
|
|
|
HAVE_JPG=@HAVE_JPG@
|
|
|
|
HAVE_PNG=@HAVE_PNG@
|
|
|
|
HAVE_AEC=@HAVE_AEC@
|