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/libIGCM_card
Files:
2 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 
Note: See TracChangeset for help on using the changeset viewer.