Gmane
From: Zbynek Winkler <zw-bjam <at> robotika.cz>
Subject: Changes in unit-testing (was Re: howto make test2 not run unless test1 succeeds)
Newsgroups: gmane.comp.lib.boost.build
Date: 2004-09-09 16:37:02 GMT (4 years, 43 weeks, 5 days, 1 hour and 37 minutes ago)

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

------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/z3wwlB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/jamboost/

<*> To unsubscribe from this group, send an email to:
    jamboost-unsubscribe <at> yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/