Changeset 931


Ignore:
Timestamp:
08/21/13 13:02:20 (11 years ago)
Author:
sdipsl
Message:

Bugfix with IGCM_sys_Get|GetBuffer? instrumentation
Avoid collision with testing functions

Location:
trunk/libIGCM
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_card/IGCM_card_Test.ksh

    r929 r931  
    1818 
    1919#================================================= 
     20cd /tmp 
     21 
    2022libIGCM=`dirname $0`/.. 
    2123typeset DEBUG_sys=false 
     
    6870# function IGCM_card_WriteOption 
    6971 
    70 cp ${libIGCM}/libIGCM_card/TestFile.card /tmp/NewTestFile.card 
    71 IGCM_card_WriteOption /tmp/NewTestFile.card Messages Option2 '"Hello Mercure"' 
     72cp ${libIGCM}/libIGCM_card/TestFile.card /tmp/NewTestFile.$$.card 
     73IGCM_card_WriteOption /tmp/NewTestFile.$$.card Messages Option2 '"Hello Mercure"' 
    7274 
    73 IGCM_card_WriteOption /tmp/NewTestFile.card Messages ListVal1 '( 1, 2, 3 )' 
     75IGCM_card_WriteOption /tmp/NewTestFile.$$.card Messages ListVal1 '( 1, 2, 3 )' 
    7476listname="(Sebastien, Martial, Patrick)" 
    75 IGCM_card_WriteOption /tmp/NewTestFile.card Messages ListVal2 "${listname}" 
     77IGCM_card_WriteOption /tmp/NewTestFile.$$.card Messages ListVal2 "${listname}" 
    7678 
    7779set -A tableau one, two, three, four 
    7880echo ${tableau[*]} 
    79 IGCM_card_WriteOption /tmp/NewTestFile.card Messages ListVal3 "( ${tableau[*]} )" 
     81IGCM_card_WriteOption /tmp/NewTestFile.$$.card Messages ListVal3 "( ${tableau[*]} )" 
    8082 
    81 IGCM_card_WriteOption /tmp/NewTestFile.card ColorValues Red 888 
     83IGCM_card_WriteOption /tmp/NewTestFile.$$.card ColorValues Red 888 
    8284 
    83 diff ${libIGCM}/libIGCM_card/TestFile.card /tmp/NewTestFile.card 
    84 rm -f /tmp/NewTestFile.card /tmp/NewTestFile.card.bak 
     85diff ${libIGCM}/libIGCM_card/TestFile.card /tmp/NewTestFile.$$.card 
     86rm -f /tmp/NewTestFile.$$.card /tmp/NewTestFile.$$.card.bak 
  • trunk/libIGCM/libIGCM_card/libIGCM_card.ksh

    r926 r931  
    311311 
    312312#--------------------- 
    313     ${libIGCM}/libIGCM_card/IGCM_card_Test.ksh > /tmp/IGCM_card_Test.ref.failed 2>&1 
     313    ${libIGCM}/libIGCM_card/IGCM_card_Test.ksh > /tmp/IGCM_card_Test.$$.ref.failed 2>&1 
    314314    sleep 2 
    315315 
    316     if diff /tmp/IGCM_card_Test.ref.failed ${libIGCM}/libIGCM_card/IGCM_card_Test.ref > /dev/null 2>&1 ; then  
     316    if diff /tmp/IGCM_card_Test.$$.ref.failed ${libIGCM}/libIGCM_card/IGCM_card_Test.ref > /dev/null 2>&1 ; then  
    317317      echo "Check libIGCM_card ...............................................[ OK ]" 
    318       rm -f /tmp/IGCM_card_Test.ref.failed 
     318      rm -f /tmp/IGCM_card_Test.$$.ref.failed 
    319319    else  
    320320      echo "Check libIGCM_card ...........................................[ FAILED ]" 
     
    324324      echo "           diff IGCM_card_Test.ref.failed ${libIGCM}/libIGCM_card/IGCM_card_Test.ref" 
    325325      echo "           Report errors to the author: Patrick.Brockmann@cea.fr" 
    326       cat /tmp/IGCM_card_Test.ref.failed 
     326      cat /tmp/IGCM_card_Test.$$.ref.failed 
    327327      IGCM_debug_Exit "IGCM_card_Check" 
    328328    fi 
  • trunk/libIGCM/libIGCM_date/IGCM_date_Test.ksh

    r929 r931  
    1818 
    1919#================================================= 
     20cd /tmp 
     21 
    2022libIGCM=`dirname $0`/.. 
    2123typeset TaskType=checking 
  • trunk/libIGCM/libIGCM_date/libIGCM_date.ksh

    r926 r931  
    10361036 
    10371037#--------------------- 
    1038   ${libIGCM}/libIGCM_date/IGCM_date_Test.ksh > /tmp/IGCM_date_Test.ref.failed 2>&1 
    1039  
    1040   if diff /tmp/IGCM_date_Test.ref.failed ${libIGCM}/libIGCM_date/IGCM_date_Test${dY}.ref > /dev/null 2>&1 ; then 
     1038  ${libIGCM}/libIGCM_date/IGCM_date_Test.ksh > /tmp/IGCM_date_Test.$$.ref.failed 2>&1 
     1039 
     1040  if diff /tmp/IGCM_date_Test.$$.ref.failed ${libIGCM}/libIGCM_date/IGCM_date_Test${dY}.ref > /dev/null 2>&1 ; then 
    10411041    echo "Check libIGCM_date ...............................................[ OK ]" 
    1042     rm -f /tmp/IGCM_date_Test.ref.failed 
     1042    rm -f /tmp/IGCM_date_Test.$$.ref.failed 
    10431043  else 
    10441044    echo "Check libIGCM_date ...........................................[ FAILED ]" 
     
    10481048    echo "           diff IGCM_date_Test.ref.failed ${libIGCM}/libIGCM_date/IGCM_date_Test${dY}.ref" 
    10491049    echo "           Report errors to the author: Sebastien.Denvil@ipsl.jussieu.fr" 
    1050     cat /tmp/IGCM_date_Test.ref.failed 
     1050    cat /tmp/IGCM_date_Test.$$.ref.failed 
    10511051    IGCM_debug_Exit "IGCM_date_Check" 
    10521052  fi 
  • trunk/libIGCM/libIGCM_debug/IGCM_debug_Test.ksh

    r929 r931  
    1818 
    1919#================================================= 
     20cd /tmp 
     21 
    2022libIGCM=`dirname $0`/.. 
    2123typeset TaskType=checking 
  • trunk/libIGCM/libIGCM_debug/libIGCM_debug.ksh

    r926 r931  
    335335      elif ( [ ${#arguments[*]} -eq 3 ] && [ ${arguments[0]} = '/l' ] ) ; then 
    336336        # Keep the array name hosting the all list 
    337         fileList=${arguments[0]} 
     337        fileList=${arguments[1]} 
    338338        # just need the first file to get the directory 
    339         eval source=\${${arguments[0]}[0]} 
    340         dest=${arguments[1]} 
     339        eval source=\${${arguments[1]}[1]} 
     340        dest=${arguments[2]} 
    341341        # Size of file whose name are stored in an array 
    342342        entitySize=$( IGCM_debug_sizeOfTabContent fileList[*] ${dest} ) 
     
    694694 
    695695  #--------------------- 
    696   ${libIGCM}/libIGCM_debug/IGCM_debug_Test.ksh > /tmp/IGCM_debug_Test.ref.failed 2>&1 
     696  ${libIGCM}/libIGCM_debug/IGCM_debug_Test.ksh > /tmp/IGCM_debug_Test.$$.ref.failed 2>&1 
    697697  sleep 2 
    698698 
    699699  # Remove date stamp. 
    700   sed -e "s:[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] [0-9][0-9]\:[0-9][0-9]\:[0-9][0-9] ::g" /tmp/IGCM_debug_Test.ref.failed > /tmp/IGCM_debug_Test.ref.failed.nodate 
    701   mv /tmp/IGCM_debug_Test.ref.failed.nodate /tmp/IGCM_debug_Test.ref.failed 
    702  
    703   if diff /tmp/IGCM_debug_Test.ref.failed ${libIGCM}/libIGCM_debug/IGCM_debug_Test.ref > /dev/null 2>&1 ; then 
     700  sed -e "s:[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] [0-9][0-9]\:[0-9][0-9]\:[0-9][0-9] ::g" /tmp/IGCM_debug_Test.$$.ref.failed > /tmp/IGCM_debug_Test.$$.ref.failed.nodate 
     701  mv /tmp/IGCM_debug_Test.$$.ref.failed.nodate /tmp/IGCM_debug_Test.$$.ref.failed 
     702 
     703  if diff /tmp/IGCM_debug_Test.$$.ref.failed ${libIGCM}/libIGCM_debug/IGCM_debug_Test.ref > /dev/null 2>&1 ; then 
    704704    echo "Check libIGCM_debug ..............................................[ OK ]" 
    705     rm -f /tmp/IGCM_debug_Test.ref.failed 
     705    rm -f /tmp/IGCM_debug_Test.$$.ref.failed 
    706706  else 
    707707    echo "Check libIGCM_debug ..........................................[ FAILED ]" 
     
    711711    echo "           diff IGCM_debug_Test.ref.failed ${libIGCM}/libIGCM_debug/IGCM_debug_Test.ref" 
    712712    echo "           Report errors to the author: Patrick.Brockmann@cea.fr" 
    713     cat /tmp/IGCM_debug_Test.ref.failed 
     713    cat /tmp/IGCM_debug_Test.$$.ref.failed 
    714714    exit 4 
    715715  fi 
Note: See TracChangeset for help on using the changeset viewer.