Boost logo

Boost-Build :

From: Michael Caisse (boost_at_[hidden])
Date: 2007-10-30 12:33:05

Robert Ramey wrote:

> I'm curious how one would set up the following kind of test.
> The test would consist of a main application and two DLLS..
> Each of the three would need to be compiled and linked
> and then the test run which dynamically loaded and unloaded
> the DLLS.
> As I understand it. The bjam test setup puts each
> target in different directories whose names correspond
> to the test configuration. This raises the question
> as to what path name to use in the code which
> loads the DLL.
> Actually I would prefer that the DLLS be built
> and run in the same directory as the main application
> But I don't see how to do this.
> Anyone is free to offer a suggestion.
> Robert Ramey

Robert -

You will want to use the install rule. It allows you to install a
target and the target's dependents in a directory. That is how I
do my automated testing.

For example, you might have something like:


exe foo_test_app
        : some_amazing_tester.cpp

install stage_test :
        : foo_test_app
        : <location> ../my_test_dir


Hope that is useful to you.


Michael Caisse
Object Modeling Designs

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at