|
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
/my/project//library1
/my/project//library2
:
:
:
;
install stage_test :
: foo_test_app
: <location> ../my_test_dir
<install-dependencies>on
<install-type>LIB
;
-------------
Hope that is useful to you.
michael
-- ---------------------------------- Michael Caisse Object Modeling Designs www.objectmodelingdesigns.com
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