/[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.155 by jmc, Wed Jan 19 22:12:55 2011 UTC
# Line 12  usage() Line 12  usage()
12      echo "where possible OPTIONS are:"      echo "where possible OPTIONS are:"
13      echo "  (-help|-h)               print usage"      echo "  (-help|-h)               print usage"
14      echo "  (-mth)                   run multi-threaded (using eedata.mth)"      echo "  (-mth)                   run multi-threaded (using eedata.mth)"
15      echo "  (-mpi)                   compile and run using MPI"      echo "  (-mpi)                   use MPI to compile and run on 2 processors"
16        echo "  (-MPI)  NUMBER           use MPI to compile and run on max NUMBER procs"
17      echo "  (-ieee/-noieee)          if possible, use IEEE compiler flags"      echo "  (-ieee/-noieee)          if possible, use IEEE compiler flags"
18      echo "                             (DEF=\"-ieee\")"      echo "                             (DEF=\"-ieee\")"
19      echo "  (-gsl)                   compile with \"-gsl\" flag"      echo "  (-gsl)                   compile with \"-gsl\" flag"
# Line 25  usage() Line 26  usage()
26      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"
27      echo "                             (recognized groups: basic, tutorials)"      echo "                             (recognized groups: basic, tutorials)"
28      echo "                             (DEF=\"\" which test all)"      echo "                             (DEF=\"\" which test all)"
29        echo "                             (if list= 'start_from THIS_EXP' then"
30        echo "                              test THIS_EXP + all the following)"
31      echo "  (-skipdir|-skd) STRING   list of exp. dirs to skip"      echo "  (-skipdir|-skd) STRING   list of exp. dirs to skip"
32      echo "                             (DEF=\"\" which test all)"      echo "                             (DEF=\"\" which test all)"
33      echo "  (-bash|-b) STRING        preferred location of a \"bash\" or"      echo "  (-bash|-b) STRING        preferred location of a \"bash\" or"
# Line 232  testoutput_run() Line 235  testoutput_run()
235            listVar=" $sVar "`echo "$listVar " | sed "s/ $sVar / /g"`            listVar=" $sVar "`echo "$listVar " | sed "s/ $sVar / /g"`
236          fi          fi
237          if [ $debug -gt 0 ]; then echo "testoutput_run: listVar(M)='$listVar'" 1>&2 ; fi          if [ $debug -gt 0 ]; then echo "testoutput_run: listVar(M)='$listVar'" 1>&2 ; fi
238          echo "listVar='$listVar'" > $locDIR"/summary.txt"          #- report to this experiment local summary file ---
239            echo "MACH='$MACH'" > $locDIR"/summary.txt"
240            echo "UNAMEA='$UNAMEA'" >> $locDIR"/summary.txt"
241            echo "DATE='$DATE'" >> $locDIR"/summary.txt"
242            grep '(PID\.TID 0000\.0001)      n.. =' $1/$2/$OUTPUTFILE \
243             | sed 's/(PID.TID 0000.0001)     //' >> $locDIR"/summary.txt"
244            echo "listVar='$listVar'" >> $locDIR"/summary.txt"
245            #---
246          allargs=""          allargs=""
247          for xx in $listVar          for xx in $listVar
248          do          do
# Line 337  genmakemodel() Line 347  genmakemodel()
347              if test "x$GSL" = xt ; then              if test "x$GSL" = xt ; then
348                  command="$command -gsl"                  command="$command -gsl"
349              fi              fi
350              if test "x$MPI" = xt ; then              if test "x$MPI" != x0 ; then
351                  command="$command -mpi"                  command="$command -mpi"
352              fi              fi
353              if test "x$MULTI_THREAD" = xt ; then              if test "x$MULTI_THREAD" = xt ; then
# Line 365  genmakemodel() Line 375  genmakemodel()
375              if test "x$RETVAL" != x0 ; then              if test "x$RETVAL" != x0 ; then
376                  tail genmake.tr_log                  tail genmake.tr_log
377                  echo "genmakemodel: genmake failed"                  echo "genmakemodel: genmake failed"
378                  cp genmake_* genmake.tr_log $CDIR                  cp genmake.log genmake_* genmake.tr_log $CDIR
379                  return 1                  return 1
380              else              else
381                  echo "successful"                  echo "successful"
# Line 386  makeclean() Line 396  makeclean()
396              #if test -e $OUTPUTFILE ; then rm -f $OUTPUTFILE ; fi              #if test -e $OUTPUTFILE ; then rm -f $OUTPUTFILE ; fi
397              if test -r Makefile ; then              if test -r Makefile ; then
398                  printf 'clean build-dir: make Clean ... '                  printf 'clean build-dir: make Clean ... '
                 rm -f Makefile.old  
399                  $MAKE Clean >> make.tr_log 2>&1                  $MAKE Clean >> make.tr_log 2>&1
400                  RETVAL=$?                  RETVAL=$?
401                  if test "x$RETVAL" != x0 ; then                  if test "x$RETVAL" != x0 ; then
402                      tail make.tr_log                      tail make.tr_log
403                      echo "makeclean: \"make Clean\" failed"                      echo "makeclean: \"make Clean\" failed"
404                      cp make.tr_log $CDIR"/make.tr_log"                      cp make.tr_log genmake.log genmake.tr_log $CDIR
405                      return 1                      return 1
406                  fi                  fi
407                  echo successful                  echo successful
# Line 441  makedependmodel() Line 450  makedependmodel()
450              if test "x$RETVAL" != x0 ; then              if test "x$RETVAL" != x0 ; then
451                  tail make.tr_log                  tail make.tr_log
452                  echo "makedependmodel: make depend failed"                  echo "makedependmodel: make depend failed"
453                  cp make.tr_log $CDIR"/make.tr_log"                  cp make.tr_log genmake.log genmake.tr_log $CDIR
454                  return 1                  return 1
455              else              else
456                  echo successful                  echo successful
# Line 481  makemodel() Line 490  makemodel()
490              if test "x$RETVAL" != x0 ; then              if test "x$RETVAL" != x0 ; then
491                  tail make.tr_log                  tail make.tr_log
492                  echo failed                  echo failed
493                  cp make.tr_log $CDIR"/make.tr_log"                  cp make.tr_log genmake.log genmake.tr_log $CDIR
494                  rm -f $EXECUTABLE                  rm -f $EXECUTABLE
495                  return 1                  return 1
496              else              else
# Line 492  makemodel() Line 501  makemodel()
501      )      )
502  }  }
503    
504    mk_mpi_size()
505    {
506        # mk_mpi_size input_file output_file proc_Nb
507        #
508        # make new SIZE.h (=output_file) from SIZE.h_mpi (=input_file)
509        #     for an MPI build with no more than proc_Nb processors ;
510        # return the effective number of processors.
511    
512        inp=$1
513        out=$2
514        np=$3
515        tmp=TTT.$$
516    
517        px=`grep "^     & *nPx *=" $inp | sed "s/^     & *nPx *= *//" | sed 's/, *$//'`
518        py=`grep "^     & *nPy *=" $inp | sed "s/^     & *nPy *= *//" | sed 's/, *$//'`
519        sx=`grep "^     & *nSx *=" $inp | sed "s/^     & *nSx *= *//" | sed 's/, *$//'`
520        sy=`grep "^     & *nSy *=" $inp | sed "s/^     & *nSy *= *//" | sed 's/, *$//'`
521    
522        #- find the largest divisor of input_file proc Nb, but not larger than $np
523        pp=0
524        i=1
525        while [ $i -le $px ] ; do
526          if [ `expr $px % $i` -eq 0 ] ; then
527            j=1
528            while [ $j -le $py ] ; do
529              if [ `expr $py % $j` -eq 0 ] ; then
530                ij=`expr $i \* $j`
531                if [ $ij -gt $pp ] ; then
532                  if [ $ij -le $np ] ; then
533                    ix=$i ; jy=$j ; pp=$ij
534                    #echo "  ix,jy= $ix,$jy"
535                  fi
536                fi
537              fi
538              j=`expr $j + 1`
539            done
540          fi
541          i=`expr $i + 1`
542        done
543    
544        #- create new SIZE.h type file:
545        sx=`expr $sx \* $px / $ix`
546        sy=`expr $sy \* $py / $jy`
547        if [ $verbose -gt 1 ]; then
548            echo " px,py,np= $px,$py,$np : New MPI size: px,py= $ix,$jy : sx,sy= $sx,$sy"
549        fi
550        sed "/^     \& *nPx *=/s/[0-9]*,/$ix,/" $inp > $tmp
551        sed "/^     \& *nPy *=/s/[0-9]*,/$jy,/" $tmp > $out
552        sed "/^     \& *nSx *=/s/[0-9]*,/$sx,/" $out > $tmp
553        sed "/^     \& *nSy *=/s/[0-9]*,/$sy,/" $tmp > $out
554        rm -f $tmp
555        return $pp
556    }
557    
558  symlink_mpifiles()  symlink_mpifiles()
559  {  {
560      # Put special links so that MPI specific files are used      # Put special links so that MPI specific files are used
# Line 500  symlink_mpifiles() Line 563  symlink_mpifiles()
563    
564      dir=$1      dir=$1
565      code_dir=$2      code_dir=$2
566      BUILD_DIR=$dir/$3      build_dir=$dir/$3
     CODE_DIR=$dir/$code_dir  
567    
568      # These are files that should replace their counter-part when using -mpi      # These are files that should replace their counter-part when using -mpi
569      MPI_FILES=`(cd $CODE_DIR; find . -name "*_mpi" -print)`      MPI_FILES=`(cd $dir/$code_dir; find . -name "*_mpi" -print)`
570    
571      #  Is this an MPI run?      for ii in $MPI_FILES ; do
572      if test "x$MPI" = xt ; then          i=`echo $ii | sed 's:^\./::'`
573          # YES: We symbolically link these files to the build          name=`echo $i | sed 's:_mpi::'`
574          # dir so long as there is no real file in place          file="../$code_dir/$i"
575          for ii in $MPI_FILES ; do          if test $name = 'SIZE.h' ; then file="SIZE.h.mpi" ; fi
576              i=`echo $ii | sed 's:^\./::'`  
577              name=`echo $i | sed 's:_mpi::' `          #  Is this an MPI run?
578              cmp $CODE_DIR/$i $BUILD_DIR/$name > /dev/null 2>&1          if test "x$MPI" = x0 ; then
579              RETVAL=$?              # NO: We undo any _mpi symbolically linked files
580              if test "x$RETVAL" != x0 ; then              if test -L $build_dir/$name ; then
581                  if ! test -f $BUILD_DIR/$i ; then                  ( cd $build_dir ; cmp $name $file > /dev/null 2>&1 )
                     #echo Linking $name to $i  
                     (cd $BUILD_DIR; ln -sf ../$code_dir/$i $name)  
                 fi  
             fi  
         done  
     else  
         # NO: We undo any _mpi symbolically linked files  
         for ii in $MPI_FILES ; do  
             i=`echo $ii | sed 's:^\./::'`  
             name=`echo $i | sed 's:_mpi::' `  
             if test -L $BUILD_DIR/$name ; then  
                 cmp $BUILD_DIR/$name "../$code_dir/$name"_mpi > /dev/null 2>&1  
582                  RETVAL=$?                  RETVAL=$?
583                  if test "x$RETVAL" = x0 ; then                  if test "x$RETVAL" = x0 ; then
584                      #echo Un-linking $name from $linktarg                      if [ $verbose -gt 1 ]; then
585                      rm -f $BUILD_DIR/$name                          echo "  Un-linking $name from ../$code_dir" ; fi
586                        rm -f $build_dir/$name
587                  fi                  fi
588              fi              fi
589          done          else
590      fi              # YES: We symbolically link these files to the build
591                # dir so long as there is no real file in place
592                ( cd $build_dir ; cmp $name $file > /dev/null 2>&1 )
593                RETVAL=$?
594                if [ $verbose -gt 1 ]; then echo "  cmp $name $file returns: $RETVAL" ; fi
595                if test "x$RETVAL" != x0 ; then
596                    if test -h $build_dir/$name ; then rm -f $build_dir/$name ; fi
597                    if test ! -r $build_dir/$name ; then
598                        if [ $verbose -gt 1 ]; then echo "  Linking $name to $file" ; fi
599                        (cd $build_dir; ln -sf $file $name)
600                    fi
601                fi
602            fi
603        done
604  }  }
605    
606  linkdata()  linkdata()
# Line 554  linkdata() Line 617  linkdata()
617                if test -r "../"$1"/"$xx ; then                if test -r "../"$1"/"$xx ; then
618                  # found 1 _mpi sfx file in 1rst input dir and it is readable                  # found 1 _mpi sfx file in 1rst input dir and it is readable
619                  yy=`echo $xx | sed 's:\.mpi$::'`                  yy=`echo $xx | sed 's:\.mpi$::'`
620                  if test "x$MPI" = "xt" ; then                  if test "x$MPI" = "x0" ; then
621                  # mpi test: remove symbolic link & link _mpi sfx file                      # not mpi test: remove symbolic link
622                        if test -h $yy ; then rm -f $yy ; fi
623                    else
624                        # mpi test: remove symbolic link & link .mpi sfx file
625                      if test -h $yy ; then rm -f $yy ; fi                      if test -h $yy ; then rm -f $yy ; fi
626                      if test ! -r $yy ; then                      if test ! -r $yy ; then
627                          ln -sf "../"$1"/"$xx $yy ;                          ln -sf "../"$1"/"$xx $yy ;
628                          printf " $xx" 1>&2                          printf " $xx" 1>&2
629                      fi                      fi
                 else  
                 # not mpi test: remove symbolic link  
                     if test -h $yy ; then rm -f $yy ; fi  
