* Testsuite custom environment (second try at posting)
@ 2003-05-21 12:01 Stephen Biggs
2003-07-15 23:55 ` Ben Elliston
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Biggs @ 2003-05-21 12:01 UTC (permalink / raw)
To: GCC list
(My first message didn't get received. Sorry if any duplicates.)
I am trying to run 'make check-gcc' and wish to define my own set of
TORTURE_OPTIONS (specifically to do only "-O0"). I have tried different
things and nothing seems to work. E.g.:
$ export TORTURE_OPTIONS="{ { -O0 } }" ; make check-gcc
$ make TORTURE_OPTIONS="{ { -O0 } }" check-gcc
The environment variable set is ignored and the full list of options is
applied. What am I doing wrong? Is this a problem with how I specify it
to the shell? This forces me to edit gcc/testsuite/lib/c-torture.exp
and put my own options in instead of what is there for TORTURE_OPTIONS.
Also, how do I specify
set_board_info gcc,no_label_values 1;
on the command line? At the moment, I have a changed
gcc/testsuite/config/default.exp where I add this line to the end, and
this is not right.
Thanks for any advice.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Testsuite custom environment (second try at posting)
2003-05-21 12:01 Testsuite custom environment (second try at posting) Stephen Biggs
@ 2003-07-15 23:55 ` Ben Elliston
0 siblings, 0 replies; 2+ messages in thread
From: Ben Elliston @ 2003-07-15 23:55 UTC (permalink / raw)
To: gcc
Hi Stephen
I don't know if you've worked this out in the six weeks since you
posted your message :-) Anyway, it looks like no one answered ..
Stephen Biggs <xyzzy@hotpop.com> writes:
> I am trying to run 'make check-gcc' and wish to define my own set of
> TORTURE_OPTIONS (specifically to do only "-O0"). I have tried different
> things and nothing seems to work. E.g.:
> $ export TORTURE_OPTIONS="{ { -O0 } }" ; make check-gcc
> $ make TORTURE_OPTIONS="{ { -O0 } }" check-gcc
> The environment variable set is ignored and the full list of options
> is applied. What am I doing wrong? Is this a problem with how I
> specify it to the shell? This forces me to edit
> gcc/testsuite/lib/c-torture.exp and put my own options in instead of
> what is there for TORTURE_OPTIONS.
The problem is that c-torture.exp does not access TORTURE_OPTIONS from
the environment, but from the Tcl global variable space. The easiest
way to alter this it to use something like this in your site-local
`site.exp' file:
global TORTURE_OPTIONS
set TORTURE_OPTIONS [list {-O0}]
> Also, how do I specify set_board_info gcc,no_label_values 1; on the
> command line? At the moment, I have a changed
> gcc/testsuite/config/default.exp where I add this line to the end,
> and this is not right.
The right way is to define a new board that is derived from (say)
`unix.exp' but modifies the board settings you are interested in. You
can then specify that target board with --target_board in your
RUNTESTFLAGS.
Cheers, Ben
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-07-15 23:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-21 12:01 Testsuite custom environment (second try at posting) Stephen Biggs
2003-07-15 23:55 ` Ben Elliston
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).