Boost logo

Boost-Build :

From: Rene Rivera (grafik.list_at_[hidden])
Date: 2005-02-22 00:45:43


Jody Hagins wrote:
> On Mon, 21 Feb 2005 17:28:04 -0500
> David Abrahams <dave_at_[hidden]> wrote:
>
>>What problems are you having? It might be best to take this to the
>>jamboost list.
>
> Thanks. I am having several problems, but the first can be summarized
> in an earlier post to this group
> http://article.gmane.org/gmane.comp.lib.boost.build/7981

It ended up that the easiest way to support what you want was to extend
testing.jam slightly.

It is now possible to pass in dependent targets as input files to test
run targets. Or in English.. You can specify things like <dll>something
in the "input-files" argument of "run" and "run-fail" tests. The
dependency will get built and the resulting full paths to the files
passed as arguments to the test. I added an example, which is what I
used to test the functionality, in
[boost-root]/tools/build/v1/example/target_test_arg.

One caveat to be aware of is that on certain platforms, i.e. Windows,
some targets (DLLs) generate more than one file and *all* files are
passed to the test. Which for the example above means it outputs
something akin to:

====== BEGIN OUTPUT ======
arg #0 =
'C:\Boost\test\bin\boost\tools\build\v1\example\target_test_arg\simple.test\cw-8_3\debug\threading-multi\simple.exe'
arg #1 =
'C:\Boost\test\bin\boost\tools\build\v1\example\target_test_arg\simple.dll\cw-8_3\debug\threading-multi\simple.dll'
arg #2 =
'C:\Boost\test\bin\boost\tools\build\v1\example\target_test_arg\simple.dll\cw-8_3\debug\threading-multi\simple.lib'
arg #3 =
'C:\Boost\test\bin\boost\tools\build\v1\example\lib_use\libsimple.lib\cw-8_3\debug\threading-multi\libsimple.lib'
arg #4 =
'C:\CVSROOTs\Boost\boost\tools\build\v1\example\target_test_arg\simple_lib.cpp'

EXIT STATUS: 1
====== END OUTPUT ======

So your test program will have to sort out which of the two files is the
shared library.

Enjoy.

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com - 102708583/icq
 

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