/[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.197 by jmc, Thu May 29 22:02:41 2014 UTC revision 1.208 by jmc, Fri May 20 19:34:38 2016 UTC
# Line 22  usage() Line 22  usage()
22      echo "  (-command|-c) STRING     command to run (e.g., if non-standard MPI setting)"      echo "  (-command|-c) STRING     command to run (e.g., if non-standard MPI setting)"
23      echo "                            DEF='mitgcmuv' or ='mpirun -np TR_NPROC mitgcmuv'"      echo "                            DEF='mitgcmuv' or ='mpirun -np TR_NPROC mitgcmuv'"
24      echo " ---- testing options : ----"      echo " ---- testing options : ----"
25      echo "  (-optfile|-of) STRING    list of optfiles to use"      echo "  (-optfile|-of) STRING    optfile to use"
26      echo "  (-fast)                  use optfile default for compiler flags (no '-ieee')"      echo "  (-fast)                  use optfile default for compiler flags (no '-ieee')"
27      echo "                            DEF=off => use IEEE numerics option (if available)"      echo "                            DEF=off => use IEEE numerics option (if available)"
28      echo "  (-devel)                 use optfile developement flags (if available)"      echo "  (-devel)                 use optfile developement flags (if available)"
# Line 42  usage() Line 42  usage()
42      echo "  (-bash|-b) STRING        preferred location of a \"bash\" or \"sh\" shell"      echo "  (-bash|-b) STRING        preferred location of a \"bash\" or \"sh\" shell"
43      echo "                             (DEF=\"\" for \"bash\")"      echo "                             (DEF=\"\" for \"bash\")"
44      echo "  (-ef) STRING             used as genmake2 \"-extra_flag\" argument"      echo "  (-ef) STRING             used as genmake2 \"-extra_flag\" argument"
45        echo "  (-ncad)                  use genmake2 option \"-nocat4ad\" (-ncad)"
46        echo "  (-small_f)               make target small_f before making target all"
47      echo "  (-makedepend|-md) STRING command to use for \"makedepend\""      echo "  (-makedepend|-md) STRING command to use for \"makedepend\""
48      echo "  (-make|-m) STRING        command to use for \"make\""      echo "  (-make|-m) STRING        command to use for \"make\""
49      echo "                             (DEF=\"make\")"      echo "                             (DEF=\"make\")"
# Line 130  testoutput_var() Line 132  testoutput_var()
132          echo testoutput_var: grep "$2" $1/$4/$OUTPUTFILE 1>&2          echo testoutput_var: grep "$2" $1/$4/$OUTPUTFILE 1>&2
133      fi      fi
134      if [ -r $1/$4/$OUTPUTFILE ]; then      if [ -r $1/$4/$OUTPUTFILE ]; then
135          grep "$2" $1/$4/$OUTPUTFILE | sed 's/.*=//' | cat -n > ${TMP}a.txt          grep "$2" $1/$4/$OUTPUTFILE | sed 's/.*=//' | nl > ${TMP}a.txt
136          lncntA=`wc -l ${TMP}a.txt | awk '{print $1}' `          lncntA=`wc -l ${TMP}a.txt | awk '{print $1}' `
137          if [ $lncntA -lt 2 ]; then          if [ $lncntA -lt 2 ]; then
138              if [ $verbose -gt 0 ]; then              if [ $verbose -gt 0 ]; then
# Line 145  testoutput_var() Line 147  testoutput_var()
147      if [ $debug -gt 0 ]; then      if [ $debug -gt 0 ]; then
148          echo testoutput_var: grep "$2" $1/$5 1>&2          echo testoutput_var: grep "$2" $1/$5 1>&2
149      fi      fi
150      grep "$2" $1/$5 | sed 's/.*=//' | cat -n > ${TMP}b.txt      grep "$2" $1/$5 | sed 's/.*=//' | nl > ${TMP}b.txt
151      lncntB=`wc -l ${TMP}b.txt | awk '{print $1}' `      lncntB=`wc -l ${TMP}b.txt | awk '{print $1}' `
152      if [ $lncntB -lt 2 ]; then      if [ $lncntB -lt 2 ]; then
153          if [ $verbose -gt 0 ]; then          if [ $verbose -gt 0 ]; then
# Line 268  testoutput_run() Line 270  testoutput_run()
270          allargs=""          allargs=""
271          for xx in $listVar          for xx in $listVar
272          do          do
273            case $xx in           #ii=`echo $xx | sed 's/^pt[0-9][0-9]*..$/XXX/'`        #- any ptr number
274              ii=`echo $xx | sed 's/^pt[1-9]..$/XXX/'`              #- 1 to 9 ptr number
275              if test $ii != 'XXX' ; then
276              #- all except ptracer stats:
277                case $xx in
278             'PS')  if [ $debug -gt 0 ]             'PS')  if [ $debug -gt 0 ]
279                    then echo testoutput_run: testoutput_var $1 cg2d_init_res 1>&2 ; fi                    then echo testoutput_run: testoutput_var $1 cg2d_init_res 1>&2 ; fi
280                    testoutput_var $1 "cg2d_init_res" "Press. Solver (cg2d)" $2 $refoutp ; yy=$?                    testoutput_var $1 "cg2d_init_res" "Press. Solver (cg2d)" $2 $refoutp ; yy=$?
# Line 295  testoutput_run() Line 301  testoutput_run()
301             'Vmx') testoutput_var $1 "dynstat_vvel_max"  "V maximum"       $2 $refoutp ; yy=$? ;;             'Vmx') testoutput_var $1 "dynstat_vvel_max"  "V maximum"       $2 $refoutp ; yy=$? ;;
302             'Vav') testoutput_var $1 "dynstat_vvel_mean" "V mean"          $2 $refoutp ; yy=$? ;;             'Vav') testoutput_var $1 "dynstat_vvel_mean" "V mean"          $2 $refoutp ; yy=$? ;;
303             'Vsd') testoutput_var $1 "dynstat_vvel_sd"   "V Std.Dev"       $2 $refoutp ; yy=$? ;;             'Vsd') testoutput_var $1 "dynstat_vvel_sd"   "V Std.Dev"       $2 $refoutp ; yy=$? ;;
         'pt1mn'|'pt2mn'|'pt3mn'|'pt4mn'|'pt5mn') ii=`echo $xx | sed 's/pt//' | sed 's/..$//'`  
            testoutput_var $1 "trcstat_ptracer0"$ii"_min"  "p0"$ii"_min"   $2 $refoutp ; yy=$? ;;  
         'pt1mx'|'pt2mx'|'pt3mx'|'pt4mx'|'pt5mx') ii=`echo $xx | sed 's/pt//' | sed 's/..$//'`  
            testoutput_var $1 "trcstat_ptracer0"$ii"_max"  "p0"$ii"_max"   $2 $refoutp ; yy=$? ;;  
         'pt1av'|'pt2av'|'pt3av'|'pt4av'|'pt5av') ii=`echo $xx | sed 's/pt//' | sed 's/..$//'`  
            testoutput_var $1 "trcstat_ptracer0"$ii"_mean" "p0"$ii"_mean" $2 $refoutp ; yy=$? ;;  
         'pt1sd'|'pt2sd'|'pt3sd'|'pt4sd'|'pt5sd') ii=`echo $xx | sed 's/pt//' | sed 's/..$//'`  
            testoutput_var $1 "trcstat_ptracer0"$ii"_sd"   "p0"$ii"_StDv"  $2 $refoutp ; yy=$? ;;  
304           'Qntmn') testoutput_var $1 "forcing_qnet_min" "Qnet minimum"  $2 $refoutp ; yy=$? ;;           'Qntmn') testoutput_var $1 "forcing_qnet_min" "Qnet minimum"  $2 $refoutp ; yy=$? ;;
305           'Qntmx') testoutput_var $1 "forcing_qnet_max" "Qnet maximum"  $2 $refoutp ; yy=$? ;;           'Qntmx') testoutput_var $1 "forcing_qnet_max" "Qnet maximum"  $2 $refoutp ; yy=$? ;;
306           'Qntav') testoutput_var $1 "forcing_qnet_mean" "Qnet mean"       $2 $refoutp ; yy=$? ;;           'Qntav') testoutput_var $1 "forcing_qnet_mean" "Qnet mean"       $2 $refoutp ; yy=$? ;;
# Line 337  testoutput_run() Line 335  testoutput_run()
335           'sboAp') testoutput_var $1 "sbo_zoamp"         "SBO AM-P"        $2 $refoutp ; yy=$? ;;           'sboAp') testoutput_var $1 "sbo_zoamp"         "SBO AM-P"        $2 $refoutp ; yy=$? ;;
336          'StrmIc') testoutput_var $1 "STREAMICE_FP_ERR" "StreamIce Solver" $2 $refoutp ; yy=$? ;;          'StrmIc') testoutput_var $1 "STREAMICE_FP_ERR" "StreamIce Solver" $2 $refoutp ; yy=$? ;;
337                *) yy=99; echo "WARNING: asking for var=$xx : not recognized !" 1>&2 ;;                *) yy=99; echo "WARNING: asking for var=$xx : not recognized !" 1>&2 ;;
338            esac              esac
339              else
340              #- ptracers stats:
341                nn=`echo $xx | sed 's/pt//' | sed 's/..$//'`
342                ii=`echo $xx | sed 's/^pt[0-9]*//'`
343                case $ii in
344                'mn') testoutput_var $1 "trcstat_ptracer0"$nn"_min"  "p0"$nn"_min"  $2 $refoutp ; yy=$? ;;
345                'mx') testoutput_var $1 "trcstat_ptracer0"$nn"_max"  "p0"$nn"_max"  $2 $refoutp ; yy=$? ;;
346                'av') testoutput_var $1 "trcstat_ptracer0"$nn"_mean" "p0"$nn"_mean" $2 $refoutp ; yy=$? ;;
347                'sd') testoutput_var $1 "trcstat_ptracer0"$nn"_sd"   "p0"$nn"_StDv" $2 $refoutp ; yy=$? ;;
348                esac
349              fi
350            if test $xx = $sVar            if test $xx = $sVar
351            then allargs="$allargs > $yy <"            then allargs="$allargs > $yy <"
352            else allargs="$allargs $yy"            else allargs="$allargs $yy"
# Line 402  genmakemodel() Line 411  genmakemodel()
411              if test "x$EXTRFLG" != x ; then              if test "x$EXTRFLG" != x ; then
412                  command="$command -extra_flag $EXTRFLG"                  command="$command -extra_flag $EXTRFLG"
413              fi              fi
414                if test "x$NOCATAD" = xt ; then
415                    command="$command -nocat4ad"
416                fi
417              if test "x$TS" = xt ; then              if test "x$TS" = xt ; then
418                  command="$command -ts"                  command="$command -ts"
419              fi              fi
# Line 523  makemodel() Line 535  makemodel()
535      else      else
536          cd $1;          cd $1;
537          if test -r Makefile ; then          if test -r Makefile ; then
538              printf 'make ... '              if test "x$MKSMALLF" = xt ; then
539              if test "x$REPLMAKE" = x ; then                  printf 'make small_f ... '
540                  $MAKE $TARG >> make.tr_log 2>&1                  $MAKE_CMD small_f >> make.tr_log 2>&1
541              else                  RETVAL=$?
542                  $REPLMAKE $TARG >> make.tr_log 2>&1                  if test "x$RETVAL" != x0 ; then
543                        tail make.tr_log
544                        echo failed
545                        cp genmake.log genmake.tr_log $CDIR
546                        tail -$NBLINES_MKLOG make.tr_log > $CDIR"/make.tr_log_tail"
547                        rm -f $EXECUTABLE
548                        mk_fail=1
549                    else
550                        echo successful
551                    fi
552              fi              fi
553                printf 'make ... '
554                $MAKE_CMD $TARG >> make.tr_log 2>&1
555              RETVAL=$?              RETVAL=$?
556              if test "x$RETVAL" != x0 ; then              if test "x$RETVAL" != x0 ; then
557                  tail make.tr_log                  tail make.tr_log
# Line 776  runmodel() Line 799  runmodel()
799          if test "x$MPI" != x0 ; then          if test "x$MPI" != x0 ; then
800              #- adjust the MPI run command with the right number of Procs              #- adjust the MPI run command with the right number of Procs
801              #echo '' ; echo "  COMMAND='$COMMAND'"              #echo '' ; echo "  COMMAND='$COMMAND'"
802              COMMAND=`echo $COMMAND | sed "s/ TR_NPROC / $LOC_NPROC /"`              COMMAND=`echo $COMMAND | sed "s/ TR_NPROC/ $LOC_NPROC/"`
803              if test "x$MPI_MFILE" != x ; then              if test "x$MPI_MFILE" != x ; then
804                COMMAND=`echo $COMMAND | sed "s/ TR_MFILE / ..\/..\/$LOC_MFILE /"`                COMMAND=`echo $COMMAND | sed "s/ TR_MFILE / ..\/..\/$LOC_MFILE /"`
805              fi              fi
# Line 842  runmodel() Line 865  runmodel()
865          if test -f $OUTPUTFILE ; then          if test -f $OUTPUTFILE ; then
866            grep '(PID\.TID 0000\.0001)      n.. =' $OUTPUTFILE \            grep '(PID\.TID 0000\.0001)      n.. =' $OUTPUTFILE \
867                  | sed 's/(PID.TID 0000.0001)   //' >> $CDIR"/summary.txt"                  | sed 's/(PID.TID 0000.0001)   //' >> $CDIR"/summary.txt"
868            grep -A3 'Seconds in section "ALL' $OUTPUTFILE \  #         grep -A3 'Seconds in section "ALL' $OUTPUTFILE \
869                  | sed 's/(PID.TID 0000.0001)   //' >> $CDIR"/summary.txt"  #               | sed 's/(PID.TID 0000.0001)   //' >> $CDIR"/summary.txt"
870    #         some implementations of grep cannot do contextual searches so we
871    #         replace the above with a sed command
872              cat $OUTPUTFILE | sed -n '/Seconds in section "ALL/{N
873              N
874              N
875              p
876              }' | sed 's/(PID.TID 0000.0001)   //' >> $CDIR"/summary.txt"
877          fi          fi
878          if test -s STDERR.0000 ; then cp STDERR.0000 $CDIR"/STDERR.0000" ; fi          if test -s STDERR.0000 ; then cp STDERR.0000 $CDIR"/STDERR.0000" ; fi
879          if [ $RETVAL -eq 0 -a $ENDVAL -gt 0 ] ; then          if [ $RETVAL -eq 0 -a $ENDVAL -gt 0 ] ; then
# Line 1044  MKDEPEND= Line 1074  MKDEPEND=
1074  if test "x$MAKE" = x ; then  if test "x$MAKE" = x ; then
1075      MAKE=make      MAKE=make
1076  fi  fi
1077  REPLMAKE=  MAKE_CMD=
1078  if test "x$CC" = x ; then  if test "x$CC" = x ; then
1079      CC=cc      CC=cc
1080  fi  fi
# Line 1057  OUTDIR= Line 1087  OUTDIR=
1087  DELDIR=  DELDIR=
1088  USE_R4=  USE_R4=
1089  EXTRFLG=  EXTRFLG=
1090    NOCATAD=
1091    MKSMALLF=
1092    
1093  #- type of testing (KIND):  #- type of testing (KIND):
1094  #   KIND=0 : forward (= default) ;  KIND=1 : Tangent Linear with TAF ;  #   KIND=0 : forward (= default) ;  KIND=1 : Tangent Linear with TAF ;
# Line 1116  for ac_option ; do Line 1148  for ac_option ; do
1148          -make | --make | -m | --m) ac_prev=MAKE ;;          -make | --make | -m | --m) ac_prev=MAKE ;;
1149          -make=* | --make=* | -m=* | --m=*) MAKE=$ac_optarg ;;          -make=* | --make=* | -m=* | --m=*) MAKE=$ac_optarg ;;
1150    
1151          -repl_mk | --repl_mk ) ac_prev=REPLMAKE ;;          -repl_mk | --repl_mk ) ac_prev=MAKE_CMD ;;
1152          -repl_mk=* | --repl_mk=*) REPLMAKE=$ac_optarg ;;          -repl_mk=* | --repl_mk=*) MAKE_CMD=$ac_optarg ;;
1153    
1154          -odir | --odir) ac_prev=OUTDIR ;;          -odir | --odir) ac_prev=OUTDIR ;;
1155          -odir=* | --odir=*) OUTDIR=$ac_optarg ;;          -odir=* | --odir=*) OUTDIR=$ac_optarg ;;
# Line 1165  for ac_option ; do Line 1197  for ac_option ; do
1197          -oad) if test $KIND = 0 ; then KIND=4 ; NODEPEND=t ; else          -oad) if test $KIND = 0 ; then KIND=4 ; NODEPEND=t ; else
1198                  echo "Error: '-tlm', '-adm' and '-oad' are exclusive" ; usage                  echo "Error: '-tlm', '-adm' and '-oad' are exclusive" ; usage
1199                fi ;;                fi ;;
1200            -ncad) NOCATAD=t ;;
1201            -small_f) MKSMALLF=t ;;
1202    
1203          -ieee)   echo "Warning: ignore option '-ieee' (already the default)"          -ieee)   echo "Warning: ignore option '-ieee' (already the default)"
1204                   printf " ... " ;;                   printf " ... " ;;
# Line 1184  for ac_option ; do Line 1218  for ac_option ; do
1218    
1219          -ts) TS=t;;          -ts) TS=t;;
1220          -papis) PAPIS=t;;          -papis) PAPIS=t;;
1221          -pcls) PCL=t;;          -pcls) PCLS=t;;
1222    
1223          -*) echo "Error: unrecognized option: "$ac_option          -*) echo "Error: unrecognized option: "$ac_option
1224              usage ;;              usage ;;
# Line 1200  if test "x$QUICK" = xt ; then Line 1234  if test "x$QUICK" = xt ; then
1234      NOCLEAN=t      NOCLEAN=t
1235      NODEPEND=t      NODEPEND=t
1236  fi  fi
1237    if test "x$MAKE_CMD" = x ; then MAKE_CMD=$MAKE ; fi
1238    
1239  #- check length of MPI machine file:  #- check length of MPI machine file:
1240  if test "x$MPI" != x0 -a "x$MPI_MFILE" != x ; then  if test "x$MPI" != x0 -a "x$MPI_MFILE" != x ; then
# Line 1238  elif test $KIND = 4 ; then Line 1273  elif test $KIND = 4 ; then
1273      ref_outp="output_oadm.txt"      ref_outp="output_oadm.txt"
1274      EXECUTABLE="mitgcmuv_ad"      EXECUTABLE="mitgcmuv_ad"
1275  else  else
     if test "x$JOBS" != x ; then TARG="-j $JOBS $TARG" ; fi  
