/[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.136 by jmc, Mon Mar 8 16:36:20 2010 UTC revision 1.144 by jmc, Mon Nov 1 00:25:16 2010 UTC
# Line 33  usage() Line 33  usage()
33      echo "  (-adm|-ad)               perform an adjoint run"      echo "  (-adm|-ad)               perform an adjoint run"
34      echo "  (-oad)                   perform an OpenAD adjoint run"      echo "  (-oad)                   perform an OpenAD adjoint run"
35      echo "  (-command|-c) STRING     command to run"      echo "  (-command|-c) STRING     command to run"
36        echo "  (-makedepend|-md) STRING command to use for \"makedepend\""
37      echo "  (-make|-m) STRING        command to use for \"make\""      echo "  (-make|-m) STRING        command to use for \"make\""
38      echo "                             (DEF=\"make\")"      echo "                             (DEF=\"make\")"
39      echo "  (-odir) STRING           used to build output directory name"      echo "  (-odir) STRING           used to build output directory name"
# Line 40  usage() Line 41  usage()
41      echo "  (-ptracers|-ptr) STRING  specify which ptracers to test"      echo "  (-ptracers|-ptr) STRING  specify which ptracers to test"
42      echo "                             (DEF=\"1 2 3 4 5\")"      echo "                             (DEF=\"1 2 3 4 5\")"
43      echo "  (-match) NUMBER          Matching Criteria (number of digits)"      echo "  (-match) NUMBER          Matching Criteria (number of digits)"
44      echo "                             (DEF=\"12\")"      echo "                             (DEF=\"$MATCH_CRIT\")"
45      echo "  (-j) JOBS                use \"make -j JOBS\" for parallel builds"      echo "  (-j) JOBS                use \"make -j JOBS\" for parallel builds"
46      echo "  (-clean)                 *ONLY* run \"make CLEAN\""      echo "  (-clean)                 *ONLY* run \"make CLEAN\""
47      echo "  (-norun|-nr)             skip the \"runmodel\" stage (stop after make)"      echo "  (-norun|-nr)             skip the \"runmodel\" stage (stop after make)"
# Line 231  testoutput_run() Line 232  testoutput_run()
232            listVar=" $sVar "`echo "$listVar " | sed "s/ $sVar / /g"`            listVar=" $sVar "`echo "$listVar " | sed "s/ $sVar / /g"`
233          fi          fi
234          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
235          echo "listVar='$listVar'" > $CDIR"/summary.txt"          echo "listVar='$listVar'" > $locDIR"/summary.txt"
236          allargs=""          allargs=""
237          for xx in $listVar          for xx in $listVar
238          do          do
# Line 317  genmakemodel() Line 318  genmakemodel()
318          (          (
319              cd $1;              cd $1;
320              command="$GENMAKE2  -ds -m $MAKE"              command="$GENMAKE2  -ds -m $MAKE"
321                if test "x$MKDEPEND" != x ; then
322                    command="$command -makedepend=$MKDEPEND"
323                fi
324              if test "x$ADM" = xt ; then              if test "x$ADM" = xt ; then
325                  command="$command --mods=../code_ad"                  command="$command --mods=../code_ad"
326              elif test "x$OADM" = xt ; then              elif test "x$OADM" = xt ; then
# Line 353  genmakemodel() Line 357  genmakemodel()
357                  command="$command -pcls"                  command="$command -pcls"
358              fi              fi
359              fi              fi
360              printf 'genmake ... ' 1>&2              printf 'genmake ... '
             # $command > make.log 2>&1  
361              eval $command > make.log 2>&1              eval $command > make.log 2>&1
362              RETVAL=$?              RETVAL=$?
363              #  Reduce the size of the testing emails!              #  Reduce the size of the testing emails!
364              head -100 Makefile > $CDIR/Makefile_head              head -100 Makefile > $CDIR/Makefile_head
365              if test "x$RETVAL" != x0 ; then              if test "x$RETVAL" != x0 ; then
366                  tail make.log                  tail make.log
367                  echo "genmakemodel: genmake failed" 1>&2                  echo "genmakemodel: genmake failed"
368                  cp genmake_* make.log $CDIR                  cp genmake_* make.log $CDIR
369                  return 1                  return 1
370              else              else
371                  echo "successful" 1>&2                  echo "successful"
372              fi              fi
373          )          )
374      fi      fi
# Line 381  makeclean() Line 384  makeclean()
384              cd $1;              cd $1;
385              #if test -e $OUTPUTFILE ; then rm -f $OUTPUTFILE ; fi              #if test -e $OUTPUTFILE ; then rm -f $OUTPUTFILE ; fi
386              if test -r Makefile ; then              if test -r Makefile ; then
387                  printf 'clean build-dir: make Clean ... ' 2>&1                  printf 'clean build-dir: make Clean ... '
388                  $MAKE Clean >> make.log 2>&1                  $MAKE Clean >> make.log 2>&1
389                  RETVAL=$?                  RETVAL=$?
390                  if test "x$RETVAL" != x0 ; then                  if test "x$RETVAL" != x0 ; then
391                      tail make.log                      tail make.log
392                      echo "makeclean: \"make Clean\" failed" 1>&2                      echo "makeclean: \"make Clean\" failed"
393                      cp make.log $CDIR"/make.log"                      cp make.log $CDIR"/make.log"
394                      return 1                      return 1
395                  fi                  fi
396                  echo successful 1>&2                  echo successful
397              else              else
398                  echo ''                  echo ''
399              fi              fi
# Line 407  run_clean() Line 410  run_clean()
410      else      else
411          (          (
412              cd $1;              cd $1;
413              printf 'clean run-dir ... ' 2>&1              printf 'clean run-dir ... '
414              # part of what is done after "make clean" when doing "make CLEAN"              # part of what is done after "make clean" when doing "make CLEAN"
415              find . -name "*.meta" -exec rm {} \;              find . -name "*.meta" -exec rm {} \;
416              find . -name "*.data" -exec rm {} \;              find . -name "*.data" -exec rm {} \;
# Line 416  run_clean() Line 419  run_clean()
419              rm -f $EXECUTABLE *.txt STD* *diagnostics.log datetime              rm -f $EXECUTABLE *.txt STD* *diagnostics.log datetime
420              rm -rf mnc_test_*              rm -rf mnc_test_*
421              rm -f *_MIT_CE_000.opt0000 costfunction*0000              rm -f *_MIT_CE_000.opt0000 costfunction*0000
422              echo successful 1>&2              echo successful
423              exit 0              exit 0
424          )          )
425      fi      fi
# Line 430  makedependmodel() Line 433  makedependmodel()
433      else      else
434          (          (
435              cd $1;              cd $1;
436              printf 'make depend ... ' 1>&2              printf 'make depend ... '
437              $MAKE depend >> make.log 2>&1              $MAKE depend >> make.log 2>&1
438              RETVAL=$?              RETVAL=$?
439              if test "x$RETVAL" != x0 ; then              if test "x$RETVAL" != x0 ; then
440                  tail make.log                  tail make.log
441                  echo "makedependmodel: make depend failed" 1>&2                  echo "makedependmodel: make depend failed"
442                  cp make.log $CDIR"/make.log"                  cp make.log $CDIR"/make.log"
443                  return 1                  return 1
444              else              else
445                  echo successful 1>&2                  echo successful
446              fi              fi
447          )          )
448      fi      fi
# Line 460  makemodel() Line 463  makemodel()
463      else      else
464          cd $1;          cd $1;
465          if test -r Makefile ; then          if test -r Makefile ; then
466              printf 'make ... ' 1>&2              printf 'make ... '
467              if test "x$ADM" = xt ; then              if test "x$ADM" = xt ; then
468                  $MAKE adall >> make.log 2>&1                  $MAKE adall >> make.log 2>&1
469              elif test "x$OADM" = xt ; then              elif test "x$OADM" = xt ; then
# Line 475  makemodel() Line 478  makemodel()
478              RETVAL=$?              RETVAL=$?
479              if test "x$RETVAL" != x0 ; then              if test "x$RETVAL" != x0 ; then
480                  tail make.log                  tail make.log
481                  echo failed 1>&2                  echo failed
482                  cp make.log $CDIR"/make.log"                  cp make.log $CDIR"/make.log"
483                  rm -f $EXECUTABLE                  rm -f $EXECUTABLE
484                  return 1                  return 1
485              else              else
486                  echo successful 1>&2                  echo successful
487              fi              fi
488          fi          fi
489      fi      fi
# Line 543  linkdata() Line 546  linkdata()
546      if test -d $1 ; then      if test -d $1 ; then
547          (          (
548              cd $1 ; shift              cd $1 ; shift
549                echo 'linkdata from dirs:' $*
550              inpMPI=`(cd ../$1 ; find . -name "*.mpi" -print | sed 's:^\./::')`              inpMPI=`(cd ../$1 ; find . -name "*.mpi" -print | sed 's:^\./::')`
551              for xx in $inpMPI ; do              for xx in $inpMPI ; do
552                if test -r "../"$1"/"$xx ; then                if test -r "../"$1"/"$xx ; then
# Line 553  linkdata() Line 557  linkdata()
557                      if test -h $yy ; then rm -f $yy ; fi                      if test -h $yy ; then rm -f $yy ; fi
558                      if test ! -r $yy ; then                      if test ! -r $yy ; then
559                          ln -sf "../"$1"/"$xx $yy ;                          ln -sf "../"$1"/"$xx $yy ;
560                          printf "$xx " 1>&2                          printf " $xx" 1>&2
561                      fi                      fi
562                  else                  else
563                  # not mpi test: remove symbolic link                  # not mpi test: remove symbolic link
# Line 568  linkdata() Line 572  linkdata()
572                      if test -h eedata ; then rm -f eedata ; fi                      if test -h eedata ; then rm -f eedata ; fi
573                      if test ! -r eedata ; then                      if test ! -r eedata ; then
574                          ln -sf "../"$1"/eedata.mth" eedata ;                          ln -sf "../"$1"/eedata.mth" eedata ;
575                          printf 'eedata.mth ' 1>&2                          printf ' eedata.mth' 1>&2
576                      fi                      fi
577                  else                  else
578                  # not multi-threaded test: remove eedata symbolic link                  # not multi-threaded test: remove eedata symbolic link
# Line 578  linkdata() Line 582  linkdata()
582              prevDir='NONE'              prevDir='NONE'
583              for ldir in $* ; do              for ldir in $* ; do
584                  if test -d "../"$ldir -a $ldir != $prevDir ; then                  if test -d "../"$ldir -a $ldir != $prevDir ; then
585                      printf 'ldir='${ldir} 1>&2                      printf " ldir=${ldir}:" 1>&2
586                      files=`( cd "../"$ldir ; ls -1 | grep -v CVS )`                      files=`( cd "../"$ldir ; ls -1 | grep -v CVS )`
587                      for i in $files ; do                      for i in $files ; do
588                          if test ! -d "../"$ldir/$i ; then                          if test ! -d "../"$ldir/$i ; then
# Line 588  linkdata() Line 592  linkdata()
592                              fi                              fi
593                          fi                          fi
594                      done                      done
595                        printf ' ;' 1>&2
596                      if test -x "../"$ldir"/"prepare_run ; then                      if test -x "../"$ldir"/"prepare_run ; then
597                          "../"$ldir"/"prepare_run                          "../"$ldir"/"prepare_run 1>&2
598                        else
599                            echo '' 1>&2
600                      fi                      fi
                     printf ' ; ' 1>&2  
601                  fi                  fi
602                  prevDir=$ldir                  prevDir=$ldir
603              done              done
# Line 607  runmodel() Line 613  runmodel()
613      #  (where "$COMMAND" is relative to "directory")      #  (where "$COMMAND" is relative to "directory")
614      (      (
615          cd $1          cd $1
616          printf 'runmodel in %s ...' $1 1>&2          printf 'runmodel in %s ... ' $1
         # make output.txt  
         echo  
617          if test -L $EXECUTABLE ; then          if test -L $EXECUTABLE ; then
618            if test -x "../"$builddir"/"$EXECUTABLE ; then            if test -x "../"$builddir"/"$EXECUTABLE ; then
619              diff -q $EXECUTABLE "../"$builddir"/"$EXECUTABLE > /dev/null 2>&1              diff -q $EXECUTABLE "../"$builddir"/"$EXECUTABLE > /dev/null 2>&1
# Line 650  runmodel() Line 654  runmodel()
654          fi          fi
655          rm -f run.log_tmp          rm -f run.log_tmp
656          if [ $RETVAL -eq 0 -a $ENDVAL -gt 0 ] ; then          if [ $RETVAL -eq 0 -a $ENDVAL -gt 0 ] ; then
657              tail $RUNLOG              echo successful
658              echo successful 1>&2              printf '=> output from running in %s :\n' $1 1>&2
659                tail $RUNLOG | sed 's/^.*/> &/g' 1>&2
660              # === Reduce the size of the testing emails!              # === Reduce the size of the testing emails!
661              #cp $OUTPUTFILE $CDIR"/"$OUTPUTFILE              #cp $OUTPUTFILE $CDIR"/"$OUTPUTFILE
662              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
663              return 0              return 0
664          elif [ $RETVAL -ne 0 -a $ENDVAL -gt 0 ] ; then          elif [ $RETVAL -ne 0 -a $ENDVAL -gt 0 ] ; then
665              #-- for some weird cases (run is finihed but with error code)              #-- for some weird cases (run is finihed but with error code)
666              tail $RUNLOG              echo 'finished with error (run:' $RETVAL ' end:' $ENDVAL ')'
667              echo finished with error '(run:' $RETVAL ' end:' $ENDVAL ')' 1>&2              printf '=> output from running in %s :\n' $1 1>&2
668                tail $RUNLOG | sed 's/^.*/> &/g' 1>&2
669              return 0              return 0
670          else          else
671              tail $RUNLOG              echo 'failed (run:' $RETVAL ' end:' $ENDVAL ')'
672              echo failed '(run:' $RETVAL ' end:' $ENDVAL ')' 1>&2              printf '=> output from running in %s :\n' $1 1>&2
673                tail $RUNLOG | sed 's/^.*/> &/g' 1>&2
674              cp $RUNLOG $CDIR"/"$RUNLOG              cp $RUNLOG $CDIR"/"$RUNLOG
675              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
676              return 1              return 1
# Line 826  MPACKDIR="../tools/mpack-1.6" Line 833  MPACKDIR="../tools/mpack-1.6"
833  HAVE_MPACK=  HAVE_MPACK=
834  MPACK=  MPACK=
835  COMMAND=  COMMAND=
836    MKDEPEND=
837  if test "x$MAKE" = x ; then  if test "x$MAKE" = x ; then
838      MAKE=make      MAKE=make
839  fi  fi
# Line 900  for ac_option ; do Line 908  for ac_option ; do
908          -command=* | --command=* | -c=* | --c=*)          -command=* | --command=* | -c=* | --c=*)
909              COMMAND=$ac_optarg ;;              COMMAND=$ac_optarg ;;
910    
911            -makedepend | --makedepend | -md | --md)
912                ac_prev=MKDEPEND ;;
913            -makedepend=* | --makedepend=* | -md=* | --md=*)
914                MKDEPEND=$ac_optarg ;;
915    
916          -make | --make | -m | --m)          -make | --make | -m | --m)
917              ac_prev=MAKE ;;              ac_prev=MAKE ;;
918          -make=* | --make=* | -m=* | --m=*)          -make=* | --make=* | -m=* | --m=*)
# Line 1002  else Line 1015  else
1015      EXECUTABLE="mitgcmuv"      EXECUTABLE="mitgcmuv"
1016  fi  fi
1017    
1018    xx=`echo $TESTDIRS | awk '{print $1}'`
1019  if test "x$TESTDIRS" = x ; then  if test "x$TESTDIRS" = x ; then
1020      LIST=`scandirs results/$ref_outp`      LIST=`scandirs results/$ref_outp`
1021    elif test $xx = 'start_from' ; then
1022        xx=`echo $TESTDIRS | awk '{print $2}'`
1023        LIST=`scandirs results/$ref_outp | sed -n "/$xx/,$ p"`
1024  else  else
1025      #- expand group of experiments:      #- expand group of experiments:
1026      LIST=" "      LIST=" "
# Line 1155  if test "x$ADM" = x -a "x$OADM" = x; the Line 1172  if test "x$ADM" = x -a "x$OADM" = x; the
1172      then line_0="default  "$MATCH_CRIT ;      then line_0="default  "$MATCH_CRIT ;
1173      else line_0="default "$MATCH_CRIT ; fi      else line_0="default "$MATCH_CRIT ; fi
1174         line_0="$line_0  ----T-----  ----S-----  ----U-----  ----V-----"         line_0="$line_0  ----T-----  ----S-----  ----U-----  ----V-----"
 #   line_0="            ----T-----  ----S-----  ----U-----  ----V-----"  
