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