Boost logo

Boost :

Subject: Re: [boost] Adding a --log_level="message" runtime option to a Boost.test test-suite
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2011-10-14 15:50:36


Le 14/10/11 18:42, Paul A. Bristow a écrit :
>
>> -----Original Message-----
>> From: boost-bounces_at_[hidden] [mailto:boost-bounces_at_[hidden]] On Behalf Of Vicente J.
>> Botet Escriba
>> Sent: Friday, October 14, 2011 5:10 PM
>> To: boost_at_[hidden]
>> Subject: Re: [boost] Adding a --log_level="message" runtime option to a Boost.test test-suite
>>
>>
>> Le 14/10/11 17:43, Paul A. Bristow a écrit :
>>> Can anyone tell me how to add a --log_level="message" runtime option to a Boost.Test
> test-suite.
>>> Running using VS project I have a Custom Build Step command line
>>>
>>> "$(TargetDir)$(TargetName).exe" --log_level="message"
>>>
>>> I'd like to replicate this in a jamfile :
>>>
>>> ...
>>> test-suite "multiprecision EFX numerical test" :
>>> [
>>> run numerical_test.cpp
>>> ]
>>> ;
>>>
>>> but adding --log_level="message" (and perhaps other Boost.test options as well).
>>>
>>> (I want this for all compilers of course, so placing in compile options doesn't seem right.)
>>>
>>> Suggestions most welcome.
>>>
>>>
>> Hi,
>>
>> the syntax for run is
>>
>> rule run ( sources + : args * : input-files * : requirements * : target-name ?
>> : default-build * )
>>
>> You can place your parameters as follows
>>
>> [ run numerical_test.cpp : --log_level="message" ]
> Thanks, the sounds plausible but
>
> test-suite "multiprecision EFX numerical test" :
> [
> run numerical_test.cpp
> : --log_level="message"
> :
> ../real/cases/test_case_0000x_overflow_underflow.cpp
>
> ... lots more .cpp files
> ../../src/utility/util_digit_scale.cpp
> ../test_case_base.cpp
> ]
> ;
>
>
> fails with this message
>
> error: at Jamfile.v2:55
> error: Names of input files must be sorted alphabetically
> error: due to internal limitations
>
> and this is after I've reordered the files in what appears to me to be alphabetically (but I'm not
> quite sure what that means - do the . and / count, or just the letters?)
>
> Or have I got my syntax muddled (again)?
>
I don't know if you shouldn't use the target-name parameter. Could you
post the complete jam command, from 'test-suite' to ';'?

Best,
Vicente


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk