/[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.150 by jmc, Tue Dec 14 18:45:52 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 855  OADM= Line 857  OADM=
857  # list of pTracers to check for monitor output  # list of pTracers to check for monitor output
858  PTRACERS_NUM="1 2 3 4 5"  PTRACERS_NUM="1 2 3 4 5"
859    
860  MATCH_CRIT=13  MATCH_CRIT=10
861    
862  printf "parsing options...  "  printf "parsing options...  "
863    
# Line 1391  for dir in $TESTDIRS ; do Line 1393  for dir in $TESTDIRS ; do
1393              echo "from '$dir/$builddir/Makefile', extract:" > $DRESULTS/genmake_state              echo "from '$dir/$builddir/Makefile', extract:" > $DRESULTS/genmake_state
1394              sed -n '/^# executed by:/,+1 p' $dir/$builddir/Makefile >> $DRESULTS/genmake_state              sed -n '/^# executed by:/,+1 p' $dir/$builddir/Makefile >> $DRESULTS/genmake_state
1395              echo $mkOpt >> $DRESULTS/genmake_state              echo $mkOpt >> $DRESULTS/genmake_state
1396                gmkLog=$dir/$builddir/genmake.log
1397                grep '^Get compiler version using:' $gmkLog > /dev/null 2>&1
1398                RETVAL=$?
1399                if test "x$RETVAL" = x0 ; then
1400                    echo "from '$gmkLog', extract compiler version:" >> $DRESULTS/genmake_state
1401                    sed -n '/Get compiler version/,/--- compiler version/p' $gmkLog | \
1402                           grep -v '^... compiler version ' > tr_vers.tmp_log
1403                    grep -i 'version ' tr_vers.tmp_log >> $DRESULTS/genmake_state
1404                    RETVAL=$?
1405                    if test "x$RETVAL" != x0 ; then
1406                       cat tr_vers.tmp_log >> $DRESULTS/genmake_state
1407                    fi
1408                    rm -f tr_vers.tmp_log
1409                fi
1410          fi          fi
1411      fi      fi
1412      #postclean $dir/$builddir      #postclean $dir/$builddir

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

  ViewVC Help
Powered by ViewVC 1.1.22