/[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.146 by jmc, Tue Nov 2 22:53:11 2010 UTC revision 1.153 by jmc, Wed Dec 29 22:35:50 2010 UTC
# Line 25  usage() Line 25  usage()
25      echo "  (-tdir|-t) STRING        list of group and/or exp. dirs to test"      echo "  (-tdir|-t) STRING        list of group and/or exp. dirs to test"
26      echo "                             (recognized groups: basic, tutorials)"      echo "                             (recognized groups: basic, tutorials)"
27      echo "                             (DEF=\"\" which test all)"      echo "                             (DEF=\"\" which test all)"
28        echo "                             (if list= 'start_from THIS_EXP' then"
29        echo "                              test THIS_EXP + all the following)"
30      echo "  (-skipdir|-skd) STRING   list of exp. dirs to skip"      echo "  (-skipdir|-skd) STRING   list of exp. dirs to skip"
31      echo "                             (DEF=\"\" which test all)"      echo "                             (DEF=\"\" which test all)"
32      echo "  (-bash|-b) STRING        preferred location of a \"bash\" or"      echo "  (-bash|-b) STRING        preferred location of a \"bash\" or"
# Line 365  genmakemodel() Line 367  genmakemodel()
367              if test "x$RETVAL" != x0 ; then              if test "x$RETVAL" != x0 ; then
368                  tail genmake.tr_log                  tail genmake.tr_log
369                  echo "genmakemodel: genmake failed"                  echo "genmakemodel: genmake failed"
370                  cp genmake_* genmake.tr_log $CDIR                  cp genmake.log genmake_* genmake.tr_log $CDIR
371                  return 1                  return 1
372              else              else
373                  echo "successful"                  echo "successful"
# Line 392  makeclean() Line 394  makeclean()
394                  if test "x$RETVAL" != x0 ; then                  if test "x$RETVAL" != x0 ; then
395                      tail make.tr_log                      tail make.tr_log
396                      echo "makeclean: \"make Clean\" failed"                      echo "makeclean: \"make Clean\" failed"
397                      cp make.tr_log $CDIR"/make.tr_log"                      cp make.tr_log genmake.log genmake.tr_log $CDIR
398                      return 1                      return 1
399                  fi                  fi
400                  echo successful                  echo successful
# Line 441  makedependmodel() Line 443  makedependmodel()
443              if test "x$RETVAL" != x0 ; then              if test "x$RETVAL" != x0 ; then
444                  tail make.tr_log                  tail make.tr_log
445                  echo "makedependmodel: make depend failed"                  echo "makedependmodel: make depend failed"
446                  cp make.tr_log $CDIR"/make.tr_log"                  cp make.tr_log genmake.log genmake.tr_log $CDIR
447                  return 1                  return 1
448              else              else
449                  echo successful                  echo successful
# Line 481  makemodel() Line 483  makemodel()
483              if test "x$RETVAL" != x0 ; then              if test "x$RETVAL" != x0 ; then
484                  tail make.tr_log                  tail make.tr_log
485                  echo failed                  echo failed
486                  cp make.tr_log $CDIR"/make.tr_log"                  cp make.tr_log genmake.log genmake.tr_log $CDIR
487                  rm -f $EXECUTABLE                  rm -f $EXECUTABLE
488                  return 1                  return 1
489              else              else
# Line 652  runmodel() Line 654  runmodel()
654                      echo " no previous $RUNLOG: assume NORMAL END" >> $RUNLOG 2>&1                      echo " no previous $RUNLOG: assume NORMAL END" >> $RUNLOG 2>&1
655                  fi                  fi
656              fi              fi
657              ENDVAL=`cat $RUNLOG | grep -v 'ABNORMAL END' | grep -c 'NORMAL END'`              #ENDVAL=`cat $RUNLOG | grep -v 'ABNORMAL END' | grep -c 'NORMAL END'`
658                ENDVAL=`tail $OUTPUTFILE | grep -c 'PROGRAM MAIN: Execution ended Normally'`
659          fi          fi
660          rm -f run.log_tmp          rm -f run.log_tmp
661          if [ $RETVAL -eq 0 -a $ENDVAL -gt 0 ] ; then          if [ $RETVAL -eq 0 -a $ENDVAL -gt 0 ] ; then
# Line 855  OADM= Line 858  OADM=
858  # list of pTracers to check for monitor output  # list of pTracers to check for monitor output
859  PTRACERS_NUM="1 2 3 4 5"  PTRACERS_NUM="1 2 3 4 5"
860    
861  MATCH_CRIT=13  MATCH_CRIT=10
862    
863  printf "parsing options...  "  printf "parsing options...  "
864    
# Line 1164  if test "x$OPTFILE" != xNONE ; then Line 1167  if test "x$OPTFILE" != xNONE ; then
1167      fi      fi
1168  else  else
1169      echo >> $SUMMARY      echo >> $SUMMARY
1170      echo "No \"OPTFILE\" was explicitly specified by testreport," >> $SUMMARY      echo "No \"OPTFILE\" was specified ; genmake2 found and uses:" >> $SUMMARY
1171      echo "   so the genmake default will be used." >> $SUMMARY      #-note: to be filled later after 1rst run
1172  fi  fi
1173  echo  echo
1174  echo >> $SUMMARY  echo >> $SUMMARY
# Line 1390  for dir in $TESTDIRS ; do Line 1393  for dir in $TESTDIRS ; do
1393              mkOpt=`grep '^# OPTFILE=' $dir/$builddir/Makefile 2>/dev/null | head -1 | sed 's/^# //'`              mkOpt=`grep '^# OPTFILE=' $dir/$builddir/Makefile 2>/dev/null | head -1 | sed 's/^# //'`
1394              echo "from '$dir/$builddir/Makefile', extract:" > $DRESULTS/genmake_state              echo "from '$dir/$builddir/Makefile', extract:" > $DRESULTS/genmake_state
1395              sed -n '/^# executed by:/,+1 p' $dir/$builddir/Makefile >> $DRESULTS/genmake_state              sed -n '/^# executed by:/,+1 p' $dir/$builddir/Makefile >> $DRESULTS/genmake_state
1396              echo $mkOpt >> $DRESULTS/genmake_state              echo " $mkOpt" >> $DRESULTS/genmake_state
1397                if test "x$OPTFILE" = xNONE ; then
1398                    eval $mkOpt
1399                    sed "/^No \"OPTFILE\" was specified ; genmake2/a\  OPTFILE=${OPTFILE}"\
1400                            $SUMMARY > tr_0.tmp_log
1401                    RETVAL=$?
1402                    if test "x$RETVAL" = x0 ; then rm -f $SUMMARY
1403                            cp tr_0.tmp_log $SUMMARY
1404                    else rm -f tr_0.tmp_log
1405                    fi
1406                fi
1407                gmkLog=$dir/$builddir/genmake.log
1408                grep '^Get compiler version using:' $gmkLog > /dev/null 2>&1
1409                RETVAL=$?
1410                if test "x$RETVAL" = x0 ; then
1411                    echo "from '$gmkLog', extract compiler version:" >> $DRESULTS/genmake_state
1412                    sed -n '/Get compiler version/,/<-- compiler version/p' $gmkLog \
1413                           | grep -v '^... compiler version ' > tr_1.tmp_log
1414                    sed -n '1,/^$/p' tr_1.tmp_log | sed '/^$/d' | sed 's/^./ &/' \
1415                            >> $DRESULTS/genmake_state
1416                    rm -f tr_1.tmp_log
1417                fi
1418          fi          fi
1419      fi      fi
1420      #postclean $dir/$builddir      #postclean $dir/$builddir

Legend:
Removed from v.1.146  
changed lines
  Added in v.1.153

  ViewVC Help
Powered by ViewVC 1.1.22