630                  fi                  fi
631                fi                fi
632              done              done
# Line 611  runmodel() Line 674  runmodel()
674  {  {
675      # runmodel directory      # runmodel directory
676      #      #
677      #  runs "$COMMAND in "directory"      #  runs $COMMAND in "directory"
678      #  (where "$COMMAND" is relative to "directory")      #  (where "$COMMAND" is relative to "directory")
679      (      (
680          cd $1          cd $1
681          printf 'runmodel in %s ... ' $1          printf 'runmodel in %s ... ' $1
682          if test -L $EXECUTABLE ; then          if test -L $EXECUTABLE ; then
683            if test -x "../"$builddir"/"$EXECUTABLE ; then            if test -x "../"$builddir"/"$EXECUTABLE ; then
684              diff -q $EXECUTABLE "../"$builddir"/"$EXECUTABLE > /dev/null 2>&1              cmp $EXECUTABLE "../"$builddir"/"$EXECUTABLE > /dev/null 2>&1
685              outD=$? ; if test $outD != 0 ; then rm -f $EXECUTABLE ; fi              outD=$? ; if test "x$outD" != x0 ; then rm -f $EXECUTABLE ; fi
686            else rm -f $EXECUTABLE            else rm -f $EXECUTABLE
687            fi            fi
688          fi          fi
# Line 627  runmodel() Line 690  runmodel()
690              echo " link" $EXECUTABLE "from dir ../"$builddir > run.log_tmp              echo " link" $EXECUTABLE "from dir ../"$builddir > run.log_tmp
691              ln -sf "../"$builddir"/"$EXECUTABLE .              ln -sf "../"$builddir"/"$EXECUTABLE .
692          fi          fi
693            if test "x$MPI" != x0 ; then
694                #- adjust the MPI run command with the right number of Procs
695                #echo "COMMAND='$COMMAND'"
696                COMMAND=`echo $COMMAND | sed "s/ TR_NPROC / $NPROC_MPI /"`
697                #COMMAND=`echo $COMMAND | sed "s/ TR_MFILE / $MFILE_MPI /"`
698                #echo "COMMAND='$COMMAND'"
699            fi
700          if test ! -x $EXECUTABLE ; then          if test ! -x $EXECUTABLE ; then
701                  rm -f $RUNLOG ; touch $RUNLOG                  rm -f $RUNLOG ; touch $RUNLOG
702                  if test -f run.log_tmp ; then cat run.log_tmp >> $RUNLOG ; fi                  if test -f run.log_tmp ; then cat run.log_tmp >> $RUNLOG ; fi
# Line 652  runmodel() Line 722  runmodel()
722                      echo " no previous $RUNLOG: assume NORMAL END" >> $RUNLOG 2>&1                      echo " no previous $RUNLOG: assume NORMAL END" >> $RUNLOG 2>&1
723                  fi                  fi
724              fi              fi
725              ENDVAL=`cat $RUNLOG | grep -v 'ABNORMAL END' | grep -c 'NORMAL END'`              #ENDVAL=`cat $RUNLOG | grep -v 'ABNORMAL END' | grep -c 'NORMAL END'`
726                ENDVAL=`tail $OUTPUTFILE | grep -c 'PROGRAM MAIN: Execution ended Normally'`
727          fi          fi
728          rm -f run.log_tmp          rm -f run.log_tmp
729          if [ $RETVAL -eq 0 -a $ENDVAL -gt 0 ] ; then          if [ $RETVAL -eq 0 -a $ENDVAL -gt 0 ] ; then
# Line 843  if test "x$CC" = x ; then Line 914  if test "x$CC" = x ; then
914      CC=cc      CC=cc
915  fi  fi
916  JOBS=  JOBS=
917  MPI=f  MPI=0
918  MULTI_THREAD=f  MULTI_THREAD=f
919  OUTDIR=  OUTDIR=
920  DELDIR=  DELDIR=
# Line 855  OADM= Line 926  OADM=
926  # list of pTracers to check for monitor output  # list of pTracers to check for monitor output
927  PTRACERS_NUM="1 2 3 4 5"  PTRACERS_NUM="1 2 3 4 5"
928    
929  MATCH_CRIT=13  MATCH_CRIT=10
930    
931  printf "parsing options...  "  printf "parsing options...  "
932    
# Line 955  for ac_option ; do Line 1026  for ac_option ; do
1026          -postclean | --postclean | -pc | --pc)          -postclean | --postclean | -pc | --pc)
1027              POSTCLEAN=t ;;              POSTCLEAN=t ;;
1028    
1029          -mpi) MPI=t ;;          -mpi | --mpi) MPI=2 ;;
1030            -MPI | --MPI) ac_prev=MPI ;;
1031            -MPI=* | --MPI=*) MPI=$ac_optarg ;;
1032    
1033          -mth) MULTI_THREAD=t ;;          -mth) MULTI_THREAD=t ;;
1034    
# Line 1071  OUTPUTFILE=$ref_outp Line 1144  OUTPUTFILE=$ref_outp
1144  if test "x$COMMAND" = x ; then  if test "x$COMMAND" = x ; then
1145      COMMAND="./$EXECUTABLE > $OUTPUTFILE"      COMMAND="./$EXECUTABLE > $OUTPUTFILE"
1146  fi  fi
1147  if test "x$MPI" = xt ; then  if test "x$MPI" != x0 ; then
1148      OUTPUTFILE="STDOUT.0000"      OUTPUTFILE="STDOUT.0000"
1149  fi  fi
1150    
# Line 1164  if test "x$OPTFILE" != xNONE ; then Line 1237  if test "x$OPTFILE" != xNONE ; then
1237      fi      fi
1238  else  else
1239      echo >> $SUMMARY      echo >> $SUMMARY
1240      echo "No \"OPTFILE\" was explicitly specified by testreport," >> $SUMMARY      echo "No \"OPTFILE\" was specified ; genmake2 found and uses:" >> $SUMMARY
1241      echo "   so the genmake default will be used." >> $SUMMARY      #-note: to be filled later after 1rst run
1242  fi  fi
1243  echo  echo
1244  echo >> $SUMMARY  echo >> $SUMMARY
# Line 1229  for dir in $TESTDIRS ; do Line 1302  for dir in $TESTDIRS ; do
1302          (   cd $BUILD_DIR          (   cd $BUILD_DIR
1303              rm -f $EXECUTABLE *.bak              rm -f $EXECUTABLE *.bak
1304              rm -f genmake_state genmake_*optfile genmake.log              rm -f genmake_state genmake_*optfile genmake.log
1305              rm -f genmake.tr_log make.tr_log              rm -f SIZE.h.mpi genmake.tr_log make.tr_log
1306          )          )
1307          if test -d $dir/$rundir/CVS ; then          if test -d $dir/$rundir/CVS ; then
1308              echo -n '  --- dir:' $dir/$rundir ': '              echo -n '  --- dir:' $dir/$rundir ': '
# Line 1254  for dir in $TESTDIRS ; do Line 1327  for dir in $TESTDIRS ; do
1327    
1328      # Check for specific files for particular type of run      # Check for specific files for particular type of run
1329    
1330      if test ! -r $CODE_DIR"/SIZE.h_mpi" -a "x$MPI" = "xt" ; then      if test "x$MPI" != "x0" ; then
1331          echo "can't find \"$CODE_DIR/SIZE.h_mpi\" -- skipping $dir"          if test -r $CODE_DIR"/SIZE.h_mpi" ; then
1332          continue              #- create new SIZE.h with no more than '$MPI' Procs
1333                mk_mpi_size $CODE_DIR"/SIZE.h_mpi" $BUILD_DIR"/tr_size.mpi" $MPI
1334                NPROC_MPI=$?
1335                (   cd $BUILD_DIR
1336                    if test -r SIZE.h.mpi ; then
1337                        cmp tr_size.mpi SIZE.h.mpi > /dev/null 2>&1 ; RETVAL=$?
1338                    else RETVAL=1
1339                    fi
1340                    if test "x$RETVAL" = x0 ; then
1341                        rm -f tr_size.mpi
1342                    else
1343                        rm -f SIZE.h.mpi ; mv tr_size.mpi SIZE.h.mpi
1344                    fi
1345                )
1346            else
1347                echo "can't find \"$CODE_DIR/SIZE.h_mpi\" -- skipping $dir"
1348                continue
1349            fi
1350      fi      fi
1351      if test ! -r $dir"/input/eedata.mth" -a "x$MULTI_THREAD" = "xt" ; then      if test ! -r $dir"/input/eedata.mth" -a "x$MULTI_THREAD" = "xt" ; then
1352          echo "can't find \"$dir/input/eedata.mth\" -- skipping $dir"          echo "can't find \"$dir/input/eedata.mth\" -- skipping $dir"
1353          continue          continue
1354      fi      fi
1355      if test "x$MPI" = "xt" -a "x$MULTI_THREAD" = "xt" ; then      if test "x$MPI" != "x0" -a "x$MULTI_THREAD" = "xt" ; then
1356        retv=`check_eedata $CODE_DIR"/SIZE.h_mpi" $dir"/input/eedata.mth"`          retv=`check_eedata $BUILD_DIR"/SIZE.h.mpi" $dir"/input/eedata.mth"`
1357        if test $retv != 0 ; then          if test $retv != 0 ; then
1358          echo "input/eedata.mth tiling misfit -- skipping $dir"              echo "input/eedata.mth tiling misfit -- skipping $dir"
1359          continue              continue
1360        fi          fi
1361      fi      fi
1362    
1363      #  Check whether there are "extra runs" for this testdir      #  Check whether there are "extra runs" for this testdir
# Line 1283  for dir in $TESTDIRS ; do Line 1373  for dir in $TESTDIRS ; do
1373          if test -f $outf -a -r $outf ; then          if test -f $outf -a -r $outf ; then
1374            if test "x$MULTI_THREAD" = "xt" ; then            if test "x$MULTI_THREAD" = "xt" ; then
1375              if test -r $dir"/"$exd"/eedata.mth" ; then              if test -r $dir"/"$exd"/eedata.mth" ; then
1376                if test "x$MPI" = "xt" ; then                if test "x$MPI" = "x0" ; then
1377                  retv=`check_eedata $CODE_DIR"/SIZE.h_mpi" $dir"/"$exd"/eedata.mth"`                  extra_runs="$extra_runs $name"
1378                  else
1379                    retv=`check_eedata $BUILD_DIR"/SIZE.h.mpi" $dir"/"$exd"/eedata.mth"`
1380                  if test $retv = 0 ; then                  if test $retv = 0 ; then
1381                      extra_runs="$extra_runs $name"                      extra_runs="$extra_runs $name"
1382                  else                  else
1383                      echo $exd"/eedata.mth tiling misfit -- skipping $dir"                      echo $exd"/eedata.mth tiling misfit -- skipping $dir"
1384                  fi                  fi
               else  
                 extra_runs="$extra_runs $name"  
