Boost logo

Boost-Build :

Subject: Re: [Boost-build] [boost-build] install unit test
From: Vladimir Prus (vladimir.prus_at_[hidden])
Date: 2015-07-28 03:06:03


On 22-Jul-15 8:06 PM, Steve Lorimer wrote:
> I have the following Jamfile for my unit test
>
> import testing ;
>
> unit-test example-test
> : [ glob *.cpp ]
> ;
>
> install . : example-test ;
>
>
> It installs example-test.passed into the local directory, instead of the
> example-test binary
>
> ...patience...
> ...patience...
> ...found 6496 targets...
> ...updating 1 target...
> common.copy foo/test/example-test.passed
> ...updated 1 target...
>
>
> How can I get it to install the binary instead of the tests passed marker
> file?

Steve,

you can possibly do this:

        install . : example-test : <install-dependencies>on <install-type>EXE ;

so that Boost.Build looks at entire dependency graph, and picks EXE targets from that.

HTH,
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