diff --git a/utils/test/CMakeLists.txt b/utils/test/CMakeLists.txt index 6808b86fe..9eb9d310e 100644 --- a/utils/test/CMakeLists.txt +++ b/utils/test/CMakeLists.txt @@ -1,3 +1,11 @@ +# Create Data directory for test input config and symlink all files +list( APPEND utils_test_input + testinput/gdas_meanioda.yaml +) + +file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/testinput) +CREATE_SYMLINK( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${utils_test_input} ) + # Test example IODA utility that computes the mean of a variable ecbuild_add_test( TARGET test_gdasapp_util_ioda_example COMMAND ${CMAKE_BINARY_DIR}/bin/gdas_meanioda.x diff --git a/utils/test/testinput/gdas_meanioda.yaml b/utils/test/testinput/gdas_meanioda.yaml index a904f2a86..fc390d829 100644 --- a/utils/test/testinput/gdas_meanioda.yaml +++ b/utils/test/testinput/gdas_meanioda.yaml @@ -5,7 +5,7 @@ obs space: obsdatain: engine: type: H5File - obsfile: Data/ufo/testinput_tier_1/instruments/radiance/amsua_n19_obs_2020110112_m.nc4 + obsfile: ../../ufo-data/testinput_tier_1/instruments/radiance/amsua_n19_obs_2020110112_m.nc4 simulated variables: [brightnessTemperature] observed variables: [brightnessTemperature] group: ObsValue