Changeset 1109


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

Add a test on /tmp for those 3 check functions

Location:
trunk/libIGCM
Files:
3 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} 
  • trunk/libIGCM/libIGCM_date/libIGCM_date.ksh

    r931 r1109  
    10181018function IGCM_date_Check 
    10191019{ 
    1020   IGCM_debug_PushStack "IGCM_date_Check" 
    1021  
    1022 #--------------------- 
     1020  #--------------------- 
    10231021  if [ ! -n "${libIGCM}" ] ; then 
    10241022    echo "Check libIGCM_date ...........................................[ FAILED ]" 
     
    10271025  fi 
    10281026 
    1029 #--------------------- 
     1027  #--------------------- 
    10301028  whence -v gawk > /dev/null 2>&1 
    10311029  if [ ! $? -eq 0 ] ; then 
     
    10351033  fi 
    10361034 
    1037 #--------------------- 
     1035  #--------------------- 
    10381036  ${libIGCM}/libIGCM_date/IGCM_date_Test.ksh > /tmp/IGCM_date_Test.$$.ref.failed 2>&1 
     1037  status=$? 
     1038 
     1039  if [ ${status} -gt 0 ] ; then 
     1040    IGCM_debug_Print 2 "IGCM_date_Test.ksh failed for some reason" 
     1041    IGCM_debug_Print 2 "Is /tmp full?" 
     1042    df -h 
     1043    IGCM_debug_Print 2 "Where /tmp is pointing to?" 
     1044    ls -l / 
     1045  fi 
    10391046 
    10401047  if diff /tmp/IGCM_date_Test.$$.ref.failed ${libIGCM}/libIGCM_date/IGCM_date_Test${dY}.ref > /dev/null 2>&1 ; then 
     
    10511058    IGCM_debug_Exit "IGCM_date_Check" 
    10521059  fi 
    1053  
    1054 #--------------------- 
    1055   IGCM_debug_PopStack "IGCM_date_Check" 
    1056 } 
    1057  
    1058 #================================================================== 
     1060} 
     1061 
  • trunk/libIGCM/libIGCM_debug/libIGCM_debug.ksh

    r1106 r1109  
    816816  if [ ${status} -gt 0 ] ; then 
    817817    IGCM_debug_Print 2 "IGCM_debug_Test.ksh failed for some reason" 
    818     IGCM_debug_Print 2 "Is /tmp full" 
     818    IGCM_debug_Print 2 "Is /tmp full?" 
    819819    df -h 
    820     IGCM_debug_Print 2 "Where /tmp is point to?" 
     820    IGCM_debug_Print 2 "Where /tmp is pointing to?" 
    821821    ls -l / 
    822822  fi 
Note: See TracChangeset for help on using the changeset viewer.