From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11621 invoked by alias); 20 May 2003 21:44:22 -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 8234 invoked from network); 20 May 2003 21:42:42 -0000 Received: from unknown (HELO e33.co.us.ibm.com) (32.97.110.131) by sources.redhat.com with SMTP; 20 May 2003 21:42:42 -0000 Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.195.11]) by e33.co.us.ibm.com (8.12.9/8.12.2) with ESMTP id h4KLgfXD250072; Tue, 20 May 2003 17:42:41 -0400 Received: from unknown.host (d03av02.boulder.ibm.com [9.17.193.82]) by westrelay02.boulder.ibm.com (8.12.9/NCO/VER6.5) with ESMTP id h4KLgeHx081706; Tue, 20 May 2003 15:42:40 -0600 Received: (from janis@localhost) by unknown.host (8.9.3/8.9.3) id OAA27534; Tue, 20 May 2003 14:41:42 -0700 Date: Tue, 20 May 2003 22:00:00 -0000 From: Janis Johnson To: David Edelsohn Cc: Janis Johnson , Stephen Biggs , GCC list Subject: Re: Testsuite custom environment Message-ID: <20030520144141.A27221@us.ibm.com> References: <200305202115.RAA30208@makai.watson.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200305202115.RAA30208@makai.watson.ibm.com>; from dje@watson.ibm.com on Tue, May 20, 2003 at 05:15:56PM -0400 X-SW-Source: 2003-05/txt/msg01909.txt.bz2 On Tue, May 20, 2003 at 05:15:56PM -0400, David Edelsohn wrote: > >>>>> Janis Johnson writes: > > Janis> I've tried lots of different ways to get a variable passed through to > Janis> the testing tools and haven't yet figured out how to do it. For the > Janis> binary compatibility tests I gave up and had the Makefile write > Janis> particular variables to site.exp; ugly, but it did what I needed. If > Janis> there's a better way to do this, I'd like to know about it, too, and > Janis> then we can fix the documentation. > > Are > > --tool_opts > > and > RUNTESTFLAGS="" > > useful? > > --tool_opts can specify additional options that always are applied > to the commandline when invoking the tool, but not overriding existing > flags. > > RUNTESTFLAGS can specify those options in an environment variable, > e.g., when running from "make check". RUNTESTFLAGS is used to pass options to runtest; the list of those options can be seen with runtest --help. I've used --tool-opts to specify flags that are passed to the compiler (the "tool") for every invocation, but haven't figured out how to set environment variables that will be recognized by the .exp files. I suppose it would help to read the documentation for expect. Janis