From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13762 invoked by alias); 31 Jan 2003 16:41:41 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 13730 invoked from network); 31 Jan 2003 16:41:40 -0000 Received: from unknown (HELO disaster.jaj.com) (66.93.21.106) by 172.16.49.205 with SMTP; 31 Jan 2003 16:41:40 -0000 Received: (from phil@localhost) by disaster.jaj.com (8.11.4/8.11.4) id h0VGfdM05292; Fri, 31 Jan 2003 11:41:39 -0500 Date: Fri, 31 Jan 2003 18:00:00 -0000 From: Phil Edwards To: Janis Johnson Cc: gcc@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: Re: script to automate binary search for regression Message-ID: <20030131164139.GA5085@disaster.jaj.com> References: <20021216092350.A1531@us.ibm.com> <20021216214341.A30672@disaster.jaj.com> <20021218114420.A11056@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021218114420.A11056@us.ibm.com> User-Agent: Mutt/1.5.3i X-SW-Source: 2003-01/txt/msg01775.txt.bz2 Digging this out of the archives... On Wed, Dec 18, 2002 at 11:44:20AM -0800, Janis Johnson wrote: > On Mon, Dec 16, 2002 at 09:43:41PM -0500, Phil Edwards wrote: > > On Mon, Dec 16, 2002 at 09:23:50AM -0800, Janis Johnson wrote: > > > The length of the script is mostly due to comments and lots of error > > > checking. I've tested it fairly thoroughly. If you find this helpful, > > > let me know and I'll ask about adding it to contrib. > > > > Yes, please. This is very useful. We should probably also check in an > > initial "config file", and some simple skeleton scripts for the cvs calls. > > And yes, by "we" I mean I'll help once this one's checked in. :-) > > > > > #! /bin/sh > > > > Since the "let" builtin is a POSIX thing, and it's been made woefully clear > > that GCC can't depend on /bin/sh actually being POSIX, this script should > > either a) document that fact, or b) just use a different shell. > > I don't know if Phil has authority to say this can go into contrib, but I don't know either. > here's the latest version of my framework for hunting regressions, with > a few more nifty ways to cut down a search. It works for bash, but > probably not other shells, and depends on an extension in GNU date. > > This script doesn't do the real work; that's done by scripts the user > provides to get the sources, do the build, and run the test, which will > vary greatly depending on the kind of bug being hunted. I can put > examples of those somewhere. > > May I add this to contrib? > > Janis Johnson > IBM Linux Technology Center, OzLabs North > > --- /tmp/empty Wed Dec 18 11:32:07 2002 > +++ contrib/reg_search Wed Dec 18 11:30:32 2002 > @@ -0,0 +1,273 @@ > +#! /bin/bash > + [...] How about making a contrib/reg_search directory, checking the script in there, along with some sample config files? Any objections from anyone? Phil -- I would therefore like to posit that computing's central challenge, viz. "How not to make a mess of it," has /not/ been met. - Edsger Dijkstra, 1930-2002