Boost logo

Boost-Commit :

From: grafikrobot_at_[hidden]
Date: 2007-11-28 02:08:14


Author: grafik
Date: 2007-11-28 02:08:13 EST (Wed, 28 Nov 2007)
New Revision: 41430
URL: http://svn.boost.org/trac/boost/changeset/41430

Log:
Add test for result status values of simple actions, i.e. empty actions.
Added:
   trunk/tools/jam/test/action_status.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/action_status.jam
==============================================================================
--- (empty file)
+++ trunk/tools/jam/test/action_status.jam 2007-11-28 02:08:13 EST (Wed, 28 Nov 2007)
@@ -0,0 +1,24 @@
+#~ 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 \"actions status results\"... ;
+
+ assert "" 0 : (==) : [ SHELL "$(ARGV[1]) -f action_status.jam -sBJAM_SUBTEST=1" : exit-status : no-output ] ;
+ assert "" 0 : (!=) : [ SHELL "$(ARGV[1]) -f action_status.jam -sBJAM_SUBTEST=1 -sACTION=invalid" : exit-status : no-output ] ;
+}
+else
+{
+ actions quietly .a. { $(ACTION) }
+
+ rule .a.
+ {
+ DEPENDS $(<) : $(>) ;
+ }
+
+ NOTFILE subtest ;
+ .a. subtest_a : subtest ;
+ DEPENDS all : subtest_a ;
+}

Modified: trunk/tools/jam/test/test.jam
==============================================================================
--- trunk/tools/jam/test/test.jam (original)
+++ trunk/tools/jam/test/test.jam 2007-11-28 02:08:13 EST (Wed, 28 Nov 2007)
@@ -41,6 +41,7 @@
     }
 }
 
+include action_status.jam ;
 include actions_quietly.jam ;
 include builtin_shell.jam ;
 include builtin_w32_getregnames.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