ECC-106 Use ECCODES_{DEFINITION,SAMPLES}_SUFF in test scripts

This commit is contained in:
Florian Rathgeber 2017-02-03 13:58:57 +00:00
parent 5023f91d7a
commit 353b6fa8f4
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ data_dir=@PROJECT_BINARY_DIR@/data
# use definitions from binary dir to test if installation will be correct # use definitions from binary dir to test if installation will be correct
# Note: 'definitions' is a symlink so must put final slash to interpret as directory # Note: 'definitions' is a symlink so must put final slash to interpret as directory
def_dir="@CMAKE_BINARY_DIR@/share/@PROJECT_NAME@/definitions/" def_dir="@CMAKE_BINARY_DIR@/@ECCODES_DEFINITION_SUFF@/"
ECCODES_DEFINITION_PATH="${def_dir}" ECCODES_DEFINITION_PATH="${def_dir}"
export ECCODES_DEFINITION_PATH export ECCODES_DEFINITION_PATH
@ -30,7 +30,7 @@ fi
test_dir=@PROJECT_BINARY_DIR@/tests/ test_dir=@PROJECT_BINARY_DIR@/tests/
# use samples from binary dir to test if installation will be correct # use samples from binary dir to test if installation will be correct
samp_dir="@CMAKE_BINARY_DIR@/share/@PROJECT_NAME@/samples" samp_dir="@CMAKE_BINARY_DIR@/@ECCODES_SAMPLES_SUFF@"
ECCODES_SAMPLES_PATH=${samp_dir} ECCODES_SAMPLES_PATH=${samp_dir}
export ECCODES_SAMPLES_PATH export ECCODES_SAMPLES_PATH