/[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.151 by jmc, Wed Dec 15 17:46:30 2010 UTC revision 1.152 by jmc, Fri Dec 17 17:32:24 2010 UTC
# Line 1166  if test "x$OPTFILE" != xNONE ; then Line 1166  if test "x$OPTFILE" != xNONE ; then
1166      fi      fi
1167  else  else
1168      echo >> $SUMMARY      echo >> $SUMMARY
1169      echo "No \"OPTFILE\" was explicitly specified by testreport," >> $SUMMARY      echo "No \"OPTFILE\" was specified ; genmake2 found and uses:" >> $SUMMARY
1170      echo "   so the genmake default will be used." >> $SUMMARY      #-note: to be filled later after 1rst run
1171  fi  fi
1172  echo  echo
1173  echo >> $SUMMARY  echo >> $SUMMARY
# Line 1393  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                if test "x$OPTFILE" = xNONE ; then
1397                    eval $mkOpt
1398                    sed "/^No \"OPTFILE\" was specified ; genmake2/a\  OPTFILE=${OPTFILE}"\
1399                            $SUMMARY > tr_0.tmp_log
1400                    RETVAL=$?
1401                    if test "x$RETVAL" = x0 ; then rm -f $SUMMARY
1402                            cp tr_0.tmp_log $SUMMARY
1403                    else rm -f tr_0.tmp_log
1404                    fi
1405                fi
1406              gmkLog=$dir/$builddir/genmake.log              gmkLog=$dir/$builddir/genmake.log
1407              grep '^Get compiler version using:' $gmkLog > /dev/null 2>&1              grep '^Get compiler version using:' $gmkLog > /dev/null 2>&1
1408              RETVAL=$?              RETVAL=$?
1409              if test "x$RETVAL" = x0 ; then              if test "x$RETVAL" = x0 ; then
1410                  echo "from '$gmkLog', extract compiler version:" >> $DRESULTS/genmake_state                  echo "from '$gmkLog', extract compiler version:" >> $DRESULTS/genmake_state
1411                  sed -n '/Get compiler version/,/<-- compiler version/p' $gmkLog \                  sed -n '/Get compiler version/,/<-- compiler version/p' $gmkLog \
1412                         | grep -v '^... compiler version ' > tr_vers.tmp_log                         | grep -v '^... compiler version ' > tr_1.tmp_log
1413                  sed -n '1,/^$/p' tr_vers.tmp_log | sed '/^$/d' | sed 's/^./ &/' \                  sed -n '1,/^$/p' tr_1.tmp_log | sed '/^$/d' | sed 's/^./ &/' \
1414                          >> $DRESULTS/genmake_state                          >> $DRESULTS/genmake_state
1415                  rm -f tr_vers.tmp_log                  rm -f tr_1.tmp_log
1416              fi              fi
1417          fi          fi
1418      fi      fi

Legend:
Removed from v.1.151  
changed lines
  Added in v.1.152

  ViewVC Help
Powered by ViewVC 1.1.22