/[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.9.2.10 by edhill, Sat Oct 4 14:33:58 2003 UTC revision 1.11 by edhill, Fri Oct 10 03:29:44 2003 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  #  #
3  #  $Header$  #  $Header$
4    #  $Name$
5  #  #
6    
7  usage()  usage()
# Line 186  genmakemodel() Line 187  genmakemodel()
187          GENMAKE2="$BASH ../../../tools/genmake2"          GENMAKE2="$BASH ../../../tools/genmake2"
188          (          (
189              cd $1;              cd $1;
             printf 'genmake ... ' 1>&2  
190              command="$GENMAKE2  -ds -m $MAKE --mods=../code"              command="$GENMAKE2  -ds -m $MAKE --mods=../code"
191              if test "x$OPTFILE" != xNONE ; then              if test "x$OPTFILE" != xNONE ; then
192                  command="$command --optfile=$OPTFILE"                  command="$command --optfile=$OPTFILE"
# Line 195  genmakemodel() Line 195  genmakemodel()
195              if test "x$IEEE" != x ; then              if test "x$IEEE" != x ; then
196                  command="$command -ieee"                  command="$command -ieee"
197              fi              fi
198                # echo "command: \"$command\""
199                printf 'genmake ... ' 1>&2
200              $command > make.log 2>&1              $command > make.log 2>&1
201              RETVAL=$?              RETVAL=$?
202              for i in genmake_state genmake_optfile genmake_local Makefile ; do              for i in genmake_state genmake_optfile genmake_local Makefile ; do
# Line 582  EOF Line 584  EOF
584    
585  NDIR=0  NDIR=0
586    
587    of_path=
588  if test "x$OPTFILE" != xNONE ; then  if test "x$OPTFILE" != xNONE ; then
589      if test -r $OPTFILE ; then      if test -r $OPTFILE ; then
590          OPTFILE=`pwd`"/$OPTFILE"          # get the path
591            path=${OPTFILE%/*}
592            if test "x$path" = x ; then
593                of_path=`pwd`
594            else
595                of_path=`( cd $path > /dev/null 2>&1 ; pwd )`
596            fi
597            file=${OPTFILE##*/}
598            OPTFILE=$of_path/$file
599        else
600            echo
601            echo "WARNING: can't read OPTFILE=\"$OPTFILE\" but will try to use it..."
602      fi      fi
603  fi  fi
604  echo  echo
# Line 638  for dir in $TESTDIRS ; do Line 652  for dir in $TESTDIRS ; do
652      #  Is this an MPI run?      #  Is this an MPI run?
653      if test "x$MPI" = xt ; then      if test "x$MPI" = xt ; then
654          FILES=$MPI_FILES          FILES=$MPI_FILES
655            endings="_mpi"
656      else      else
657          FILES=$NOMPI_FILES          FILES=$NOMPI_FILES
658            endings="_nompi"
659      fi      fi
660            
661      #  Check to see that we have the files      #  Check to see that we have the files
# Line 658  for dir in $TESTDIRS ; do Line 674  for dir in $TESTDIRS ; do
674      #  If we have the $FILES and they differ, copy the $FILES to $BUILD_DIR      #  If we have the $FILES and they differ, copy the $FILES to $BUILD_DIR
675      if test "x$have_files" = xt ; then      if test "x$have_files" = xt ; then
676          for i in $FILES ; do          for i in $FILES ; do
677              cmp $CODE_DIR/$i $BUILD_DIR/$i > /dev/null 2>&1              sstr="s|$endings||"
678                name=`echo $i | sed -e $sstr `
679                cmp $CODE_DIR/$i $BUILD_DIR/$name > /dev/null 2>&1
680              RETVAL=$?              RETVAL=$?
681              if test "x$RETVAL" != x0 ; then              if test "x$RETVAL" != x0 ; then
682                  cp $CODE_DIR/$i $BUILD_DIR/$i                  cp $CODE_DIR/$i $BUILD_DIR/$name
683              fi              fi
684          done          done
685      fi      fi

Legend:
Removed from v.1.9.2.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.22