Changeset 11153 for NEMO/branches
- Timestamp:
- 2019-06-20T15:40:58+02:00 (5 years ago)
- Location:
- NEMO/branches/2019/fix_sette_ticket2239
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2019/fix_sette_ticket2239/README.rst
r11140 r11153 15 15 ======================= 16 16 * ``sette.sh`` is a simple wrapper that runs tests on the reference configurations, test cases and generates the report at the end. 17 * ``sette.sh`` is able to take a list of configurations in argument (sette.sh -t "CFG1 CFG2 CFG3").17 * ``sette.sh`` is able n option, to take a list of configurations in argument (sette.sh -t "CFG1 CFG2 CFG3"). 18 18 - The list of available configurations is available in running ./sette_list_avail_cfg.sh. 19 19 - The default for sette is to run all of the reference and test configurations. … … 22 22 SECONDARY SCRIPT 23 23 ================ 24 * ``sette_reference-configuration.sh`` runs sette tests on the reference configurations 25 * ``sette_test-cases.sh`` runs sette tests on test cases 26 * ``sette_list_avail_rev.sh`` generates a listing on all the revisions available in the validation directory for each configuration. 24 * ``sette_reference-configuration.sh`` runs sette tests on the reference configurations. 25 * ``sette_test-cases.sh`` runs sette tests on test cases. 26 * ``sette_list_avail_rev.sh`` generates a listing on all the revisions available in the validation directory for each configuration. 27 27 * ``sette_list_avail_cfg.sh`` generates a listing of all the available configurations. 28 * ``sette_rpt.sh`` generates the report 28 * ``sette_rpt.sh`` generates the report. 29 29 30 30 USER SETUP (recommended) … … 86 86 - if 'old' is given as argument the former behavior is applied (the latest revision is check whatever the current revision 87 87 - it is possible to retreive all the available revision test using sette_list_avail_rev.sh 88 - XXXXX+ means sette results for revision XXXXX contain local modification in src/cfgs/test 88 89 - it is NOT possible to run sette_rpt.sh for a single configuration. 89 90 * ``sette_list_avail_rev.sh`` : generate a listing on all the revisions available in the validation directory for each configuration. 90 91 - no argument needed 92 - XXXXX+ means sette results for revision XXXXX contain local modification in src/cfgs/test 91 93 * ``sette_list_avail_cfg.sh`` : generate a listing of all the available configurations. 92 94 - no argument needed -
NEMO/branches/2019/fix_sette_ticket2239/all_functions.sh
r10755 r11153 105 105 echo "value of revision number of NEMOGCM: ${REVISION_NB}" 106 106 fi 107 [ `svn status -q ${SETTE_DIR}/../{cfg,tests,src} | wc -l` -ge 1 ] && REVISION_NB=${REVISION_NB}+ 107 108 NEMO_VALID=${NEMO_VALIDATION_DIR}/W${NEW_CONF}/${CMP_NAM}/${REVISION_NB}/${TEST_NAME} 108 109 } -
NEMO/branches/2019/fix_sette_ticket2239/sette.sh
r10750 r11153 11 11 12 12 if [ $# -gt 0 ]; then 13 while getopts t: option; do13 while getopts :ht: option; do 14 14 case $option in 15 t) export SETTE_TEST_CONFIGS=$OPTARG ;; 16 h) echo 'sette.sh allow no arguments (all configuration will be tested or -t "CFG1_to_test CFG2_to_test ..."'; exit 42 ;; 15 t) export SETTE_TEST_CONFIGS=$OPTARG 16 echo "" 17 echo "Configuration $SETTE_TEST_CONFIGS will be tested if they are available" 18 echo "" ;; 19 h | *) echo 'sette.sh allow no arguments (all configuration will be tested or -t "CFG1_to_test CFG2_to_test ..."'; exit 42 ;; 17 20 esac 18 21 done -
NEMO/branches/2019/fix_sette_ticket2239/sette_list_avail_rev.sh
r10769 r11153 3 3 # 4 4 lst_rev () { 5 CFGLST=`ls $1 | sort -u -r ` 5 # get the list of revision available for a configuration 6 if [ ! -d $1 ] ; then 7 CFGLST=-9999 8 else 9 CFGLST=`ls $1 | sort -u -r ` 10 fi 11 # config name 6 12 CONFIG=$2 13 # list of all revision available 7 14 ALLLST=${@:3} 15 # number of revision total and for CONFIG 8 16 nrevall=`echo $ALLLST | wc -w` 9 17 nrevcfg=`echo $CFGLST | wc -w` 18 # display 10 19 echo "" 11 20 printf "%-27s : " $CONFIG … … 14 23 while [[ $irev -le $nrevall ]] ; do 15 24 rev=`echo $ALLLST | cut -d\ -f ${irev}` 16 #while [[ $irevcfg -le $nrevcfg ]] ; do 17 cfgrev=`echo $CFGLST | cut -d\ -f ${irevcfg}` 18 if [[ $cfgrev -eq $rev ]] ; then 19 printf "%-5s " $rev 20 irevcfg=$((irevcfg+1)) 21 else 22 printf "%-5s " "*****" 23 fi 24 #done 25 cfgrev=`echo $CFGLST | cut -d\ -f ${irevcfg}` 26 if [ $cfgrev == $rev ] ; then 27 printf "%-6s " $rev 28 irevcfg=$((irevcfg+1)) 29 else 30 printf "%-5s " "***** " 31 fi 25 32 irev=$((irev+1)) 26 33 done … … 36 43 # list of all revision available 37 44 DIRLST=`find ${NEMO_VALID} -maxdepth 3 -mindepth 3 -type d | sed -e 's/.*\/W.*\///' | sort -u -r` 38 # DIRLST='';for dir in `find ${NEMO_VALID} -maxdepth 3 -mindepth 3 -iname [0-9][0-9][0-9][0-9][0-9]` ; do REV=`basename $dir`; DIRLST="$DIRLST $REV"; done39 # DIRLST=`echo $DIRLST | grep -o -E '\w+' | sort -u -r `40 45 41 # start checking46 # display header 42 47 echo "" 43 48 echo " Compiler used is : $COMPILER" … … 46 51 for dir in `echo $DIRLST`; do printf "%5s " $dir ; done 47 52 printf "\n" 48 # printf "%27s %${nrev}s" "" $DIRLST 53 54 # start checking configuration revision 49 55 echo "" 50 56 echo " !---- check revision available for each configuration ----! " -
NEMO/branches/2019/fix_sette_ticket2239/sette_rpt.sh
r11140 r11153 451 451 branchname=`LC_MESSAGES=${LANG} ${SVN_CMD} info ${MAIN_DIR} | grep ^URL | awk -F ipsl/forge/projets/nemo/svn/ '{print $NF}'` 452 452 echo "Current code is : $branchname @ r$revision ( last change @ r$lastchange )" 453 [ `svn status -q ${MAIN_DIR}/{cfg,tests,src} | wc -l` -ge 1 ] && lastchange=${lastchange}+ 453 454 454 455 # overwrite revision is argument 1 present
Note: See TracChangeset
for help on using the changeset viewer.