From 5626f22abf644e7f279ad0473f10acddc495ff65 Mon Sep 17 00:00:00 2001 From: Kai Kratz Date: Wed, 2 Oct 2024 17:09:16 +0200 Subject: [PATCH] Configure fdb_axes test with eccodes bin location This change gets the location of the eccodes binaries from an arbitray selected eccodes binary to ensure the binaries can be found if they are installed into a non default location. --- tests/fdb/tools/CMakeLists.txt | 1 + tests/fdb/tools/fdb_axes.sh.in | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/fdb/tools/CMakeLists.txt b/tests/fdb/tools/CMakeLists.txt index 6ff2df23a..8b6d8a77f 100644 --- a/tests/fdb/tools/CMakeLists.txt +++ b/tests/fdb/tools/CMakeLists.txt @@ -9,6 +9,7 @@ foreach( _t ${fdb_tools_tests} ) ecbuild_add_test( TYPE SCRIPT CONDITION HAVE_FDB_BUILD_TOOLS + ENVIRONMENT ECCODES_BINARY_PATH=$ COMMAND ${_t}.sh) endforeach() diff --git a/tests/fdb/tools/fdb_axes.sh.in b/tests/fdb/tools/fdb_axes.sh.in index a9a3abeb2..50ae8606e 100755 --- a/tests/fdb/tools/fdb_axes.sh.in +++ b/tests/fdb/tools/fdb_axes.sh.in @@ -2,7 +2,7 @@ set -eux -export PATH=@CMAKE_BINARY_DIR@/bin:$PATH +export PATH=@CMAKE_BINARY_DIR@/bin:${ECCODES_BINARY_PATH}:$PATH export FDB_HOME=@PROJECT_BINARY_DIR@ srcdir=@CMAKE_CURRENT_SOURCE_DIR@