1175      line_1="G D M    c        m  s        m  s        m  s        m  s"      line_1="G D M    c        m  s        m  s        m  s        m  s"
1176      line_2="E p a R  g  m  m  e  .  m  m  e  .  m  m  e  .  m  m  e  ."      line_2="E p a R  g  m  m  e  .  m  m  e  .  m  m  e  .  m  m  e  ."
1177      line_3="N n k u  2  i  a  a  d  i  a  a  d  i  a  a  d  i  a  a  d"      line_3="N n k u  2  i  a  a  d  i  a  a  d  i  a  a  d  i  a  a  d"
# Line 1188  N n k u  s  a Line 1204  N n k u  s  a
1204    
1205  EOF  EOF
1206  fi  fi
1207    echo "-------------------------------------------------------------------------------"
1208    
1209  #  ...and each test directory...  #  ...and each test directory...
1210  for dir in $TESTDIRS ; do  for dir in $TESTDIRS ; do
# Line 1196  for dir in $TESTDIRS ; do Line 1213  for dir in $TESTDIRS ; do
1213      builddir="build"      builddir="build"
1214      if test ! -d $dir/$builddir ; then mkdir $dir/$builddir ; fi      if test ! -d $dir/$builddir ; then mkdir $dir/$builddir ; fi
1215      rundir="run"      rundir="run"
1216        pfxdir="tr_$rundir"
1217      if test ! -d $dir/$rundir ; then      if test ! -d $dir/$rundir ; then
1218          rundir=$builddir          rundir=$builddir
1219      fi      fi
# Line 1207  for dir in $TESTDIRS ; do Line 1225  for dir in $TESTDIRS ; do
1225          echo -n '  --- dir:' $BUILD_DIR ': '          echo -n '  --- dir:' $BUILD_DIR ': '
1226          makeclean $BUILD_DIR          makeclean $BUILD_DIR
1227          rm -f $BUILD_DIR/$EXECUTABLE          rm -f $BUILD_DIR/$EXECUTABLE
1228            rm -f $BUILD_DIR/genmake_state $BUILD_DIR/genmake_*optfile
1229            rm -f $BUILD_DIR/genmake_warnings $BUILD_DIR/genmake_errors
1230          if test -d $dir/$rundir/CVS ; then          if test -d $dir/$rundir/CVS ; then
1231              echo -n '  --- dir:' $dir/$rundir ': '              echo -n '  --- dir:' $dir/$rundir ': '
1232              run_clean $dir/$rundir              run_clean $dir/$rundir
1233          fi          fi
1234          trdir=`( cd $dir ; find . -type d -name "tr_run.*" -print | sed 's/^.\///')`          trdir=`( cd $dir ; find . -type d -name "$pfxdir.*" -print | sed 's/^.\///')`
1235          ttd=`echo $trdir | wc -w`          ttd=`echo $trdir | wc -w`
1236          if test $ttd != 0 ; then          if test $ttd != 0 ; then
1237              echo '  --- rm dir:' $trdir              echo '  --- rm dir:' $trdir
# Line 1277  for dir in $TESTDIRS ; do Line 1297  for dir in $TESTDIRS ; do
1297          fi          fi
1298      done      done
1299    
     echo "-------------------------------------------------------------------------------"  
