Skip to content

Commit

Permalink
added 3 gw-ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumevernieres committed May 16, 2024
1 parent e0dfc43 commit d99c7f9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
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
18 changes: 12 additions & 6 deletions test/gw-ci/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# WCDA test similar to what is tested in the gw-ci
set(pslot wcda-gwci)
# Setup the environement
set(HOMEgfs ${CMAKE_SOURCE_DIR}/../../..)
set(RUNTESTS ${CMAKE_CURRENT_BINARY_DIR}/../../test/gw-ci)
set(YAML ${HOMEgfs}/ci/cases/pr/C48mx500_3DVarAOWCDA.yaml)

add_test(NAME wcda_ci
COMMAND /bin/bash -c "${PROJECT_SOURCE_DIR}/test/gw-ci/create_exp.sh ${YAML} ${pslot} ${HOMEgfs} ${RUNTESTS}"
WORKING_DIRECTORY ${RUNTESTS})
# 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()
2 changes: 1 addition & 1 deletion test/gw-ci/create_exp.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
expyaml="$1"
export pslot="$2"
export HOMEgfs="$3"
HOMEgfs="$3"
export RUNTESTS="$4"/${pslot}
export ICSDIR_ROOT=/scratch1/NCEPDEV/global/glopara/data/ICSDIR
export SLURM_ACCOUNT="da-cpu"
Expand Down

0 comments on commit d99c7f9

Please sign in to comment.