- Timestamp:
- 2017-11-30T16:01:29+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2015/dev_r5092_CNRS18_TRUST/NEMOGCM/TRUST/trusting.sh
- Property eol-style deleted
- Property svn:keywords deleted
r8843 r8859 9 9 10 10 TRUST_MAIN_DIR=$PWD 11 TRUST_FLAG_HELP='false' 12 TRUST_FLAG_DEBUG='false'; TRUST_FLAG_DEV='false' ; TRUST_FLAG_PROD='false' 11 13 12 TRUST_FLAG_DEBUG='false' ; TRUST_FLAG_HELP='false' ; TRUST_FLAG_PROD='false' 13 14 # Revision number of the tool 14 15 rev=$( svn info | awk '/Last Changed Rev/ {print $NF}' ) 15 16 16 17 17 18 ##-------------------------------------------------------------------------------- 18 ## Get arguments from command line19 ## Get short or long arguments from command line 19 20 ##-------------------------------------------------------------------------------- 20 21 … … 45 46 cat ./inc/trusting_help.txt 46 47 48 ## Color this section to part with help 49 printf "\033[0;33m" 50 47 51 if [ ${TRUST_FLAG_HELP} == 'false' ]; then 48 printf " \n\n\033[0;33m"49 printf "At least one configuration (arch or user) file is missing or misspelled:"50 printf "\t'%s'.cfg\t'%s'.cfg" ${TRUST_MAIN_USER} ${TRUST_MAIN_HPCC}51 printf "\033[0m"52 printf " \ 53 \nAt least 1 cfg file (arch or user) is missing or misspelled: \ 54 '%s.cfg' or '%s.cfg'\n" \ 55 ${TRUST_MAIN_USER} ${TRUST_MAIN_HPCC} 52 56 fi 53 57 54 printf "\n\nContent of 'config' folder:" 55 find config -name *.cfg | cut -d/ -f2 \ 56 | xargs -n 4 printf "%-25s\t%-25s\t%-25s\n" 58 echo -e "\nContent of './cfg' folder:" 59 find ./cfg -name *.cfg | cut -d/ -f3 \ 60 | xargs -n 3 printf "%-20s\t%-20s\t%-20s\n" 61 printf "\033[0m\n" 62 57 63 exit 1 58 64 else … … 95 101 ##------------------ 96 102 97 print_step 'Timestamped testing directory'103 step 'Testing directory' 98 104 init 99 105 … … 102 108 ##------------------- 103 109 104 print_step 'SVN action on NEMO directories' 105 printf "${TRUST_SVN_ACTION} on ${TRUST_SVN_NEMOGCM}:\n\n" 110 step 'Local working copy' 111 112 echo "${TRUST_SVN_ACTION} on ${TRUST_SVN_NEMOGCM}:" 106 113 get_nemo_rev 107 114 … … 110 117 ##------------ 111 118 112 print_step 'Get testing environment'119 step 'Environment' 113 120 get_soft_rel 114 121 … … 117 124 ##--------------- 118 125 119 print_step 'Compile XIOS' 126 step 'Compilation(s)' 127 128 printf "XIOS? " 120 129 compile_xios 121 130 122 print _step "Compile ${TRUST_CFG_NEW} cfg from ${TRUST_CFG_REF}"131 printf "\nNEMO ${TRUST_CFG_NEW} cfg. from ${TRUST_CFG_REF}? " 123 132 compile_nemo 124 133 … … 127 136 ##------- 128 137 129 print_step 'Set job (copying or extracting inputs)' 138 step 'Inputs' 139 130 140 get_inputs 131 141 132 print _step 'Compare inputs'142 printf "\nCompare with benchmark? " 133 143 diff_inputs 134 144 … … 137 147 ##---- 138 148 139 print_step 'Submit job' 149 step 'Job' 150 151 printf "Submit? " 140 152 job_submit 141 153 142 print_step 'Pending job'154 echo 'Pending...' 143 155 job_pending 144 156 145 print_step 'Job finished'157 echo 'Finished!' 146 158 147 print _step 'Test job state'159 printf "State? " 148 160 job_state 149 161 150 print _step 'Get job performances'162 printf "Perfs?" 151 163 job_perfs 152 164 153 165 154 ## Output s155 ##-------- 166 ## Output(s) 167 ##---------- 156 168 157 print_step 'Compare outputs' 169 step 'Ouput(s)' 170 171 echo 'Compare with benchmark:' 172 173 printf "Plain text files? " 158 174 diff_results 159 175 160 print _step 'Compare restarts'176 printf "Restart files? " 161 177 diff_restarts 162 178
Note: See TracChangeset
for help on using the changeset viewer.