1300      echo      echo
1301      if test "x$extra_runs" = "x" ; then      if test "x$extra_runs" = "x" ; then
1302         echo "Experiment:  $dir"         echo "Experiment:  $dir"
# Line 1289  for dir in $TESTDIRS ; do Line 1308  for dir in $TESTDIRS ; do
1308      results=$EMPTY_RESULTS      results=$EMPTY_RESULTS
1309    
1310      #  Create an output dir for each OPTFILE/tdir combination      #  Create an output dir for each OPTFILE/tdir combination
1311      rel_CDIR=$DRESULTS"/"$dir      locDIR=$DRESULTS"/"$dir
1312      mkdir $rel_CDIR      mkdir $locDIR
1313      CDIR=`pwd`"/$rel_CDIR"      CDIR=`pwd`"/$locDIR"
1314    
1315      if test "x$NORUN" = xt ; then      if test "x$NORUN" = xt ; then
1316              run=N              run=N
1317          genmakemodel $dir/$builddir && genmake=Y \          genmakemodel $dir/$builddir && genmake=Y \
1318              && makeclean $dir/$builddir \              && makeclean $dir/$builddir \
             && run_clean $dir/$rundir \  
1319              && symlink_mpifiles $dir $code_dir $builddir \              && symlink_mpifiles $dir $code_dir $builddir \
1320              && makedependmodel $dir/$builddir && makedepend=Y \              && makedependmodel $dir/$builddir && makedepend=Y \
1321              && makemodel $dir/$builddir && make=Y              && makemodel $dir/$builddir && make=Y
1322      else      else
1323          genmakemodel $dir/$builddir && genmake=Y \          genmakemodel $dir/$builddir && genmake=Y \
1324              && makeclean $dir/$builddir \              && makeclean $dir/$builddir \
             && run_clean $dir/$rundir \  
