This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: gcc_build


I checked in this patch to contrib/gcc_build.  The -t option was
broken.  I've added a -x option for people who need to pass special
options to "make check", like "RUNTESTFLAGS=...".

Tested on i686-pc-linux-gnu, hppa2.0w-hp-hpux11.11,
hppa64-hp-hpux11.11, ia64-hp-hpux11.22, and ia64-hp-hpux11.23.

Installed on the mainline and on the branch.

--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com

2003-08-21  Mark Mitchell  <mark@codesourcery.com>

	* gcc_build: Fix handling of -t option.  Add -x option.

Index: gcc_build
===================================================================
RCS file: /cvs/gcc/gcc/contrib/gcc_build,v
retrieving revision 1.11
diff -c -5 -p -r1.11 gcc_build
*** gcc_build	11 Jun 2001 21:13:36 -0000	1.11
--- gcc_build	21 Aug 2003 18:57:42 -0000
*************** gcc_build        [-c configure_options] 
*** 64,73 ****
--- 64,74 ----
  		 [-m make_boot_options]
  		 [-o objdir]
  		 [-u username]
  		 [-p protocol]
  		 [-t tarfile]
+                  [-x make_check_options]
  		 [bootstrap]
  		 [build]
  		 [checkout]
  		 [configure]
  		 [export]
*************** test_gcc() {
*** 172,182 ****
      changedir ${DESTINATION}
      # Go to the object directory.
      changedir ${OBJDIR}
  
      echo "Running tests...  This will take a while."
!     ${MAKE} -k check
      ${DESTINATION}/contrib/test_summary
  }
  
  # Export the GCC source tree.
  
--- 173,183 ----
      changedir ${DESTINATION}
      # Go to the object directory.
      changedir ${OBJDIR}
  
      echo "Running tests...  This will take a while."
!     eval \${MAKE} -k ${MAKE_CHECK_OPTIONS} check
      ${DESTINATION}/contrib/test_summary
  }
  
  # Export the GCC source tree.
  
*************** TARFILE="${HOME}/dev/gcc.tgz"
*** 229,240 ****
  
  # Options to pass to configure.
  CONFIGURE_OPTIONS=
  # The `make' program.
  MAKE=${MAKE:-make}
! # Options to pass to make.
  MAKE_BOOTSTRAP_OPTIONS=
  
  # Modes of operation
  BOOTSTRAP=0
  CHECKOUT=0
  CONFIGURE=0
--- 230,243 ----
  
  # Options to pass to configure.
  CONFIGURE_OPTIONS=
  # The `make' program.
  MAKE=${MAKE:-make}
! # Options to pass to "make bootstrap".
  MAKE_BOOTSTRAP_OPTIONS=
+ # Options to pass to "make check".
+ MAKE_CHECK_OPTIONS=
  
  # Modes of operation
  BOOTSTRAP=0
  CHECKOUT=0
  CONFIGURE=0
*************** UPDATE=0
*** 246,263 ****
  ########################################################################
  # Main Program
  ########################################################################
  
  # Parse the options.
! while getopts "c:d:m:o:p:t:u:" ARG; do
      case $ARG in
      c)    CONFIGURE_OPTIONS="${OPTARG}";;
      d)    DESTINATION="${OPTARG}";;
      m)    MAKE_BOOTSTRAP_OPTIONS="${OPTARG}";;
      o)    OBJDIR="${OPTARG}";;
      p)    CVS_PROTOCOL="${OPTARG}";;
!     t)    CVS_TARGFILE="${OPTARG}";;
      u)    CVS_USERNAME="${OPTARG}";;
      \?)   usage;;
      esac
  done
  shift `expr ${OPTIND} - 1`
--- 249,267 ----
  ########################################################################
  # Main Program
  ########################################################################
  
  # Parse the options.
! while getopts "c:d:m:o:p:t:u:x:" ARG; do
      case $ARG in
      c)    CONFIGURE_OPTIONS="${OPTARG}";;
      d)    DESTINATION="${OPTARG}";;
      m)    MAKE_BOOTSTRAP_OPTIONS="${OPTARG}";;
      o)    OBJDIR="${OPTARG}";;
      p)    CVS_PROTOCOL="${OPTARG}";;
!     t)    TARFILE="${OPTARG}";;
!     x)    MAKE_CHECK_OPTIONS="${OPTARG}";;
      u)    CVS_USERNAME="${OPTARG}";;
      \?)   usage;;
      esac
  done
  shift `expr ${OPTIND} - 1`


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]