|
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 |
|
|