1325              && symlink_mpifiles $dir $code_dir $builddir \              && symlink_mpifiles $dir $code_dir $builddir \
1326              && makedependmodel $dir/$builddir && makedepend=Y \              && makedependmodel $dir/$builddir && makedepend=Y \
1327              && makemodel $dir/$builddir && make=Y \              && makemodel $dir/$builddir && make=Y \
1328              && linkdata $dir/$rundir $inputdir input \              && run_clean $dir/$rundir \
1329                && linkdata $dir/$rundir $inputdir \
1330              && runmodel $dir/$rundir && run=Y \              && runmodel $dir/$rundir && run=Y \
1331              && results=`testoutput_run $dir $rundir $ref_outp`              && results=`testoutput_run $dir $rundir $ref_outp`
1332      fi      fi
   
1333      #echo "results='$results'"      #echo "results='$results'"
1334      echo  
1335          fres=`formatresults $dir ${genmake:-N} ${makedepend:-N} ${make:-N} ${run:-N} $results`          fres=`formatresults $dir ${genmake:-N} ${makedepend:-N} ${make:-N} ${run:-N} $results`
1336          echo          echo 1>&2
1337          echo "$fres" | sed 's/ 99/ --/g' | sed 's/  > />/' | sed 's/  < /</' >> $SUMMARY          echo "$fres" | sed 's/ 99/ --/g' | sed 's/  > />/' | sed 's/  < /</' >> $SUMMARY
1338          touch $CDIR"/summary.txt"          touch $locDIR"/summary.txt"
1339          echo "fresults='$fres'" | sed 's/ 99/ --/g' >> $CDIR"/summary.txt"          echo "fresults='$fres'" | sed 's/ 99/ --/g' >> $locDIR"/summary.txt"
1340          echo "MACH='$MACH'" >> $CDIR"/summary.txt"          echo "MACH='$MACH'" >> $locDIR"/summary.txt"
1341          echo "UNAMEA='$UNAMEA'" >> $CDIR"/summary.txt"          echo "UNAMEA='$UNAMEA'" >> $locDIR"/summary.txt"
1342          echo "DATE='$DATE'" >> $CDIR"/summary.txt"          echo "DATE='$DATE'" >> $locDIR"/summary.txt"
1343          echo "tdir='$dir'" >> $CDIR"/summary.txt"          echo "tdir='$dir'" >> $locDIR"/summary.txt"
1344          if test "x$ADM" = xt ; then          if test "x$ADM" = xt ; then
1345              head -1 $dir/$builddir/taf_ad.log >> $CDIR"/summary.txt"              head -1 $dir/$builddir/taf_ad.log >> $locDIR"/summary.txt"
1346              grep -A3 'Seconds in section "ALL' $dir/$rundir/$OUTPUTFILE \              grep -A3 'Seconds in section "ALL' $dir/$rundir/$OUTPUTFILE \
1347                                  >> $CDIR"/summary.txt"                                  >> $locDIR"/summary.txt"
1348          fi          fi
1349    
1350          for ex in $extra_runs ; do          for ex in $extra_runs ; do
# Line 1336  for dir in $TESTDIRS ; do Line 1353  for dir in $TESTDIRS ; do
1353              #  reference output file              #  reference output file
1354              refExOut=`echo $ref_outp | sed "s/\./.${ex}./g"`              refExOut=`echo $ref_outp | sed "s/\./.${ex}./g"`
1355              #  Create an output dir for each OPTFILE/tdir.ex combination              #  Create an output dir for each OPTFILE/tdir.ex combination
1356              rel_CDIR=$DRESULTS"/"$dir"."$ex              locDIR=$DRESULTS"/"$dir"."$ex
1357              mkdir $rel_CDIR              mkdir $locDIR
1358              CDIR=`pwd`"/$rel_CDIR"              CDIR=`pwd`"/$locDIR"
1359              test ! -e "$dir/tr_run.$ex" && mkdir "$dir/tr_run.$ex"              test ! -e "$dir/$pfxdir.$ex" && mkdir "$dir/$pfxdir.$ex"
1360              run_clean $dir/tr_run.$ex              run_clean $dir/$pfxdir.$ex
1361              linkdata $dir/tr_run.$ex $inputdir.$ex $inputdir input              linkdata $dir/$pfxdir.$ex $inputdir.$ex $inputdir
1362              runmodel $dir/tr_run.$ex && run=Y \              runmodel $dir/$pfxdir.$ex && run=Y \
1363              && results=`testoutput_run $dir tr_run.$ex $refExOut`              && results=`testoutput_run $dir $pfxdir.$ex $refExOut`
1364              fres=`formatresults $dir ${genmake:-N} ${makedepend:-N} ${make:-N} ${run:-N} $results`              fres=`formatresults $dir ${genmake:-N} ${makedepend:-N} ${make:-N} ${run:-N} $results`
1365              fres="$fres.$ex"              fres="$fres.$ex"
1366              echo              echo 1>&2
1367              echo "$fres" | sed 's/ 99/ --/g' | sed 's/  > />/' | sed 's/  < /</' >> $SUMMARY              echo "$fres" | sed 's/ 99/ --/g' | sed 's/  > />/' | sed 's/  < /</' >> $SUMMARY
1368              touch $CDIR"/summary.txt"              touch $locDIR"/summary.txt"
1369              echo "fresults='$fres'" | sed 's/ 99/ --/g' >> $CDIR"/summary.txt"              echo "fresults='$fres'" | sed 's/ 99/ --/g' >> $locDIR"/summary.txt"
1370              echo "MACH='$MACH'" >> $CDIR"/summary.txt"              echo "MACH='$MACH'" >> $locDIR"/summary.txt"
1371              echo "UNAMEA='$UNAMEA'" >> $CDIR"/summary.txt"              echo "UNAMEA='$UNAMEA'" >> $locDIR"/summary.txt"
1372              echo "DATE='$DATE'" >> $CDIR"/summary.txt"              echo "DATE='$DATE'" >> $locDIR"/summary.txt"
1373              echo "tdir='$dir.$ex'" >> $CDIR"/summary.txt"              echo "tdir='$dir.$ex'" >> $locDIR"/summary.txt"
1374              if test "x$ADM" = xt ; then              if test "x$ADM" = xt ; then
1375                  head -1 $dir/$builddir/taf_ad.log >> $CDIR"/summary.txt"                  head -1 $dir/$builddir/taf_ad.log >> $locDIR"/summary.txt"
1376                  grep -A3 'Seconds in section "ALL' $dir/tr_run.$ex/$OUTPUTFILE \                  grep -A3 'Seconds in section "ALL' $dir/$pfxdir.$ex/$OUTPUTFILE \
1377                                     >> $CDIR"/summary.txt"                                     >> $locDIR"/summary.txt"
1378              fi              fi
1379              if test "x$POSTCLEAN" = xt ; then              if test "x$POSTCLEAN" = xt ; then
1380                  run_clean $dir/tr_run.$ex                  run_clean $dir/$pfxdir.$ex
1381              fi              fi
1382          done          done
1383    
1384        if test -f $DRESULTS"/"genmake_state ; then : ; else
1385            if test -f $dir/$builddir/Makefile ; then
1386                mkOpt=`grep '^# OPTFILE=' $dir/$builddir/Makefile 2>/dev/null | head -1 | sed 's/^# //'`
1387                echo "from '$dir/$builddir/Makefile', extract:" > $DRESULTS/genmake_state
1388                sed -n '/^# executed by:/,+1 p' $dir/$builddir/Makefile >> $DRESULTS/genmake_state
1389                echo $mkOpt >> $DRESULTS/genmake_state
1390            fi
1391        fi
1392      #postclean $dir/$builddir      #postclean $dir/$builddir
1393      if test "x$POSTCLEAN" = xt ; then      if test "x$POSTCLEAN" = xt ; then
1394          makeclean $dir/$builddir \          makeclean $dir/$builddir \

Legend:
Removed from v.1.136  
changed lines
  Added in v.1.144

  ViewVC Help
Powered by ViewVC 1.1.22