Boost logo

Boost-Build :

Subject: Re: [Boost-build] [unit test rules]
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-12-04 10:49:51


AMDG

Thorsten Ottosen wrote:
> I there any way I can make some unit-tests dependent on each-other?
> Specifically I always want to run a certain unit-test before the
> current unit-test.
>
> Currently I have the following in my bjam file:
>
> test-suite engine :
>
> [ unit-test btp_algorithms : btp_algorithms.cpp bayesian ]
> [ unit-test exhaustive_algorithms : exhaustive_algorithms.cpp
> bayesian btp_algorithms ]
>
> The idea here was that the unit tes "btp_algorithms" should be run first.

Use the <dependency>feature

unit-test btp_algorithms : btp_algorithms.cpp bayesian ;
unit-test exhaustive_algorithms : exhaustive_algorithms.cpp bayesian :
<dependency>btp_algorithms ;

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