Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replicate the creation of the gw-ci cycling test #1114

Merged
merged 14 commits into from
May 20, 2024
2 changes: 1 addition & 1 deletion ci/run_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ module use $GDAS_MODULE_USE
module load GDAS/$TARGET
echo "---------------------------------------------------" >> $outfile
rm -rf log.ctest
ctest -R gdasapp --output-on-failure &>> log.ctest
ctest -E "manual" -R gdasapp --output-on-failure &>> log.ctest
ctest_status=$?
npassed=$(cat log.ctest | grep "tests passed")
if [ $ctest_status -eq 0 ]; then
Expand Down
16 changes: 4 additions & 12 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -134,19 +134,11 @@ if (WORKFLOW_TESTS)
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/test/testrun)
endif()

# fv3jedi tests
if (${BUILD_GDASBUNDLE})
add_subdirectory(fv3jedi)
endif()

# soca tests
if (${BUILD_GDASBUNDLE})
add_subdirectory(soca)
endif()

# snow da tests
if (${BUILD_GDASBUNDLE})
add_subdirectory(snow)
add_subdirectory(fv3jedi) # fv3jedi tests
add_subdirectory(soca) # soca tests
add_subdirectory(snow) # snow da tests
add_subdirectory(gw-ci) # replicate the creation of some of the gw-ci tests
endif()

# gdas atm tests
Expand Down
15 changes: 15 additions & 0 deletions test/gw-ci/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Setup the environement
set(HOMEgfs ${CMAKE_SOURCE_DIR}/../../..)
set(RUNTESTS ${CMAKE_CURRENT_BINARY_DIR}/../../test/gw-ci)

# List of g-w ci test to create
set(cycling_tests "C48mx500_3DVarAOWCDA" "C96_atmaerosnowDA" "C96C48_ufs_hybatmDA")

# Prepare the cycling ctests
foreach(pslot ${cycling_tests})
set(YAML ${HOMEgfs}/ci/cases/pr/${pslot}.yaml)
add_test(NAME ${pslot}
COMMAND /bin/bash -c "${PROJECT_SOURCE_DIR}/test/gw-ci/create_exp.sh ${YAML} ${pslot} ${HOMEgfs} ${RUNTESTS}"
WORKING_DIRECTORY ${RUNTESTS})
set_tests_properties(${pslot} PROPERTIES LABELS "manual")
endforeach()
13 changes: 13 additions & 0 deletions test/gw-ci/create_exp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
expyaml="$1"
export pslot="$2"
HOMEgfs="$3"
export RUNTESTS="$4"/${pslot}
export ICSDIR_ROOT=/scratch1/NCEPDEV/global/glopara/data/ICSDIR
CoryMartin-NOAA marked this conversation as resolved.
Show resolved Hide resolved
export SLURM_ACCOUNT="da-cpu"
CoryMartin-NOAA marked this conversation as resolved.
Show resolved Hide resolved

# Source the gw environement
${HOMEgfs}/workflow/gw_setup.sh

# Create the experiment
${HOMEgfs}/workflow/create_experiment.py --yaml ${expyaml} --overwrite
Loading