Adding a --log_level="message" runtime option to a Boost.test test-suite

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. Thanks Paul --- Paul A. Bristow, Prizet Farmhouse, Kendal LA8 8AB UK +44 1539 561830 07714330204 pbristow@hetp.u-net.com

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" ] Best, Vicente

-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Vicente J. Botet Escriba Sent: Friday, October 14, 2011 5:10 PM To: boost@lists.boost.org 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)? Thanks Paul

Le 14/10/11 18:42, Paul A. Bristow a écrit :
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Vicente J. Botet Escriba Sent: Friday, October 14, 2011 5:10 PM To: boost@lists.boost.org 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

Complete jamfile attached. Many thanks. Paul
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Vicente J. Botet Escriba Sent: Friday, October 14, 2011 8:51 PM To: boost@lists.boost.org Subject: Re: [boost] Adding a --log_level="message" runtime option to a Boost.test test-suite
Le 14/10/11 18:42, Paul A. Bristow a écrit :
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
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Le 15/10/11 11:52, Paul A. Bristow a écrit :
Complete jamfile attached.
Have you tried to give a specific target-name test-suite "multiprecision EFX numerical" : [ run ./numerical_test/multiprecision_test.cpp ../src/backends/float/mp_float.cpp ... ./real/cases/test_case_00052_factorial2.cpp : --log_level="message" : : : multiprecision_EFX_numerical # run ( sources + : args * : input-files * : requirements * : target-name ? : default-build * ) ] Vicente

-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Vicente J. Botet Escriba Sent: Saturday, October 15, 2011 3:16 PM To: boost@lists.boost.org Subject: Re: [boost] Adding a --log_level="message" runtime option to a Boost.test test-suite
Le 15/10/11 11:52, Paul A. Bristow a écrit :
Complete jamfile attached.
Have you tried to give a specific target-name
test-suite "multiprecision EFX numerical" : [ run ./numerical_test/multiprecision_test.cpp ../src/backends/float/mp_float.cpp ... ./real/cases/test_case_00052_factorial2.cpp
: --log_level="message" : : : multiprecision_EFX_numerical
# run ( sources + : args * : input-files * : requirements * : target-name ? : default-build * ) ]
OK thanks - I was confused by the positional syntax. This now works for me. test-suite "multiprecision EFX numerical test" : [ run numerical_test.cpp # sources ../real/cases/test_case_0000x_overflow_underflow.cpp ... ../test_case_base.cpp : # args* --log_level="message" : # input_files* : # requirements* : # target-name? : # default build multiprecision_EFX_numerical ] ; Paul --- Paul A. Bristow, Prizet Farmhouse, Kendal LA8 8AB UK +44 1539 561830 07714330204 pbristow@hetp.u-net.com
participants (2)
-
Paul A. Bristow
-
Vicente J. Botet Escriba