New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 14893 for utils/CI/sette_ticket2673/all_functions.sh – NEMO

Ignore:
Timestamp:
2021-05-20T17:48:27+02:00 (3 years ago)
Author:
acc
Message:

Branch sette_ticket2673. Add -g option to supply a 1 character, alphanumeric suffix which is appended to _ST when creating configuration directories. This allows grouping of runtime directories so that chained invocations of sette.sh will not be at risk of interference. I.e. it makes possible a super-sette script such as:
#!/bin/bash
# set -vx
# Simple script to create a full suite of tests
#
./sette.sh -r -g 0 # Full tests - MAIN (using *_ST0 config dirs)
./sette.sh -e -F -t -v HALO1 -g 1 -r # Full tests - with nn_hls=1 (using *_ST1 config dirs)
./sette.sh -i -e -F -t -n ORCA2_ICE_PISCES -v NO_ICB1 -g 2 -r # ORCA2_ICE_PISCES, nn_hls=1, no icebergs (using *_ST2 config dirs)
./sette.sh -i -n ORCA2_ICE_PISCES -v NO_ICB2 -g 3 -r # ORCA2_ICE_PISCES, nn_hls=2, no icebergs (using *_ST3 config dirs)
./sette.sh -C -n ORCA2_ICE_PISCES -v NO_COLL -g 4 -r # ORCA2_ICE_PISCES, nn_hls=2, no collectives (using *_ST4 config dirs)
./sette.sh -q -v NO_QCO -g 5 # Full tests without key_qco (using *_ST5 config dirs)
#
exit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • utils/CI/sette_ticket2673/all_functions.sh

    r14870 r14893  
    9191usage=" if value is a string ths is neede syntax : ./set_namelist namelist_name var_name \"new_value\" " 
    9292 
    93 # sync MYSRC files (input CFG and CFG_ST) 
     93# sync MYSRC files (input CFG and CFG_STg; where g is an optional, single, alphanumeric character) 
    9494sync_config() { 
    9595   if [ ${SYNC_CONFIGS} == "yes" ]; then 
     
    144144} 
    145145 
    146 # clean _ST config (input CFG CFG_ST TYPE (test or ref)) 
     146# clean _STg config (input CFG CFG_STg TYPE (test or ref)) 
    147147clean_config() { 
    148148   if [ ${CLEAN_CONFIGS} == "yes" ]; then 
     
    184184    fi 
    185185    [ `${SVN_CMD} status -q ${SETTE_DIR}/../{cfgs,tests,src} | wc -l` -ge 1 ] && REVISION_NB=${REVISION_NB}+ 
    186     export NEMO_VALID=${NEMO_VALIDATION_DIR}/${CMP_NAM}/${REVISION_NB}/${NEW_CONF/%_ST/}/${TEST_NAME} 
     186    # remove last _ST followed by zero or more alphanumeric characters 
     187    NEW_CONF1=$( echo $NEW_CONF | sed -e 's/_ST\([0-9a-zA-Z]*\)$//' ) 
     188    export NEMO_VALID=${NEMO_VALIDATION_DIR}/${CMP_NAM}/${REVISION_NB}/${NEW_CONF1}/${TEST_NAME} 
    187189} 
    188190 
Note: See TracChangeset for help on using the changeset viewer.