Ignore:
Timestamp:
10/23/14 11:46:15 (10 years ago)
Author:
sdipsl
Message:

Add a test on /tmp for those 3 check functions

File:
1 edited

Legend:

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

    r1077 r1109  
    294294function IGCM_card_Check 
    295295{ 
    296     IGCM_debug_PushStack "IGCM_card_Check" 
    297 #--------------------- 
     296    #--------------------- 
    298297    if [ ! -n "${libIGCM}" ] ; then 
    299298      echo "Check libIGCM_card ...........................................[ FAILED ]" 
     
    302301    fi 
    303302 
    304 #--------------------- 
     303    #--------------------- 
    305304    whence -v gawk > /dev/null 2>&1 
    306305    if [ ! $? -eq 0 ] ; then 
     
    310309    fi 
    311310 
    312 #--------------------- 
     311    #--------------------- 
    313312    ${libIGCM}/libIGCM_card/IGCM_card_Test.ksh > /tmp/IGCM_card_Test.$$.ref.failed 2>&1 
    314     sleep 2 
     313    status=$? 
     314 
     315    if [ ${status} -gt 0 ] ; then 
     316      IGCM_debug_Print 2 "IGCM_card_Test.ksh failed for some reason" 
     317      IGCM_debug_Print 2 "Is /tmp full?" 
     318      df -h 
     319      IGCM_debug_Print 2 "Where /tmp is pointing to?" 
     320      ls -l / 
     321    fi 
    315322 
    316323    if diff /tmp/IGCM_card_Test.$$.ref.failed ${libIGCM}/libIGCM_card/IGCM_card_Test.ref > /dev/null 2>&1 ; then 
     
    327334      IGCM_debug_Exit "IGCM_card_Check" 
    328335    fi 
    329  
    330 #--------------------- 
    331     IGCM_debug_PopStack "IGCM_card_Check" 
    332 } 
     336} 
Note: See TracChangeset for help on using the changeset viewer.