/[MITgcm]/MITgcm/verification/testscript
ViewVC logotype

Diff of /MITgcm/verification/testscript

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

revision 1.2 by adcroft, Fri Mar 9 19:05:26 2001 UTC revision 1.2.2.2 by adcroft, Tue Mar 20 15:25:42 2001 UTC
# Line 10  Line 10 
10    
11  set on_error_die  set on_error_die
12  set passaccuracy=7  set passaccuracy=7
13  printf '%s\t%s\t%s\t%s\t%s\t%s\t%s\n' " " Make " " " " Exact "# of" " " > summary.txt  printf '%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n' " " Make " " " " Exact "# of" " " " " > summary.txt
14  printf '%s\t%s\t%s\t%s\t%s\t%s\t%s\n' Config Depend Compile Execute Match Digits Experiment >> summary.txt  printf '%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n' Config Depend Compile Execute Match Digits Status Experiment >> summary.txt
15    
16  # Pass any arguments  # Pass any arguments
17  foreach arg ($argv)  foreach arg ($argv)
# Line 49  foreach dr ([a-zA-Z01-9]*) Line 49  foreach dr ([a-zA-Z01-9]*)
49   set execute=-   set execute=-
50   set exactmatch=-   set exactmatch=-
51   set accuracy=-   set accuracy=-
52     set pass=FAIL
53   echo ==============================================================================   echo ==============================================================================
54   echo Entering $dr   echo Entering $dr
55   cd $dr   cd $dr
# Line 122  foreach dr ([a-zA-Z01-9]*) Line 123  foreach dr ([a-zA-Z01-9]*)
123        if ($?fail ) then        if ($?fail ) then
124          if (! $?fails) set fails          if (! $?fails) set fails
125          set fails=($fails $dr)          set fails=($fails $dr)
126            set pass=FAIL
127          echo "                        ***** FAIL *****"          echo "                        ***** FAIL *****"
128        else        else
129          if (! $?passes) set passes          if (! $?passes) set passes
130          set passes=($passes $dr)          set passes=($passes $dr)
131            set pass=Pass
132          echo ""          echo ""
133          echo "                   ***** PASS (grade $lvl) *****"          echo "                   ***** PASS (grade $lvl) *****"
134        endif        endif
135        set accuracy=$lvl        set accuracy=$lvl
136      else      else
137        set exactmatch=Yes        set exactmatch=Yes
138          set pass=Pass
139        echo ""        echo ""
140        echo Model passed at highest accuracy.        echo Model passed at highest accuracy.
141        echo ""        echo ""
# Line 145  foreach dr ([a-zA-Z01-9]*) Line 149  foreach dr ([a-zA-Z01-9]*)
149      tail output.txt      tail output.txt
150      echo The runtime error occured in \"$dr\"      echo The runtime error occured in \"$dr\"
151      if ($?on_error_die) exit 1      if ($?on_error_die) exit 1
152        set pass=-
153    endif    endif
154      rm -f high.txt oldhigh.txt low.txt oldlow.txt output.txt make.log
155    endif    endif
156    cd ..    cd ..
157   endif   endif
# Line 153  foreach dr ([a-zA-Z01-9]*) Line 159  foreach dr ([a-zA-Z01-9]*)
159   cd ..   cd ..
160  # Pretty summary  # Pretty summary
161   printresults:   printresults:
162   printf '  %s\t  %s\t  %s\t  %s\t  %s\t  %s\t%s\n' $config $makedepend $compile $execute $exactmatch $accuracy $dr >> summary.txt   printf '  %s\t  %s\t  %s\t  %s\t  %s\t %s\t %s\t%s\n' $config $makedepend $compile $execute $exactmatch $accuracy $pass $dr >> summary.txt
163  end  end
164  echo ==============================================================================  echo ==============================================================================
165  echo ""  echo ""

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.2.2.2

  ViewVC Help
Powered by ViewVC 1.1.22