diff --git a/tests/definitions.sh b/tests/definitions.sh index 47785635c..075138dcc 100755 --- a/tests/definitions.sh +++ b/tests/definitions.sh @@ -15,7 +15,7 @@ REDIRECT=/dev/null [ -z "$ECCODES_DEFINITION_PATH" ] | ECCODES_DEFINITION_PATH=`${tools_dir}codes_info -d` -for file in `find $ECCODES_DEFINITION_PATH -name '*.def' -print` +for file in `find ${ECCODES_DEFINITION_PATH}/ -name '*.def' -print` do ${tools_dir}codes_parser $file > $REDIRECT done diff --git a/tests/include.ctest.sh.in b/tests/include.ctest.sh.in index 876fedb79..783d0d92f 100644 --- a/tests/include.ctest.sh.in +++ b/tests/include.ctest.sh.in @@ -11,8 +11,7 @@ proj_dir=@PROJECT_SOURCE_DIR@ data_dir=@PROJECT_BINARY_DIR@/data # 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 -def_dir="@CMAKE_BINARY_DIR@/@ECCODES_DEFINITION_SUFF@/" +def_dir="@CMAKE_BINARY_DIR@/@ECCODES_DEFINITION_SUFF@" ECCODES_DEFINITION_PATH="${def_dir}" export ECCODES_DEFINITION_PATH