How to pass a pathlist in RUNTESTFLAGS?

IainS developer@sandoe-acoustics.co.uk
Fri Jul 9 17:24:00 GMT 2010


On 9 Jul 2010, at 17:28, Manuel López-Ibáñez wrote:

> On 9 July 2010 16:55, Doug Semler <dougsemler@gmail.com> wrote:
>> On Fri, Jul 9, 2010 at 9:12 AM, IainS <developer@sandoe-acoustics.co.uk 
>> > wrote:
>>> Hi,
>>>
>>> I want to do this:
>>>
>>>  RUNTESTFLAGS="--target_board=unix/-foo/-bar/--sysroot=/path/to/ 
>>> somewhere "
>>>
>>> I've tried escaping the path with \ ' inverting the " and ' ..   
>>> all to no
>>> avail ..
>>>
>>>  what gets passed is -foo -bar --sysroot= -mpath -mto -msomewhere ..
>>>
>>> google hasn't helped..
>>>
>>> anyone know what incantation I've missed?
>>> cheers,
>>> Iain
>>>
>>
>> IIRC i needed something like (can't remember offhand if this is
>> exactly it, but it's something like this...)
>>
>> RUNTESTFLAGS="CFLAGS_FOR_TARGET=--sysroot=/path/to/somewhere
>> --target_board=unix/-foo/-bar"
>>
>
> Please, once you find out, add this info to http://gcc.gnu.org/wiki/Testing_GCC

I really must sign up ... ;-)

FWIW:

RUNTESTFLAGS="CFLAGS_FOR_TARGET=--sysroot=/path/to/somewhere
--target_board=unix/-foo/-bar"

does work  but maybe:

RUNTESTFLAGS="CFLAGS_FOR_TARGET='$CFLAGS_FOR_TARGET   --sysroot=/path/ 
to/somewhere'  --target_board=unix/-foo/-bar"

is safer? -- CFLAGS_FOR_TARGET could already be set, I guess.

both work in the context I needed.

thanks,
Iain




More information about the Gcc mailing list