1385                fi                fi
1386              #else echo $dir"/"$exd"/eedata.mth: not found"              #else echo $dir"/"$exd"/eedata.mth: not found"
1387              fi              fi
# Line 1341  for dir in $TESTDIRS ; do Line 1431  for dir in $TESTDIRS ; do
1431          echo "$fres" | sed 's/ 99/ --/g' | sed 's/  > />/' | sed 's/  < /</' >> $SUMMARY          echo "$fres" | sed 's/ 99/ --/g' | sed 's/  > />/' | sed 's/  < /</' >> $SUMMARY
1432          touch $locDIR"/summary.txt"          touch $locDIR"/summary.txt"
1433          echo "fresults='$fres'" | sed 's/ 99/ --/g' >> $locDIR"/summary.txt"          echo "fresults='$fres'" | sed 's/ 99/ --/g' >> $locDIR"/summary.txt"
         echo "MACH='$MACH'" >> $locDIR"/summary.txt"  
         echo "UNAMEA='$UNAMEA'" >> $locDIR"/summary.txt"  
         echo "DATE='$DATE'" >> $locDIR"/summary.txt"  
1434          echo "tdir='$dir'" >> $locDIR"/summary.txt"          echo "tdir='$dir'" >> $locDIR"/summary.txt"
1435          if test "x$ADM" = xt ; then          if test "x$ADM" = xt ; then
1436              head -1 $dir/$builddir/taf_ad.log >> $locDIR"/summary.txt"              head -1 $dir/$builddir/taf_ad.log >> $locDIR"/summary.txt"
# Line 1371  for dir in $TESTDIRS ; do Line 1458  for dir in $TESTDIRS ; do
1458              echo "$fres" | sed 's/ 99/ --/g' | sed 's/  > />/' | sed 's/  < /</' >> $SUMMARY              echo "$fres" | sed 's/ 99/ --/g' | sed 's/  > />/' | sed 's/  < /</' >> $SUMMARY
1459              touch $locDIR"/summary.txt"              touch $locDIR"/summary.txt"
1460              echo "fresults='$fres'" | sed 's/ 99/ --/g' >> $locDIR"/summary.txt"              echo "fresults='$fres'" | sed 's/ 99/ --/g' >> $locDIR"/summary.txt"
             echo "MACH='$MACH'" >> $locDIR"/summary.txt"  
             echo "UNAMEA='$UNAMEA'" >> $locDIR"/summary.txt"  
             echo "DATE='$DATE'" >> $locDIR"/summary.txt"  
