Changeset 495 for trunk/SRC/Tests


Ignore:
Timestamp:
04/17/14 10:49:43 (10 years ago)
Author:
pinsard
Message:

fix thanks to coding rules; typo; dupe empty lines; trailing blanks

Location:
trunk/SRC/Tests
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Tests/TestsOld/tst_initorca05_index_stride_old.pro

    r325 r495  
    1313; $Id$ 
    1414; 
    15 ; @todo  
     15; @todo 
    1616; find the right way to avoid 
    1717; IDLDOC: unknown tag "file_comments" in file tst_initorca05_index_stride_old.pro 
  • trunk/SRC/Tests/TestsOld/tst_plt_old.pro

    r327 r495  
    9797  cnt = cnt + 1 
    9898 
    99  
    10099  return 
    101100end 
  • trunk/SRC/Tests/makeold.sh

    r430 r495  
    33for i in tst_*.pro 
    44do 
    5    new=$( basename $i .pro ) 
    6    sed -e "/@update/d" \ 
     5    new=$( basename $i .pro ) 
     6    sed -e "/@update/d" \ 
    77      -e "s/@cm_4mesh/@common/g" \ 
    88      -e "s/@cm_4cal/@common/g" \ 
     
    3131for i in $( egrep -il "^ *(pro|function) .*," *.pro ) 
    3232do 
    33    a=$( egrep -ih "^ *(pro|function) .*," $i ) 
    34    b=${a%%,*}_old,${a#*,} 
    35    sed -e "s/${a}/${b}/" $i > tmp_$$ 
    36    mv tmp_$$ $i 
     33    a=$( egrep -ih "^ *(pro|function) .*," $i ) 
     34    b=${a%%,*}_old,${a#*,} 
     35    sed -e "s/${a}/${b}/" $i > tmp_$$ 
     36    mv tmp_$$ $i 
    3737done 
  • trunk/SRC/Tests/tst_plt.pro

    r371 r495  
    88; 
    99; @examples 
    10 ;   
     10; 
    1111; To run test with Levitus temperature on a regular 1x1 grid : 
    1212;   IDL> @tst_initlev 
     
    103103  cnt = cnt + 1 
    104104 
    105  
    106105  return 
    107106end 
  • trunk/SRC/Tests/tst_pltt.pro

    r371 r495  
    88; 
    99; @examples 
    10 ;   
     10; 
    1111; To run test with Levitus temperature on a regular 1x1 grid : 
    1212;   IDL> @tst_initlev 
  • trunk/SRC/Tests/tst_pltt_zero.sh

    r484 r495  
    1313# ======== 
    1414# 
    15 # :: 
    16 # 
    17 #   tst_pltt_zero.sh --save_image y|n 
     15# .. code-block:: bash 
     16# 
     17#    tst_pltt_zero.sh --save_image saveimage 
    1818# 
    1919# DESCRIPTION 
     
    2222# Run :ref:`tst_pltt_zero.pro` 
    2323# 
    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 
    2729# 
    2830# Some IDL programs are launched here using ${IDL_CMD} command 
     
    4143#        digraph tst_pltt_zero { 
    4244# 
    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}"]; 
    4448# 
    4549#           tst_pltt_zero_sh [shape=box, 
     
    6266# ======== 
    6367# 
    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 
    7585# 
    7686# and of course on image files in imagedir define in ${IDL_STARTUP} 
     
    102112# - fplod 20130802T101039Z cratos.locean-ipsl.upmc.fr (Linux) 
    103113# 
    104 #   * creation to check difference between behaviour of tst_pltt_zero.pro  
     114#   * creation to check difference between behaviour of tst_pltt_zero.pro 
    105115#     in an IDL session, in a shell session foreground and background 
    106116# 
     
    108118system=$(uname) 
    109119case "${system}" in 
    110    AIX|IRIX64) 
    111      echo "${command} : ${LINENO} : www : no specific posix checking" 
    112      date_cmd=date 
    113    ;; 
    114    Darwin) 
    115      set -o posix 
    116      date_cmd=gdate 
    117    ;; 
    118    Linux) 
    119      set -o posix 
    120      date_cmd=date 
    121    ;; 
     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    ;; 
    122132   *) 
    123133    set -o posix 
     
    145155if [ ${#} -lt ${minargcount} ] 
    146156then 
    147    echo "${command} : ${LINENO} : eee : not enought arguments" 
    148    echo "${usage}" 
    149    exit 1 
     157    echo "${command} : ${LINENO} : eee : not enough arguments" 
     158    echo "${usage}" 
     159    exit 1 
    150160fi 
    151161unset minargcount 
     
    153163while [ ${#} -gt 0 ] 
    154164do 
    155    case ${1} in 
    156      --save_image) 
    157         save_image=${2} 
    158         shift 
    159      ;; 
    160      -h) 
    161         echo "${usage}" 
    162         exit 0 
    163      ;; 
    164      *) 
    165         # other choice 
    166         echo "${command} : ${LINENO} : eee : unknown option ${1}" 
    167         echo "${usage}" 
    168         exit 1 
    169      ;; 
    170    esac 
    171    # next flag 
    172    shift 
     165    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 
    173183done 
    174184unset usage 
     
    182192if [ ${status} -ne 0 ] 
    183193then 
    184    echo "${command} : ${LINENO} : eee : tool ${tool} not found" 
    185    echo "${command} : ${LINENO} : eee : check project_profile.sh sequence" 
    186    exit 1 
     194    echo "${command} : ${LINENO} : eee : tool ${tool} not found" 
     195    echo "${command} : ${LINENO} : eee : check project_profile.sh sequence" 
     196    exit 1 
    187197fi 
    188198unset status 
     
    192202if [ ! -w ${PROJECT_LOG} ] 
    193203then 
    194    echo "${command} : ${LINENO} : eee : ${PROJECT_LOG} not writable" 
    195    exit 1 
     204    echo "${command} : ${LINENO} : eee : ${PROJECT_LOG} not writable" 
     205    exit 1 
    196206fi 
    197207# 
     
    215225if [ "${save_image}" == "y" ] 
    216226then 
    217   image_arg=", IMAGE=\"${command}\"" 
     227    image_arg=", IMAGE=\"${command}\"" 
    218228else 
    219   image_arg="" 
     229    image_arg="" 
    220230fi 
    221231# build IDL script 
     
    251261if [ ${status} -ne 0 ] 
    252262then 
    253    echo "${command} : ${LINENO} : eee: ${IDL_CMD} failed : ${status}" >> ${log} 2>&1 
    254    cat ${MY_IDL}/tst_pltt_zero_${$}.pro >> ${log} 2>&1 
    255    exit 1 
     263    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 
    256266fi 
    257267unset status 
  • trunk/SRC/Tests/tst_pltz.pro

    r371 r495  
    66; 
    77; @keyword IMAGE 
    8 ; 
    98; 
    109; @examples 
Note: See TracChangeset for help on using the changeset viewer.