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 diff --git a/test/gw-ci/CMakeLists.txt b/test/gw-ci/CMakeLists.txt index 35408aeee..1dba4dc0d 100644 --- a/test/gw-ci/CMakeLists.txt +++ b/test/gw-ci/CMakeLists.txt @@ -44,23 +44,25 @@ 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) +if (WORKFLOW_TESTS) + # 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}") + # 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}") +endif() option(RUN_GW_CI "Enable the global-workflow CI tests" OFF) if (RUN_GW_CI)