Boost logo

Boost-Build :

Subject: [Boost-build] Adding command line arguments to tests
From: Christian Auby (christian_at_[hidden])
Date: 2009-11-17 04:09:58


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.

Christian


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