/[MITgcm]/MITgcm/verification/testreport
ViewVC logotype

Diff of /MITgcm/verification/testreport

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.22 by edhill, Sat Nov 29 00:58:43 2003 UTC revision 1.23 by edhill, Sat Nov 29 01:45:25 2003 UTC
# Line 70  build_mpack() Line 70  build_mpack()
70      echo "OK"      echo "OK"
71  }  }
72    
 compare_lines()  
 {  
     # use codelet to compare lines  
     if [ $verbose -gt 1 ]; then  
         cat tmp3.txt 1>&2  
     fi  
     return `./a.out < tmp3.txt`  
 }  
   
73  testoutput_for_prop()  testoutput_for_prop()
74  {  {
75      # testoutput_for_prop dir s1 label subdir      # testoutput_for_prop dir s1 label subdir
# Line 124  testoutput_for_prop() Line 115  testoutput_for_prop()
115          cat tmp3.txt 1>&2          cat tmp3.txt 1>&2
116      fi      fi
117      echo "-1" >> tmp3.txt      echo "-1" >> tmp3.txt
118      digits_of_similarity=`./tmp_cmpnum < tmp3.txt`      # On the SGI O3K (*not* the O2K), "cat -n" inserts a ":" after the line number
119        cat tmp3.txt | sed -e 's|:||g' > tmp4.txt
120        digits_of_similarity=`./tmp_cmpnum < tmp4.txt`
121      if [ $digits_of_similarity -eq 99 ]; then      if [ $digits_of_similarity -eq 99 ]; then
122          if [ $verbose -gt 0 ]; then          if [ $verbose -gt 0 ]; then
123              echo testoutput_for_prop: No comparison was available for \"$2\" 1>&2              echo testoutput_for_prop: No comparison was available for \"$2\" 1>&2
# Line 135  testoutput_for_prop() Line 128  testoutput_for_prop()
128              echo There were $digits_of_similarity decimal places of similarity for \"$2\" 1>&2              echo There were $digits_of_similarity decimal places of similarity for \"$2\" 1>&2
129          fi          fi
130      fi      fi
131      rm tmp1.txt tmp2.txt tmp3.txt      rm -f tmp1.txt tmp2.txt tmp3.txt tmp4.txt
132            
133      return $digits_of_similarity      return $digits_of_similarity
134  }  }

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

  ViewVC Help
Powered by ViewVC 1.1.22