|
Boost-Commit : |
From: grafikrobot_at_[hidden]
Date: 2007-08-10 20:32:27
Author: grafik
Date: 2007-08-10 20:32:25 EDT (Fri, 10 Aug 2007)
New Revision: 38587
URL: http://svn.boost.org/trac/boost/changeset/38587
Log:
Add test to check 'bjam -n'.
Added:
trunk/tools/jam/test/option_n.jam (contents, props changed)
Text files modified:
trunk/tools/jam/test/test.jam | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
Added: trunk/tools/jam/test/option_n.jam
==============================================================================
--- (empty file)
+++ trunk/tools/jam/test/option_n.jam 2007-08-10 20:32:25 EDT (Fri, 10 Aug 2007)
@@ -0,0 +1,44 @@
+#~ 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 -n option... ;
+
+ assert "...found 4 targets...
+...updating 2 targets...
+n subtest_a
+
+echo [subtest_a] 0
+echo [subtest_a] 1
+echo [subtest_a] 2
+
+n subtest_b
+
+echo [subtest_b] 0
+echo [subtest_b] 1
+echo [subtest_b] 2
+
+...updated 2 targets...
+" : (==) : [ SHELL "$(ARGV[1]) -f option_n.jam -sBJAM_SUBTEST=1 -n" ] ;
+}
+else
+{
+ actions n
+ {
+echo [$(<:B)] 0
+echo [$(<:B)] 1
+echo [$(<:B)] 2
+ }
+
+ rule n
+ {
+ DEPENDS $(<) : $(>) ;
+ }
+
+ NOTFILE subtest ;
+ n subtest_a : subtest ;
+ n subtest_b : subtest ;
+ DEPENDS all : subtest_a subtest_b ;
+}
Modified: trunk/tools/jam/test/test.jam
==============================================================================
--- trunk/tools/jam/test/test.jam (original)
+++ trunk/tools/jam/test/test.jam 2007-08-10 20:32:25 EDT (Fri, 10 Aug 2007)
@@ -1,4 +1,4 @@
-#~ Copyright 2006 Rene Rivera.
+#~ Copyright 2006-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)
@@ -43,6 +43,7 @@
include builtin_shell.jam ;
include builtin_w32_getregnames.jam ;
+include option_n.jam ;
include parallel_actions.jam ;
include stress_var_expand.jam ;
include target_var.jam ;
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