Boost logo

Boost-Commit :

From: grafikrobot_at_[hidden]
Date: 2007-09-16 20:44:16


Author: grafik
Date: 2007-09-16 20:44:16 EDT (Sun, 16 Sep 2007)
New Revision: 39335
URL: http://svn.boost.org/trac/boost/changeset/39335

Log:
Add test for ticket #431.
Added:
   trunk/tools/jam/test/parallel_multifile_actions.jam (contents, props changed)
Text files modified:
   trunk/tools/jam/test/test.jam | 1 +
   1 files changed, 1 insertions(+), 0 deletions(-)

Added: trunk/tools/jam/test/parallel_multifile_actions.jam
==============================================================================
--- (empty file)
+++ trunk/tools/jam/test/parallel_multifile_actions.jam 2007-09-16 20:44:16 EDT (Sun, 16 Sep 2007)
@@ -0,0 +1,35 @@
+#~ Copyright 2007 Rene Rivera.
+#~ Distributed under the Boost Software License, Version 1.0.
+#~ (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
+
+if ! $(BJAM_SUBTEST)
+{
+ ECHO --- Testing -jN parallel execution of multi-file actions... ;
+ assert "...found 5 targets...
+...updating 4 targets...
+.gen. g1.generated
+001
+002
+.use.1 u1.user
+003
+.use.2 u2.user
+004
+...updated 4 targets...
+" : (==) : [ SHELL "$(ARGV[1]) -f parallel_multifile_actions.jam -sBJAM_SUBTEST=1 -j2" ] ;
+}
+else
+{
+ actions .gen. { echo 001 & sleep 1 & echo 002 }
+ rule .use.1 { DEPENDS $(<) : $(>) ; }
+ actions .use.1 { echo 003 }
+ rule .use.2 { DEPENDS $(<) : $(>) ; }
+ actions .use.2 { echo 004 }
+
+ .gen. g1.generated g2.generated ;
+ .use.1 u1.user : g1.generated ;
+ .use.2 u2.user : g2.generated ;
+
+ DEPENDS all : u1.user u2.user ;
+ #~ Work around... Remove when fixed...
+ DEPENDS g2.generated : g1.generated ;
+}

Modified: trunk/tools/jam/test/test.jam
==============================================================================
--- trunk/tools/jam/test/test.jam (original)
+++ trunk/tools/jam/test/test.jam 2007-09-16 20:44:16 EDT (Sun, 16 Sep 2007)
@@ -49,5 +49,6 @@
 include stress_var_expand.jam ;
 include target_var.jam ;
 include var_expand.jam ;
+include parallel_multifile_actions.jam ;
 
 EXIT --- Complete: PASSED($(pass-count)) *FAILED($(fail-count))* : $(fail-count) ;


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