Boost logo

Boost-Build :

Subject: Re: [Boost-build] Adding command line arguments to tests
From: Johan Nilsson (r.johan.nilsson_at_[hidden])
Date: 2009-11-17 06:59:27


Christian Auby wrote:
> I'm trying to use boost.test with boost.build. I need to pass
> "--log_format=XML --log_level=test_suite" to the test to get XML that
> is
> parsable.
>
> The first rule I tried was this:
>
> unit-test add_test
> : tests/add.cpp
> ;
>
> The test works fine but doesn't output XML. I then read on the mailing
> list archives that I should use the run rule, as per:
>
> rule run ( sources + : args * : input-files * : requirements * :
> target-name ?
> : default-build * )
>
> It is unclear to me how I would create my rule from this. Help is
> appreciated.

You could also set e.g. BOOST_TEST_LOG_FORMAT=xml and
BOOST_TEST_LOG_LEVEL=test_suite in the environment, and continue to use the
unit-test rule.

HTH / Johan


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