|
Boost-Build : |
Subject: Re: [Boost-build] Adding command line arguments to tests
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2009-11-17 04:17:08
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.
Try:
run tests/add.cpp : --log_format=XML --log_level=test_suite ;
- Volodya
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