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 12569 for utils/CI/sette/sette.sh – NEMO

Ignore:
Timestamp:
2020-03-18T12:22:56+01:00 (4 years ago)
Author:
mathiot
Message:

ticket #2304: merge branch sette_ticket2304 into sette (thank you Simon for the review and all the suggestions you made). It include synchronisation and cleaning option between the REF config and the _ST config to ease the work when the reference configurations are changed and display bug in sette_check_avail_rev

File:
1 edited

Legend:

Unmodified
Added
Removed
  • utils/CI/sette/sette.sh

    r12135 r12569  
    55 
    66# Parse command-line arguments 
    7 # 
    8 #  -t "test configurations": select active test configurations 
    9 #                            (overrides selection made using 
    10 #                            environment variable SETTE_TEST_CONFIGS) 
    11  
    127if [ $# -gt 0 ]; then 
    13   while getopts :ht: option; do  
     8  while getopts t:csh option; do  
    149     case $option in 
     10        c) export SETTE_CLEAN_CONFIGS='yes' 
     11           export SETTE_SYNC_CONFIGS='yes' 
     12           echo "" 
     13           echo "Configuration $SETTE_TEST_CONFIGS will be cleaned; this option enforces also synchronisation" 
     14           echo "";; 
     15        s) export SETTE_SYNC_CONFIGS='yes' 
     16           echo "" 
     17           echo "MY_SRC and EXP00 in $SETTE_TEST_CONFIGS will be synchronised with the MY_SRC and EXPREF from the reference configuration" 
     18           echo "";; 
    1519        t) export SETTE_TEST_CONFIGS=$OPTARG 
    1620           echo "" 
    1721           echo "Configuration $SETTE_TEST_CONFIGS will be tested if they are available" 
    1822           echo "" ;; 
    19         h | *) echo 'sette.sh allow no arguments (all configuration will be tested or -t "CFG1_to_test CFG2_to_test ..."'; exit 42 ;; 
     23        h | *) echo 'sette.sh allows no arguments (in this case all configuration will be tested)' 
     24               echo '-t "CFG1_to_test CFG2_to_test ..." to test some specific configurations' 
     25               echo '-c to clean each configuration' 
     26               echo '-s to synchronise the sette MY_SRC and EXP00 with the reference MY_SRC and EXPREF'; exit 42 ;; 
    2027     esac 
    2128  done 
     
    5764while [[ $NRUN -ne 0 && $nit -le 1080 ]]; do 
    5865   nit=$((nit+1)) 
    59    NRUN=$( ${BATCH_STAT} | grep nemo_sette | wc -l )  
     66   NRUN=$( ${BATCH_STAT} | grep ${BATCH_NAME} | wc -l )  
    6067   if [[ $NRUN -ne 0 ]]; then  
    61       printf "%-3d %s\r" $NRUN 'nemo_sette run still in queue or running ...'; 
     68      printf "%-3d %s\r" $NRUN 'nemo_sette runs still in queue or running ...'; 
    6269   else 
    6370      printf "%-50s\n" " " 
Note: See TracChangeset for help on using the changeset viewer.