eccodes/tests/include.ctest.sh.in

46 lines
1.2 KiB
Bash
Raw Normal View History

2014-03-31 12:57:06 +00:00
set -ea
# For CMake
set -x
2014-03-31 12:57:06 +00:00
proj_dir=@PROJECT_SOURCE_DIR@
2018-11-06 16:26:54 +00:00
build_dir=@PROJECT_BINARY_DIR@
2014-03-31 12:57:06 +00:00
data_dir=@PROJECT_BINARY_DIR@/data
# use definitions from binary dir to test if installation will be correct
def_dir="@CMAKE_BINARY_DIR@/@ECCODES_DEFINITION_SUFF@"
ECCODES_DEFINITION_PATH="${def_dir}"
export ECCODES_DEFINITION_PATH
2014-03-31 12:57:06 +00:00
# binaries are in the TOP CMAKE_BINARY_DIR
2017-02-03 14:21:24 +00:00
tools_dir=@CMAKE_BINARY_DIR@/bin
2017-02-03 14:22:21 +00:00
tigge_dir=@CMAKE_BINARY_DIR@/bin
# If this environment variable is set, then run the
# executables with valgrind. See ECC-746
EXEC=""
if test "x$ECCODES_TEST_WITH_VALGRIND" != "x"; then
2017-02-03 14:21:24 +00:00
tools_dir="valgrind --error-exitcode=1 -q @CMAKE_BINARY_DIR@/bin"
EXEC="valgrind --error-exitcode=1 -q "
fi
# ecCodes tests are in the PROJECT_BINARY_DIR
2017-02-03 14:40:18 +00:00
test_dir=@PROJECT_BINARY_DIR@/tests
2014-03-31 12:57:06 +00:00
# use samples from binary dir to test if installation will be correct
samp_dir="@CMAKE_BINARY_DIR@/@ECCODES_SAMPLES_SUFF@"
ECCODES_SAMPLES_PATH=${samp_dir}
export ECCODES_SAMPLES_PATH
# Options
HAVE_JPEG=@HAVE_JPEG@
HAVE_LIBJASPER=@HAVE_LIBJASPER@
HAVE_LIBOPENJPEG=@HAVE_LIBOPENJPEG@
HAVE_PNG=@HAVE_PNG@
HAVE_AEC=@HAVE_AEC@
HAVE_EXTRA_TESTS=@HAVE_EXTRA_TESTS@
2018-08-22 17:44:57 +00:00
HAVE_MEMFS=@HAVE_MEMFS@
ECCODES_ON_WINDOWS=@ECCODES_ON_WINDOWS@
2018-05-08 13:16:44 +00:00
echo "Current directory: `pwd`"