Boost logo

Boost-Build :

From: Kevin Wheatley (hxpro_at_[hidden])
Date: 2006-08-10 10:08:55


Artem Alimarine wrote:
> Do you build executables like
> exe myexe : mysrc.cpp mylib ;
> ?

yes although the contents of 'mysrc.cpp' is a very minimal wrapper
around the libraries.

> As far as I understand, if I type "bjam --v2 myexe" in the command line,
> and mylib has to be rebuilt, the tests are not invoked. I want to
> enforce authomatic testing for every rebuild.

you want to run all the tests? in my example it runs only the tests
which depend on the library, which in turn depend on the source files
that have changed. It doesn't fail building the libraries if the tests
fail, this is so I can get a full list of failures even if some of
them are errors propagated forward by an earlier test failing.

I have not yet written the 'run all the tests' version as it would
take too long to run for general use, instead I run a clean then a
full build on the whole source tree periodically, which runs all the
tests. A clean checkout from SVN also runs a full build as no
generated files are stored in SVN.

Kevin

-- 
| Kevin Wheatley, Cinesite (Europe) Ltd | Nobody thinks this      |
| Senior Technology                     | My employer for certain |
| And Network Systems Architect         | Not even myself         |

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