|
Boost-Build : |
Subject: Re: [Boost-build] Adding command line arguments to tests
From: Christian Auby (christian_at_[hidden])
Date: 2009-11-17 04:22:11
Thanks, that seems to work. I wasn't too far off as I tried
rule run tests/add.cpp : --log_format=XML --log_level=test_suite ;
This doesn't produce any errors so I didn't know what was going on.
Christian
Vladimir Prus wrote:
> 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
>
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
>
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