1276      code_dir=code      code_dir=code
1277      inputdir=input      inputdir=input
1278      ref_outp="output.txt"      ref_outp="output.txt"
1279      EXECUTABLE="mitgcmuv"      EXECUTABLE="mitgcmuv"
1280  fi  fi
1281    if test "x$JOBS" != x ; then TARG="-j $JOBS $TARG" ; fi
1282    
1283  xx=`echo $TESTDIRS | awk '{print $1}'`  xx=`echo $TESTDIRS | awk '{print $1}'`
1284  if test "x$TESTDIRS" = x ; then  if test "x$TESTDIRS" = x ; then
# Line 1290  done Line 1325  done
1325  if test $count = 1 ; then echo "" ; echo -n " ... " ; fi  if test $count = 1 ; then echo "" ; echo -n " ... " ; fi
1326  #echo 'TESTDIRS='${TESTDIRS}'<'  #echo 'TESTDIRS='${TESTDIRS}'<'
1327    
 if test "x$OPTFILE" = xNONE -a "x$MITGCM_OF" != x ; then  
     OPTFILE=$MITGCM_OF  
 fi  
   
1328  LOC_MFILE='tr_mpi_mfile'  LOC_MFILE='tr_mpi_mfile'
1329  RUNLOG="run.tr_log"  RUNLOG="run.tr_log"
1330  if test "x$MPI" = x0 ; then  if test "x$MPI" = x0 ; then
# Line 1301  if test "x$MPI" = x0 ; then Line 1332  if test "x$MPI" = x0 ; then
1332    if test "x$COMMAND" = x ; then COMMAND="./$EXECUTABLE > $OUTPUTFILE" ; fi    if test "x$COMMAND" = x ; then COMMAND="./$EXECUTABLE > $OUTPUTFILE" ; fi
1333  else  else
1334    OUTPUTFILE="STDOUT.0000"    OUTPUTFILE="STDOUT.0000"
1335    if test "x$COMMAND" = x ; then COMMAND="mpirun -v -np TR_NPROC ./$EXECUTABLE" ; fi    if test "x$COMMAND" = x ; then COMMAND="mpirun -np TR_NPROC ./$EXECUTABLE" ; fi
1336  fi  fi
1337    
1338  echo "OK (COMMAND='$COMMAND')"  echo "OK (COMMAND='$COMMAND')"
1339    
1340  TMP=./tr_$$  #TMP=./tr_$$
1341  #- try to put temporary files in system-local /tmp dir  #- try to put temporary files in system-local /tmp dir
1342  #TMP=/tmp/tr_$$  TMP=/tmp/tr_${USER}_$$
1343  #touch $TMP ; retVal=$?  touch $TMP ; retVal=$?
1344  #if [ $retVal -eq 0 ] ; then  if [ $retVal -eq 0 ] ; then
1345  #  if test ! -r $TMP ; then TMP=./tr_$$ ; fi    if test ! -r $TMP ; then TMP=./tr_$$ ; fi
1346  #else  else
1347  #  TMP=./tr_$$    TMP=./tr_$$
1348  #fi  fi
1349  #rm -f $TMP  rm -f $TMP
1350  #if [ $verbose -gt 1 ]; then echo " temp files: $TMP" ; fi  if [ $verbose -gt 1 ]; then echo " temp files: $TMP" ; fi
1351    
1352  # set the Default List of output variables to be checked:  # set the Default List of output variables to be checked:
1353  #  (use default or load experiment-specific list from file "tr_checklist")  #  (use default or load experiment-specific list from file "tr_checklist")
# Line 1363  for xx in "$@" ; do nw=`echo $xx | wc -w Line 1394  for xx in "$@" ; do nw=`echo $xx | wc -w
1394                               CMDLINE="$CMDLINE $yy" ; fi                               CMDLINE="$CMDLINE $yy" ; fi
1395      fi      fi
1396  done  done
 #for xx in "$@" ; do CMDLINE="$CMDLINE '$xx'" ; done  
