From c7f6fa2254551ce5fbf665fb678abd3fd79c16a7 Mon Sep 17 00:00:00 2001 From: RussTreadon-NOAA Date: Mon, 30 Sep 2024 16:50:58 +0000 Subject: [PATCH 1/3] move all gw-ci tests under RUN_GW_CI flag (#1305) --- test/gw-ci/CMakeLists.txt | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/test/gw-ci/CMakeLists.txt b/test/gw-ci/CMakeLists.txt index 35408aeee..582e77e92 100644 --- a/test/gw-ci/CMakeLists.txt +++ b/test/gw-ci/CMakeLists.txt @@ -44,26 +44,26 @@ function(add_cycling_tests pslot YAML_PATH HOMEgfs RUNTESTS PROJECT_SOURCE_DIR T endforeach() endfunction() -# Setup the environement -set(HOMEgfs ${CMAKE_SOURCE_DIR}/../../..) -set(RUNTESTS ${CMAKE_CURRENT_BINARY_DIR}/../../test/gw-ci) - -# 3DVAR WCDA, low-res -# ------------------- -set(pslot "WCDA-3DVAR-C48mx500") -set(YAML_PATH ${HOMEgfs}/ci/cases/pr/C48mx500_3DVarAOWCDA.yaml) -set(TASK_LIST - "gdasprepoceanobs" - "gdasmarinebmat" - "gdasmarineanlinit" - "gdasmarineanlvar" - "gdasmarineanlchkpt" - "gdasmarineanlfinal" - ) -add_cycling_tests(${pslot} ${YAML_PATH} ${HOMEgfs} ${RUNTESTS} ${PROJECT_SOURCE_DIR} "${TASK_LIST}") - option(RUN_GW_CI "Enable the global-workflow CI tests" OFF) if (RUN_GW_CI) + # Setup the environement + set(HOMEgfs ${CMAKE_SOURCE_DIR}/../../..) + set(RUNTESTS ${CMAKE_CURRENT_BINARY_DIR}/../../test/gw-ci) + + # 3DVAR WCDA, low-res + # ------------------- + set(pslot "WCDA-3DVAR-C48mx500") + set(YAML_PATH ${HOMEgfs}/ci/cases/pr/C48mx500_3DVarAOWCDA.yaml) + set(TASK_LIST + "gdasprepoceanobs" + "gdasmarinebmat" + "gdasmarineanlinit" + "gdasmarineanlvar" + "gdasmarineanlchkpt" + "gdasmarineanlfinal" + ) + add_cycling_tests(${pslot} ${YAML_PATH} ${HOMEgfs} ${RUNTESTS} ${PROJECT_SOURCE_DIR} "${TASK_LIST}") + # Aero-Land DA, C96 # ----------------- set(pslot "Aero-Snow-3DVAR-C96") From b493abf86d4ece0056c6046e4c267a5198a42ab4 Mon Sep 17 00:00:00 2001 From: RussTreadon-NOAA Date: Mon, 30 Sep 2024 18:21:32 +0000 Subject: [PATCH 2/3] correct WORKFLOW_TESTS and RUN_GW_CI logic for gw-ci (#1305) --- test/gw-ci/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/gw-ci/CMakeLists.txt b/test/gw-ci/CMakeLists.txt index 582e77e92..1dba4dc0d 100644 --- a/test/gw-ci/CMakeLists.txt +++ b/test/gw-ci/CMakeLists.txt @@ -44,8 +44,7 @@ function(add_cycling_tests pslot YAML_PATH HOMEgfs RUNTESTS PROJECT_SOURCE_DIR T endforeach() endfunction() -option(RUN_GW_CI "Enable the global-workflow CI tests" OFF) -if (RUN_GW_CI) +if (WORKFLOW_TESTS) # Setup the environement set(HOMEgfs ${CMAKE_SOURCE_DIR}/../../..) set(RUNTESTS ${CMAKE_CURRENT_BINARY_DIR}/../../test/gw-ci) @@ -63,7 +62,10 @@ if (RUN_GW_CI) "gdasmarineanlfinal" ) add_cycling_tests(${pslot} ${YAML_PATH} ${HOMEgfs} ${RUNTESTS} ${PROJECT_SOURCE_DIR} "${TASK_LIST}") +endif() +option(RUN_GW_CI "Enable the global-workflow CI tests" OFF) +if (RUN_GW_CI) # Aero-Land DA, C96 # ----------------- set(pslot "Aero-Snow-3DVAR-C96") From 929cc0f5c28991428864166d10e89eb2ba67853c Mon Sep 17 00:00:00 2001 From: RussTreadon-NOAA Date: Mon, 30 Sep 2024 18:27:13 +0000 Subject: [PATCH 3/3] move test_gdasapp_aero_gen_3dvar_yaml inside WORKFLOW_TESTS block (#1305) --- test/aero/CMakeLists.txt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/test/aero/CMakeLists.txt b/test/aero/CMakeLists.txt index e63e08dea..4b459cb27 100644 --- a/test/aero/CMakeLists.txt +++ b/test/aero/CMakeLists.txt @@ -1,10 +1,12 @@ # tests that can run without needing all JEDI components -# test to generate YAML for aerosol 3DVar -add_test(NAME test_gdasapp_aero_gen_3dvar_yaml - COMMAND ${PROJECT_SOURCE_DIR}/test/aero/genyaml_3dvar.sh ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR} - WORKING DIRECTORY ${PROJECT_BINARY_DIR}/test/testrun/) - +# test to generate YAML for aerosol 3DVar. +if (WORKFLOW_TESTS) + add_test(NAME test_gdasapp_aero_gen_3dvar_yaml + COMMAND ${PROJECT_SOURCE_DIR}/test/aero/genyaml_3dvar.sh ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR} + WORKING DIRECTORY ${PROJECT_BINARY_DIR}/test/testrun/) +endif() + # tests that require the full build if(BUILD_GDASBUNDLE) # Test exgdas scripts from the global-worflow