Boost logo

Boost-Build :

Subject: Re: [Boost-build] really dumb bjam question
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2012-07-14 12:16:26


AMDG

On 07/13/2012 03:23 PM, Robert Ramey wrote:
> I have some jamfile.v2 files in the test directory.
>
> In order to get the result I want, I need to invoke bjam like this:
>
> bjam toolset=gcc --dump-tests --preserve_test_targets. The problem
> is that one doesn't always remember the extra switches.
>
> Is there a way I can include the functionalty of
> the --dump-tests --preserve_test_targets
> inside the jamfile itself?
>
> So that then I could just use
>
> bjam toolset gcc
>
> and it would do what I wanted it to?
>

preserve-test-targets is a feature, so

project : requirements <preserve-test-targets>on ;

should work.

There's no good way to set --dump-tests from
a Jamfile. It can be done by editing ARGV:
module { ARGV += --dump-tests ; }
but I don't recommend this, since Boost.Build
usually assumes that ARGV doesn't change.

Also, please remember that even if you always
want to use these options, other people running
your tests may not want them.

In Christ,
Steven Watanabe


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk