Changeset 12431


Ignore:
Timestamp:
2020-02-21T11:49:23+01:00 (12 months ago)
Author:
mathiot
Message:

add option to specify the compiler used in sette_rpt.sh and to specify the number of pass in param.cfg

Location:
utils/CI/sette_ticket2304
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • utils/CI/sette_ticket2304/param.cfg

    r12422 r12431  
    7474TEST_CONFIGS=${SETTE_TEST_CONFIGS:-"ORCA2_ICE_PISCES ORCA2_OFF_PISCES AMM12 AGRIF SPITZ12 GYRE_PISCES SAS ORCA2_ICE_OBS ICE_AGRIF OVERFLOW LOCK_EXCHANGE VORTEX ISOMIP"} 
    7575# ------------------------------------------------------------------------------------------ 
     76# 
     77# reporting   
     78# Set number of passes (default only 1). For a second pass, set '0 1' 
     79RPT_PASSES=${SETTE_RPT_NPASSES:-'0'}  
  • utils/CI/sette_ticket2304/sette_rpt.sh

    r12295 r12431  
    427427  fi 
    428428# 
    429 # Directory to run the tests 
    430   CONFIG_DIR0=${MAIN_DIR}/cfgs 
    431   TOOLS_DIR=${MAIN_DIR}/tools 
    432   NPROC=32 
    433   SAS_RESTART_DIR=${CONFIG_DIR0}/ORCA2_SAS_ICE_ST 
    434429# 
    435430# Show current revision tag and branch name 
     
    442437[ `${SVN_CMD} status -q ${MAIN_DIR}/{cfg,tests,src} | wc -l` -ge 1 ] && lastchange=${lastchange}+ 
    443438 
    444 # overwrite revision is argument 1 present 
    445 [[ $# -eq 1 ]] && lastchange=$1 
     439# overwrite revision or compiler 
     440  if [ $# -gt 0 ]; then 
     441    while getopts r:c:h option; do  
     442       case $option in 
     443          c) mach=$OPTARG;; 
     444          r) lastchange=$OPTARG;; 
     445          h | *) echo '' 
     446                 echo 'sette_rpt.sh : '  
     447                 echo '     display result for the latest change' 
     448                 echo ' -c COMPILER_name :' 
     449                 echo '     display result for the specified compiler' 
     450                 echo ' -r REVISION_number :' 
     451                 echo '     display sette results for the specified revision (set old for the latest revision available for each config)' 
     452                 echo '' 
     453                 exit 42;; 
     454       esac 
     455    done 
     456    shift $((OPTIND - 1)) 
     457fi 
    446458 
    447459echo "" 
     
    456468# The script also needs the date or revision tag. Currently this is taken from the latest sub-directory found in each directory 
    457469 
    458 for pass in  0 1  
     470for pass in  $RPT_PASSES  
    459471do 
    460472# 
Note: See TracChangeset for help on using the changeset viewer.