Boost logo

Boost-Commit :

From: grafikrobot_at_[hidden]
Date: 2008-01-04 12:47:57


Author: grafik
Date: 2008-01-04 12:47:57 EST (Fri, 04 Jan 2008)
New Revision: 42457
URL: http://svn.boost.org/trac/boost/changeset/42457

Log:
Add tests... starting with a test for using an extension within another extension.
Added:
   sandbox/tools/build_extensions/test/
   sandbox/tools/build_extensions/test/ext/
   sandbox/tools/build_extensions/test/ext/test-using-a.jam (contents, props changed)
   sandbox/tools/build_extensions/test/ext/test-using-b.jam (contents, props changed)
   sandbox/tools/build_extensions/test/main.cpp (contents, props changed)
   sandbox/tools/build_extensions/test/test-using/
   sandbox/tools/build_extensions/test/test-using/build.jam (contents, props changed)
Text files modified:
   sandbox/tools/build_extensions/boost-build.jam | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: sandbox/tools/build_extensions/boost-build.jam
==============================================================================
--- sandbox/tools/build_extensions/boost-build.jam (original)
+++ sandbox/tools/build_extensions/boost-build.jam 2008-01-04 12:47:57 EST (Fri, 04 Jan 2008)
@@ -40,7 +40,7 @@
 
 #~ Add the local extensions...
 
-BOOST_BUILD_PATH += $(.boost-build-file:D)/ext ;
+BOOST_BUILD_PATH += $(.boost-build-file:D)/ext $(.boost-build-file:D)/test/ext ;
 
 #~ And load up Boost.Build...
 

Added: sandbox/tools/build_extensions/test/ext/test-using-a.jam
==============================================================================
--- (empty file)
+++ sandbox/tools/build_extensions/test/ext/test-using-a.jam 2008-01-04 12:47:57 EST (Fri, 04 Jan 2008)
@@ -0,0 +1,21 @@
+#~ Copyright Rene Rivera 2007
+#~ Distributed under the Boost Software License, Version 1.0.
+#~ (See accompanying file LICENSE_1_0.txt or copy at
+#~ http://www.boost.org/LICENSE_1_0.txt)
+
+import extension ;
+
+import property ;
+import project ;
+import feature ;
+import common ;
+
+extension.declare test-using-a ;
+
+rule init ( version ? : location : options * )
+{
+ version ?= default ;
+ local requirements = [ extension.define test-using-a $(version) : $(location) : $(options) ] ;
+
+ using test-using-b : : $(location) ;
+}

Added: sandbox/tools/build_extensions/test/ext/test-using-b.jam
==============================================================================
--- (empty file)
+++ sandbox/tools/build_extensions/test/ext/test-using-b.jam 2008-01-04 12:47:57 EST (Fri, 04 Jan 2008)
@@ -0,0 +1,19 @@
+#~ Copyright Rene Rivera 2007
+#~ Distributed under the Boost Software License, Version 1.0.
+#~ (See accompanying file LICENSE_1_0.txt or copy at
+#~ http://www.boost.org/LICENSE_1_0.txt)
+
+import extension ;
+
+import property ;
+import project ;
+import feature ;
+import common ;
+
+extension.declare test-using-b ;
+
+rule init ( version ? : location : options * )
+{
+ version ?= default ;
+ local requirements = [ extension.define test-using-b $(version) : $(location) : $(options) ] ;
+}

Added: sandbox/tools/build_extensions/test/main.cpp
==============================================================================
--- (empty file)
+++ sandbox/tools/build_extensions/test/main.cpp 2008-01-04 12:47:57 EST (Fri, 04 Jan 2008)
@@ -0,0 +1,3 @@
+int main()
+{
+}

Added: sandbox/tools/build_extensions/test/test-using/build.jam
==============================================================================
--- (empty file)
+++ sandbox/tools/build_extensions/test/test-using/build.jam 2008-01-04 12:47:57 EST (Fri, 04 Jan 2008)
@@ -0,0 +1,6 @@
+#~ Copyright Rene Rivera 2007
+#~ Distributed under the Boost Software License, Version 1.0.
+#~ (See accompanying file LICENSE_1_0.txt or copy at
+#~ http://www.boost.org/LICENSE_1_0.txt)
+
+using test-using-a : : . ;


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