Changeset 495 for trunk/SRC/Tests
- Timestamp:
- 04/17/14 10:49:43 (10 years ago)
- Location:
- trunk/SRC/Tests
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Tests/TestsOld/tst_initorca05_index_stride_old.pro
r325 r495 13 13 ; $Id$ 14 14 ; 15 ; @todo 15 ; @todo 16 16 ; find the right way to avoid 17 17 ; IDLDOC: unknown tag "file_comments" in file tst_initorca05_index_stride_old.pro -
trunk/SRC/Tests/TestsOld/tst_plt_old.pro
r327 r495 97 97 cnt = cnt + 1 98 98 99 100 99 return 101 100 end -
trunk/SRC/Tests/makeold.sh
r430 r495 3 3 for i in tst_*.pro 4 4 do 5 new=$( basename $i .pro )6 sed -e "/@update/d" \5 new=$( basename $i .pro ) 6 sed -e "/@update/d" \ 7 7 -e "s/@cm_4mesh/@common/g" \ 8 8 -e "s/@cm_4cal/@common/g" \ … … 31 31 for i in $( egrep -il "^ *(pro|function) .*," *.pro ) 32 32 do 33 a=$( egrep -ih "^ *(pro|function) .*," $i )34 b=${a%%,*}_old,${a#*,}35 sed -e "s/${a}/${b}/" $i > tmp_$$36 mv tmp_$$ $i33 a=$( egrep -ih "^ *(pro|function) .*," $i ) 34 b=${a%%,*}_old,${a#*,} 35 sed -e "s/${a}/${b}/" $i > tmp_$$ 36 mv tmp_$$ $i 37 37 done -
trunk/SRC/Tests/tst_plt.pro
r371 r495 8 8 ; 9 9 ; @examples 10 ; 10 ; 11 11 ; To run test with Levitus temperature on a regular 1x1 grid : 12 12 ; IDL> @tst_initlev … … 103 103 cnt = cnt + 1 104 104 105 106 105 return 107 106 end -
trunk/SRC/Tests/tst_pltt.pro
r371 r495 8 8 ; 9 9 ; @examples 10 ; 10 ; 11 11 ; To run test with Levitus temperature on a regular 1x1 grid : 12 12 ; IDL> @tst_initlev -
trunk/SRC/Tests/tst_pltt_zero.sh
r484 r495 13 13 # ======== 14 14 # 15 # ::16 # 17 # tst_pltt_zero.sh --save_image y|n15 # .. code-block:: bash 16 # 17 # tst_pltt_zero.sh --save_image saveimage 18 18 # 19 19 # DESCRIPTION … … 22 22 # Run :ref:`tst_pltt_zero.pro` 23 23 # 24 # We suppose here that all inputs data are already available localy. 25 # 26 # .. option:: --save_image y|n 24 # We suppose here that all inputs data are already available locally. 25 # 26 # .. option:: --save_image <save_image> 27 # 28 # y or n 27 29 # 28 30 # Some IDL programs are launched here using ${IDL_CMD} command … … 41 43 # digraph tst_pltt_zero { 42 44 # 43 # log [shape=ellipse,fontname=Courier,label="${PROJECT_LOG}/tst_pltt_zero.log{YYYYMMDDTHHMMSSZ}"]; 45 # log [shape=ellipse, 46 # fontname=Courier, 47 # label="${PROJECT_LOG}/tst_pltt_zero.log{YYYYMMDDTHHMMSSZ}"]; 44 48 # 45 49 # tst_pltt_zero_sh [shape=box, … … 62 66 # ======== 63 67 # 64 # To test in foreground:: 65 # 66 # tst_pltt_zero.sh --save_image y 67 # 68 # To test in background:: 69 # 70 # tst_pltt_zero.sh --save_image y & 71 # 72 # And look at log file with:: 73 # 74 # $ tlogd.sh tst_pltt_zero 68 # To test in foreground: 69 # 70 # .. code-block:: bash 71 # 72 # tst_pltt_zero.sh --save_image y 73 # 74 # To test in background: 75 # 76 # .. code-block:: bash 77 # 78 # tst_pltt_zero.sh --save_image y & 79 # 80 # And look at log file with: 81 # 82 # .. code-block:: bash 83 # 84 # tlogd.sh tst_pltt_zero 75 85 # 76 86 # and of course on image files in imagedir define in ${IDL_STARTUP} … … 102 112 # - fplod 20130802T101039Z cratos.locean-ipsl.upmc.fr (Linux) 103 113 # 104 # * creation to check difference between behaviour of tst_pltt_zero.pro 114 # * creation to check difference between behaviour of tst_pltt_zero.pro 105 115 # in an IDL session, in a shell session foreground and background 106 116 # … … 108 118 system=$(uname) 109 119 case "${system}" in 110 AIX|IRIX64)111 echo "${command} : ${LINENO} : www : no specific posix checking"112 date_cmd=date113 ;;114 Darwin)115 set -o posix116 date_cmd=gdate117 ;;118 Linux)119 set -o posix120 date_cmd=date121 ;;120 AIX|IRIX64) 121 echo "${command} : ${LINENO} : www : no specific posix checking" 122 date_cmd=date 123 ;; 124 Darwin) 125 set -o posix 126 date_cmd=gdate 127 ;; 128 Linux) 129 set -o posix 130 date_cmd=date 131 ;; 122 132 *) 123 133 set -o posix … … 145 155 if [ ${#} -lt ${minargcount} ] 146 156 then 147 echo "${command} : ${LINENO} : eee : not enoughtarguments"148 echo "${usage}"149 exit 1157 echo "${command} : ${LINENO} : eee : not enough arguments" 158 echo "${usage}" 159 exit 1 150 160 fi 151 161 unset minargcount … … 153 163 while [ ${#} -gt 0 ] 154 164 do 155 case ${1} in156 --save_image)157 save_image=${2}158 shift159 ;;160 -h)161 echo "${usage}"162 exit 0163 ;;164 *)165 # other choice166 echo "${command} : ${LINENO} : eee : unknown option ${1}"167 echo "${usage}"168 exit 1169 ;;170 esac171 # next flag172 shift165 case ${1} in 166 --save_image) 167 save_image=${2} 168 shift 169 ;; 170 -h) 171 echo "${usage}" 172 exit 0 173 ;; 174 *) 175 # other choice 176 echo "${command} : ${LINENO} : eee : unknown option ${1}" 177 echo "${usage}" 178 exit 1 179 ;; 180 esac 181 # next flag 182 shift 173 183 done 174 184 unset usage … … 182 192 if [ ${status} -ne 0 ] 183 193 then 184 echo "${command} : ${LINENO} : eee : tool ${tool} not found"185 echo "${command} : ${LINENO} : eee : check project_profile.sh sequence"186 exit 1194 echo "${command} : ${LINENO} : eee : tool ${tool} not found" 195 echo "${command} : ${LINENO} : eee : check project_profile.sh sequence" 196 exit 1 187 197 fi 188 198 unset status … … 192 202 if [ ! -w ${PROJECT_LOG} ] 193 203 then 194 echo "${command} : ${LINENO} : eee : ${PROJECT_LOG} not writable"195 exit 1204 echo "${command} : ${LINENO} : eee : ${PROJECT_LOG} not writable" 205 exit 1 196 206 fi 197 207 # … … 215 225 if [ "${save_image}" == "y" ] 216 226 then 217 image_arg=", IMAGE=\"${command}\""227 image_arg=", IMAGE=\"${command}\"" 218 228 else 219 image_arg=""229 image_arg="" 220 230 fi 221 231 # build IDL script … … 251 261 if [ ${status} -ne 0 ] 252 262 then 253 echo "${command} : ${LINENO} : eee: ${IDL_CMD} failed : ${status}" >> ${log} 2>&1254 cat ${MY_IDL}/tst_pltt_zero_${$}.pro >> ${log} 2>&1255 exit 1263 echo "${command} : ${LINENO} : eee: ${IDL_CMD} failed : ${status}" >> ${log} 2>&1 264 cat ${MY_IDL}/tst_pltt_zero_${$}.pro >> ${log} 2>&1 265 exit 1 256 266 fi 257 267 unset status -
trunk/SRC/Tests/tst_pltz.pro
r371 r495 6 6 ; 7 7 ; @keyword IMAGE 8 ;9 8 ; 10 9 ; @examples
Note: See TracChangeset
for help on using the changeset viewer.