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 14873 for utils/CI/sette_ticket2673/sette_test-cases.sh – NEMO

Ignore:
Timestamp:
2021-05-17T16:19:02+02:00 (3 years ago)
Author:
acc
Message:

Branch: sette_ticket2673. Improved functionality: added -r (no report) option to disable running sette_rpt.sh at the end of sette.sh (allows chaining of sette.sh invocations with different arguments). Allowed SAS and AGRIF to be equivalently requested as ORCA2_SAS_ICE or AGRIF_DEMO (saves having to remember which are abbreviated). Sorted out the logic so that RESTART is no longer a mandatory test (allows REPRO without RESTART but, also, importantly, allows COMPILE as a test which will compile but not attempt to run - should mean fewer excuses for not running SETTE)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • utils/CI/sette_ticket2673/sette_test-cases.sh

    r14869 r14873  
    127127# WAD 
    128128 
     129. ./all_functions.sh 
    129130for config in ${TEST_CONFIGS[@]} 
    130131do 
     
    133134#  OVERFLOW 
    134135# --------- 
    135 if [ ${config} == "OVERFLOW" ] && [ ${DO_RESTART} == "1" ] ;  then 
    136     ## Restartability tests for OVERFLOW 
     136if [ ${config} == "OVERFLOW" ] ;  then 
    137137    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ] 
    138138    then 
     
    142142    fi 
    143143    ITRST=$( printf "%08d" $(( ${ITEND} / 2 )) ) 
     144    cd ${MAIN_DIR} 
     145    # 
     146    # 
     147    clean_config OVERFLOW OVERFLOW_ST 'tests' 
     148    # 
     149    sync_config  OVERFLOW OVERFLOW_ST 'tests' 
     150    # 
     151    . ./makenemo -m ${CMP_NAM} -n OVERFLOW_ST -a OVERFLOW -j ${CMPL_CORES} add_key "${ADD_KEYS}" del_key "${DEL_KEYS}" 
     152fi 
     153if [ ${config} == "OVERFLOW" ] && [ ${DO_RESTART} == "1" ] ;  then 
     154    ## Restartability tests for OVERFLOW 
    144155    export TEST_NAME="LONG" 
    145     cd ${MAIN_DIR} 
    146     # 
    147     . ${SETTE_DIR}/all_functions.sh 
    148     # 
    149     clean_config OVERFLOW OVERFLOW_ST 'tests' 
    150     # 
    151     sync_config  OVERFLOW OVERFLOW_ST 'tests' 
    152     # 
    153     . ./makenemo -m ${CMP_NAM} -n OVERFLOW_ST -a OVERFLOW -j ${CMPL_CORES} add_key "${ADD_KEYS}" del_key "${DEL_KEYS}" 
    154     cd ${SETTE_DIR} 
    155     . ./all_functions.sh 
     156    cd ${SETTE_DIR} 
    156157    . ./prepare_exe_dir.sh 
    157158    set_valid_dir 
     
    215216         ## 
    216217        cd ${SETTE_DIR} 
    217         . ./all_functions.sh 
    218218        . ./prepare_exe_dir.sh 
    219219        set_valid_dir 
     
    240240#  LOCK_EXCHANGE 
    241241# -------------- 
    242 if [ ${config} == "LOCK_EXCHANGE" ] && [ ${DO_RESTART} == "1" ] ;  then 
    243     ## Restartability tests for LOCK_EXCHANGE 
     242if [ ${config} == "LOCK_EXCHANGE" ] ;  then 
    244243    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ] 
    245244    then 
     
    249248    fi 
    250249    ITRST=$( printf "%08d" $(( ${ITEND} / 2 )) ) 
     250    cd ${MAIN_DIR} 
     251    # 
     252    # syncronisation if target directory/file exist (not done by makenemo) 
     253    # 
     254    clean_config LOCK_EXCHANGE LOCK_EXCHANGE_ST 'tests' 
     255    # 
     256    sync_config  LOCK_EXCHANGE LOCK_EXCHANGE_ST 'tests' 
     257    # 
     258    . ./makenemo -m ${CMP_NAM} -n LOCK_EXCHANGE_ST -a LOCK_EXCHANGE -j ${CMPL_CORES} add_key "${ADD_KEYS}" del_key "${DEL_KEYS}" 
     259fi 
     260if [ ${config} == "LOCK_EXCHANGE" ] && [ ${DO_RESTART} == "1" ] ;  then 
     261    ## Restartability tests for LOCK_EXCHANGE 
    251262    export TEST_NAME="LONG" 
    252     cd ${MAIN_DIR} 
    253     # 
    254     # syncronisation if target directory/file exist (not done by makenemo) 
    255     . ${SETTE_DIR}/all_functions.sh 
    256     # 
    257     clean_config LOCK_EXCHANGE LOCK_EXCHANGE_ST 'tests' 
    258     # 
    259     sync_config  LOCK_EXCHANGE LOCK_EXCHANGE_ST 'tests' 
    260     # 
    261     . ./makenemo -m ${CMP_NAM} -n LOCK_EXCHANGE_ST -a LOCK_EXCHANGE -j ${CMPL_CORES} add_key "${ADD_KEYS}" del_key "${DEL_KEYS}" 
    262     cd ${SETTE_DIR} 
    263     . ./all_functions.sh 
     263    cd ${SETTE_DIR} 
    264264    . ./prepare_exe_dir.sh 
    265265    set_valid_dir 
     
    323323        ##   
    324324        cd ${SETTE_DIR} 
    325         . ./all_functions.sh 
    326325        . ./prepare_exe_dir.sh 
    327326        set_valid_dir 
     
    349348# VORTEX 
    350349# --------- 
    351 if [ ${config} == "VORTEX" ] && [ ${DO_RESTART} == "1" ] ;  then 
    352 ## Restartability tests for VORTEX 
     350if [ ${config} == "VORTEX" ] ;  then 
    353351    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ] 
    354352    then 
     
    359357    ITRST=$(   printf "%08d" $(( ${ITEND} / 2 )) ) 
    360358    ITRST_1=$( printf "%08d" $(( ${ITEND} * 3 / 2 )) ) 
     359    cd ${MAIN_DIR} 
     360    # 
     361    # syncronisation if target directory/file exist (not done by makenemo) 
     362    # 
     363    clean_config VORTEX VORTEX_ST 'tests' 
     364    # 
     365    sync_config  VORTEX VORTEX_ST 'tests' 
     366    # 
     367    . ./makenemo -m ${CMP_NAM} -n VORTEX_ST -a VORTEX -j ${CMPL_CORES}  add_key "${ADD_KEYS}" del_key "${DEL_KEYS}" 
     368fi 
     369if [ ${config} == "VORTEX" ] && [ ${DO_RESTART} == "1" ] ;  then 
     370## Restartability tests for VORTEX 
    361371    export TEST_NAME="LONG" 
    362     cd ${MAIN_DIR} 
    363     # 
    364     # syncronisation if target directory/file exist (not done by makenemo) 
    365     . ${SETTE_DIR}/all_functions.sh 
    366     # 
    367     clean_config VORTEX VORTEX_ST 'tests' 
    368     # 
    369     sync_config  VORTEX VORTEX_ST 'tests' 
    370     # 
    371     . ./makenemo -m ${CMP_NAM} -n VORTEX_ST -a VORTEX -j ${CMPL_CORES}  add_key "${ADD_KEYS}" del_key "${DEL_KEYS}" 
    372     cd ${SETTE_DIR} 
    373     . ./all_functions.sh 
     372    cd ${SETTE_DIR} 
    374373    . ./prepare_exe_dir.sh 
    375374    set_valid_dir 
     
    445444    cd ${MAIN_DIR} 
    446445    cd ${SETTE_DIR} 
    447     . ./all_functions.sh 
    448446    . ./prepare_exe_dir.sh 
    449447    set_valid_dir 
     
    519517# ICE_AGRIF 
    520518# --------- 
    521 if [ ${config} == "ICE_AGRIF" ] && [ ${DO_RESTART} == "1" ] ;  then 
    522 ## Restartability tests for ICE_AGRIF 
     519if [ ${config} == "ICE_AGRIF" ] ;  then 
    523520    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ] 
    524521    then 
     
    529526    ITRST=$(   printf "%08d" $(( ${ITEND} / 2 )) ) 
    530527    ITRST_1=$( printf "%08d" $(( ${ITEND} * 3 / 2 )) ) 
    531     export TEST_NAME="LONG" 
    532528    cd ${MAIN_DIR} 
    533529    # 
    534530    # syncronisation if target directory/file exist (not done by makenemo) 
    535     . ${SETTE_DIR}/all_functions.sh 
    536531    # 
    537532    clean_config ICE_AGRIF ICE_AGRIF_ST 'tests' 
     
    541536    # ICE_AGRIF uses linssh so remove key_qco if added by default 
    542537    . ./makenemo -m ${CMP_NAM} -n ICE_AGRIF_ST -a ICE_AGRIF -j ${CMPL_CORES}  add_key "${ADD_KEYS/key_qco/}" del_key "${DEL_KEYS}" 
    543     cd ${SETTE_DIR} 
    544     . ./all_functions.sh 
     538fi 
     539if [ ${config} == "ICE_AGRIF" ] && [ ${DO_RESTART} == "1" ] ;  then 
     540## Restartability tests for ICE_AGRIF 
     541    export TEST_NAME="LONG" 
     542    cd ${SETTE_DIR} 
    545543    . ./prepare_exe_dir.sh 
    546544    set_valid_dir 
     
    625623    cd ${MAIN_DIR} 
    626624    cd ${SETTE_DIR} 
    627     . ./all_functions.sh 
    628625    . ./prepare_exe_dir.sh 
    629626    set_valid_dir 
     
    694691# ISOMIP+ 
    695692# ------ 
    696 if [ ${config} == "ISOMIP+" ] && [ ${DO_RESTART} == "1" ] ;  then 
    697 ## Restartability tests 
     693if [ ${config} == "ISOMIP+" ] ;  then 
    698694    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ] 
    699695    then 
     
    703699    fi 
    704700    ITRST=$( printf "%08d" $(( ${ITEND} / 2 )) ) 
    705     export TEST_NAME="LONG" 
    706701    cd ${MAIN_DIR} 
    707702    # 
    708703    # syncronisation if target directory/file exist (not done by makenemo) 
    709     . ${SETTE_DIR}/all_functions.sh 
    710704    # 
    711705    clean_config ISOMIP+ ISOMIP+_ST 'tests' 
     
    715709    # ISOMIP+ uses ln_hpg_isf so remove key_qco if added by default 
    716710    . ./makenemo -m ${CMP_NAM} -n ISOMIP+_ST -a ISOMIP+ -j ${CMPL_CORES} add_key "${ADD_KEYS/key_qco/}" del_key "${DEL_KEYS}" 
    717     cd ${SETTE_DIR} 
    718     . ./all_functions.sh 
     711fi 
     712if [ ${config} == "ISOMIP+" ] && [ ${DO_RESTART} == "1" ] ;  then 
     713## Restartability tests 
     714    export TEST_NAME="LONG" 
     715    cd ${SETTE_DIR} 
    719716    . ./prepare_exe_dir.sh 
    720717    set_valid_dir 
     
    778775    cd ${MAIN_DIR} 
    779776    cd ${SETTE_DIR} 
    780     . ./all_functions.sh 
    781777    . ./prepare_exe_dir.sh 
    782778    set_valid_dir 
     
    827823# SWG 
    828824# --------- 
    829 if [ ${config} == "SWG" ] && [ ${DO_RESTART} == "1" ] && [ ${USING_QCO} == "yes" ] ;  then 
    830 ## Restartability tests for SWG 
     825if [ ${config} == "SWG" ] && [ ${USING_QCO} == "yes" ] ;  then 
    831826    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ] 
    832827    then 
     
    836831    fi 
    837832    ITRST=$(   printf "%08d" $(( ${ITEND} / 2 )) ) 
     833    cd ${MAIN_DIR} 
     834    # 
     835    # syncronisation if target directory/file exist (not done by makenemo) 
     836    # 
     837    clean_config SWG SWG_ST 'tests' 
     838    # 
     839    sync_config  SWG SWG_ST 'tests' 
     840    # 
     841    . ./makenemo -m ${CMP_NAM} -n SWG_ST -a SWG -j ${CMPL_CORES}  add_key "${ADD_KEYS}" del_key "${DEL_KEYS}" 
     842fi 
     843if [ ${config} == "SWG" ] && [ ${DO_RESTART} == "1" ] && [ ${USING_QCO} == "yes" ] ;  then 
     844## Restartability tests for SWG 
    838845    export TEST_NAME="LONG" 
    839     cd ${MAIN_DIR} 
    840     # 
    841     # syncronisation if target directory/file exist (not done by makenemo) 
    842     . ${SETTE_DIR}/all_functions.sh 
    843     # 
    844     clean_config SWG SWG_ST 'tests' 
    845     # 
    846     sync_config  SWG SWG_ST 'tests' 
    847     # 
    848     . ./makenemo -m ${CMP_NAM} -n SWG_ST -a SWG -j ${CMPL_CORES}  add_key "${ADD_KEYS}" del_key "${DEL_KEYS}" 
    849     cd ${SETTE_DIR} 
    850     . ./all_functions.sh 
     846    cd ${SETTE_DIR} 
    851847    . ./prepare_exe_dir.sh 
    852848    set_valid_dir 
     
    905901    cd ${MAIN_DIR} 
    906902    cd ${SETTE_DIR} 
    907     . ./all_functions.sh 
    908903    . ./prepare_exe_dir.sh 
    909904    set_valid_dir 
Note: See TracChangeset for help on using the changeset viewer.