|
Boost-Commit : |
From: grafikrobot_at_[hidden]
Date: 2007-09-17 12:58:10
Author: grafik
Date: 2007-09-17 12:58:10 EDT (Mon, 17 Sep 2007)
New Revision: 39352
URL: http://svn.boost.org/trac/boost/changeset/39352
Log:
Add test of -l limit option now that it's implemented on windows and unix.
Added:
trunk/tools/jam/test/option_l.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_l.jam
==============================================================================
--- (empty file)
+++ trunk/tools/jam/test/option_l.jam 2007-09-17 12:58:10 EDT (Mon, 17 Sep 2007)
@@ -0,0 +1,32 @@
+#~ 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 -l option... ;
+ assert "...found 2 targets...
+...updating 1 target...
+.a. sleeper
+001
+
+echo 001
+sleep 4
+echo 002
+
+...failed .a. sleeper...
+...failed updating 1 target...
+" : (==) : [ SHELL "$(ARGV[1]) -f option_l.jam -sBJAM_SUBTEST=1 -l2" ] ;
+}
+else
+{
+ actions .a. {
+echo 001
+sleep 4
+echo 002
+}
+
+ .a. sleeper ;
+
+ DEPENDS all : sleeper ;
+}
Modified: trunk/tools/jam/test/test.jam
==============================================================================
--- trunk/tools/jam/test/test.jam (original)
+++ trunk/tools/jam/test/test.jam 2007-09-17 12:58:10 EDT (Mon, 17 Sep 2007)
@@ -44,11 +44,12 @@
include builtin_shell.jam ;
include builtin_w32_getregnames.jam ;
include option_d2.jam ;
+include option_l.jam ;
include option_n.jam ;
include parallel_actions.jam ;
+include parallel_multifile_actions.jam ;
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