Boost logo

Boost-Build :

Subject: Re: [Boost-build] Idiom for running tests using (non-test) target?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-10-24 18:08:55


AMDG

Mat Marcus wrote:
> I use boost build to build a set of libraries and tools which use
> those libraries. After tool "foo" is built, I'd like to run some tests
> with it, as part of the build process. It would not be convenient to
> use the run rule and --preserve-targets, since the tool "foo" is part
> of the user distribution. Is there a good idiom for running tests, as
> part of the build, with a "first class" build target? In case it
> matters, this tool can be used as a translator, accepting files with
> one extension and producing files with another.
>

It works as long as you specify a name for the target.

exe a : a.cpp ;
run a : : : : a_test ;

In Christ,
Steven Watanabe


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