1397  MACH=`hostname`  MACH=`hostname`
1398  UNAMEA=`uname -a`  UNAMEA=`uname -a`
1399  DATE=`date +%Y%m%d`  DATE=`date +%Y%m%d`
# Line 1371  BASE="tr_"$MACH"_"$DATE"_" Line 1401  BASE="tr_"$MACH"_"$DATE"_"
1401  if test "x$OUTDIR" != x ; then  if test "x$OUTDIR" != x ; then
1402      BASE="tr_"$OUTDIR"_"$DATE"_"      BASE="tr_"$OUTDIR"_"$DATE"_"
1403  else  else
1404      short_name=`hostname | sed 's/\..*$//'`     #short_name=`hostname -s | tr '[:upper:]' '[:lower:]'`
1405       # hostname -s is not universal (does work on AIX system)
1406        short_name=`hostname | sed 's/\..*$//' | tr '[:upper:]' '[:lower:]'`
1407      BASE="tr_"$short_name"_"$DATE"_"      BASE="tr_"$short_name"_"$DATE"_"
1408  fi  fi
1409  DNUM=0  DNUM=0
# Line 1677  for dir in $TESTDIRS ; do Line 1709  for dir in $TESTDIRS ; do
1709          if test -f $dir/$builddir/Makefile ; then          if test -f $dir/$builddir/Makefile ; then
1710              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/^# //'`
1711              echo "from '$dir/$builddir/Makefile', extract:" > $DRESULTS/genmake_state              echo "from '$dir/$builddir/Makefile', extract:" > $DRESULTS/genmake_state
1712              sed -n '/^# executed by:/,+1 p' $dir/$builddir/Makefile >> $DRESULTS/genmake_state  #           sed -n '/^# executed by:/,+1 p' $dir/$builddir/Makefile >> $DRESULTS/genmake_state
1713    # bsd-sed cannot do the above code
1714                cat $dir/$builddir/Makefile | \
1715                    sed -n '/^# executed by:/{N
1716                                              p
1717                                              }' >> $DRESULTS/genmake_state
1718              echo " $mkOpt" >> $DRESULTS/genmake_state              echo " $mkOpt" >> $DRESULTS/genmake_state
1719              if test "x$OPTFILE" = xNONE ; then              if test "x$OPTFILE" = xNONE ; then
1720                  eval $mkOpt                  eval $mkOpt
1721                  sed "/^No \"OPTFILE\" was specified ; genmake2/a\  OPTFILE=${OPTFILE}"\  #               sed "/^No \"OPTFILE\" was specified ; genmake2/a\  OPTFILE=${OPTFILE}"\
1722                          $SUMMARY > tmp.tr_log  #                       $SUMMARY > tmp.tr_log
1723    # bsd-sed requires a newline after "a\":
1724                    sed "/^No \"OPTFILE\" was specified ; genmake2/a\\
1725                             OPTFILE=${OPTFILE}" $SUMMARY > tmp.tr_log
1726                  RETVAL=$?                  RETVAL=$?
1727                  if test "x$RETVAL" = x0 ; then                  if test "x$RETVAL" = x0 ; then
1728                      cp -f tmp.tr_log $SUMMARY                      cp -f tmp.tr_log $SUMMARY
# Line 1703  for dir in $TESTDIRS ; do Line 1743  for dir in $TESTDIRS ; do
1743                                           >> $DRESULTS/genmake_state                                           >> $DRESULTS/genmake_state
1744                    rm -f tmp.tr_log                    rm -f tmp.tr_log
1745                  fi                  fi
1746                  echo -n "from '$gmkLog', " >> $DRESULTS/genmake_state              fi
1747                  echo "get NETCDF & LAPACK settings:" >> $DRESULTS/genmake_state              gmkLog=$dir/$builddir/genmake_state
1748                  sed -n '/set HAVE_NETCDF=/p' $gmkLog >> $DRESULTS/genmake_state              if test -r $gmkLog ; then
1749                  sed -n '/set HAVE_LAPACK=/p' $gmkLog >> $DRESULTS/genmake_state                  echo -n "from '$gmkLog', "      >> $DRESULTS/genmake_state
1750                    echo "get genmake settings:"    >> $DRESULTS/genmake_state
1751                    sed -n '/^HAVE_/p' $gmkLog | sed 's/^./ &/' \
1752                                                    >> $DRESULTS/genmake_state
1753              fi              fi
1754          fi          fi
1755      fi      fi

Legend:
Removed from v.1.197  
changed lines
  Added in v.1.208

  ViewVC Help
Powered by ViewVC 1.1.22