Skip to content

Commit

Permalink
reconfigure for tier2 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumevernieres committed Jul 8, 2024
1 parent 0c8f73a commit cbe56a8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
6 changes: 0 additions & 6 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,6 @@ mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
WORKFLOW_BUILD=${WORKFLOW_BUILD:-"OFF"}
CMAKE_OPTS+=" -DWORKFLOW_TESTS=${WORKFLOW_BUILD}"

# check if tier-2 testing needs to be activated
if [[ $GDAS_TIER2_TESTING == "ON" ]]; then
echo "Activating tier-2 testing"
CMAKE_OPTS+=" -DGDAS_TIER2_TESTING=ON"
fi

# JCSDA changed test data things, need to make a dummy CRTM directory
if [[ $BUILD_TARGET == 'hera' ]]; then
if [ -d "$dir_root/bundle/fix/test-data-release/" ]; then rm -rf $dir_root/bundle/fix/test-data-release/; fi
Expand Down
9 changes: 9 additions & 0 deletions ci/run_gw_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,15 @@ cd $repodir/sorc/gdas.cd/build
module use $repodir/sorc/gdas.cd/modulefiles
module load GDAS/$TARGET
echo "---------------------------------------------------" >> $outfile
# Reconfigure if the tier-2 testing is required
# TODO: Not the most efficient, but even when exported, the variable is out of scope
# when running build.sh
if [ "$GDAS_TIER2_TESTING" == "ON" ]; then
echo "Tier-2 Testing: Activated" >> $outfile
cmake -DGDAS_TIER2_TESTING=ON .
exit $ctest_status
fi

rm -rf log.ctest
ctest -R gdasapp --output-on-failure &>> log.ctest
ctest_status=$?
Expand Down

0 comments on commit cbe56a8

Please sign in to comment.