Boost logo

Boost-Build :

From: Zbynek Winkler (zw-bjam_at_[hidden])
Date: 2004-09-09 11:37:02


Vladimir Prus wrote:

>>>>What I want is for test2_test to run only if test1_test passes.
>>>>
>>>>
>>>Here's what works for me:
>>>
>>> unit-test a : a.cpp ;
>>> unit-test b : b.cpp : <dependency>a ;
>>>
>>>
>>When I say it, I thought -- great! Only to later find out that the
>>following does not work:
>>
>> unit-test a : a.cpp a-test.cpp ;
>> unit-test b : b.cpp a.cpp b-test.cpp : <dependency>a ;
>>
>>Beacause it says "duplicate name for target" for a.cpp. It tries to
>>create one a.obj with <dependency>a and another without it. Is there a
>>way around?
>>
>>
>
>I cannot reproduce this problem. I think I've fixed this some time ago:
>
>2004-01-30 11:08 vladimir_prus
>
> * tools/builtin.jam: Make some of the features incidental, since
> they have no effect on built targets.
>
>Do you still get this problem with up-to-date CVS?
>
>
No, I don't. Thanks. But I don't think it is necessarily caused by
incidental features. IMHO it is more related to the point #1 bellow...

However... there are some other changes that I don't like :(

1) object files linked into unit test are compiled into a separate
directory now -- why?
2) output of the unit-test is captured and not shown. Instead some
babbling about "1 file(s) copied." is being shown :(. My tests output
the number of successfully completed test. Can I get this back?
3) failing test shows a screenfull of junk not related to the actual
test (attached at the end of email)

Overall, my impression is that it is worse then it was before the
upgrade :-(. Luckily, I've made a backup.

Zbynek

..\_build\ester\field-test.test\gcc\debug\threading-multi\field-test.exe
> ..\_build\ester\field-test.test\
gcc\debug\threading-multi\field-test.output 2>&1
set status=%ERRORLEVEL%
echo. >>
..\_build\ester\field-test.test\gcc\debug\threading-multi\field-test.output
echo EXIT STATUS: %status% >>
..\_build\ester\field-test.test\gcc\debug\threading-multi\field-test.output
if %status% EQU 0 (
copy
..\_build\ester\field-test.test\gcc\debug\threading-multi\field-test.output
..\_build\ester\field-te
st.test\gcc\debug\threading-multi\field-test.run
)
set verbose=0
if %status% NEQ 0 (
set verbose=1
)
if %verbose% EQU 1 (
echo ====== BEGIN OUTPUT ======
type
..\_build\ester\field-test.test\gcc\debug\threading-multi\field-test.output
echo ====== END OUTPUT ======
)
exit %status%

...failed testing.capture-output
..\_build\ester\field-test.test\gcc\debug\threading-multi\field-test.run...
...removing
..\_build\ester\field-test.test\gcc\debug\threading-multi\field-test.run

-- 
http://zw.matfyz.cz/ http://robotika.cz/
Faculty of Mathematics and Physics, Charles University, Prague, Czech Republic
 

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