Gmane
From: Larry Evans <cppljevans <at> cox-internet.com>
Subject: howto make test2 not run unless test1 succeeds
Newsgroups: gmane.comp.lib.boost.build
Date: 2004-09-06 20:21:26 GMT (4 years, 42 weeks, 6 days, 5 hours and 52 minutes ago)
The following is my Jamfile.v2:
<-----------
project dependent_test
   ;
run test1.cpp
   : #args
   : #input-files
   : #requirements
   : test1_test #target-name
   : #default-build
   ;

run test1_test
     test2.cpp
   :
   :
   :
   : test2_test
   :
   ;
 >-----------
What I want is for test2_test to run only if test1_test passes.
I know the above rule invocations look suspicious because the
target is normally the 1st token after the rule name; however,
the run rule (in testing.jam) is:

rule run ( sources + : args * : input-files * : requirements * : 
target-name ? : default-build * )

Anyway, I thought putting test1_test in the 2nd run (for target test2_test )
would cause test1_test to always be run first, and only if that passed,
then would test2_test be tried.  However, this is not what happened.
test2_test was ALWAYS run.

What should I do to make test2_test's run only after test1_test
successfully ran?

------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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/