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 12:10:18


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


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