1461              echo "tdir='$dir.$ex'" >> $locDIR"/summary.txt"              echo "tdir='$dir.$ex'" >> $locDIR"/summary.txt"
1462              if test "x$ADM" = xt ; then              if test "x$ADM" = xt ; then
1463                  head -1 $dir/$builddir/taf_ad.log >> $locDIR"/summary.txt"                  head -1 $dir/$builddir/taf_ad.log >> $locDIR"/summary.txt"
# Line 1390  for dir in $TESTDIRS ; do Line 1474  for dir in $TESTDIRS ; do
1474              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/^# //'`
1475              echo "from '$dir/$builddir/Makefile', extract:" > $DRESULTS/genmake_state              echo "from '$dir/$builddir/Makefile', extract:" > $DRESULTS/genmake_state
1476              sed -n '/^# executed by:/,+1 p' $dir/$builddir/Makefile >> $DRESULTS/genmake_state              sed -n '/^# executed by:/,+1 p' $dir/$builddir/Makefile >> $DRESULTS/genmake_state
1477              echo $mkOpt >> $DRESULTS/genmake_state              echo " $mkOpt" >> $DRESULTS/genmake_state
1478                if test "x$OPTFILE" = xNONE ; then
1479                    eval $mkOpt
1480                    sed "/^No \"OPTFILE\" was specified ; genmake2/a\  OPTFILE=${OPTFILE}"\
1481                            $SUMMARY > tr_0.tmp_log
1482                    RETVAL=$?
1483                    if test "x$RETVAL" = x0 ; then rm -f $SUMMARY
1484                            cp tr_0.tmp_log $SUMMARY
1485                    else rm -f tr_0.tmp_log
1486                    fi
1487                fi
1488                gmkLog=$dir/$builddir/genmake.log
1489                grep '^Get compiler version using:' $gmkLog > /dev/null 2>&1
1490                RETVAL=$?
1491                if test "x$RETVAL" = x0 ; then
1492                    echo "from '$gmkLog', extract compiler version:" >> $DRESULTS/genmake_state
1493                    sed -n '/Get compiler version/,/<-- compiler version/p' $gmkLog \
1494                           | grep -v '^... compiler version ' > tr_1.tmp_log
1495                    sed -n '1,/^$/p' tr_1.tmp_log | sed '/^$/d' | sed 's/^./ &/' \
1496                            >> $DRESULTS/genmake_state
1497                    rm -f tr_1.tmp_log
1498                fi
1499          fi          fi
1500      fi      fi
1501      #postclean $dir/$builddir      #postclean $dir/$builddir

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

  ViewVC Help
Powered by ViewVC 1.1.22