Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r68875 - in branches/quickbook-filenames/tools/quickbook/test: . src
From: dnljms_at_[hidden]
Date: 2011-02-14 19:07:52


Author: danieljames
Date: 2011-02-14 19:07:50 EST (Mon, 14 Feb 2011)
New Revision: 68875
URL: http://svn.boost.org/trac/boost/changeset/68875

Log:
Get the quickbook test tool working from other directories.
Added:
   branches/quickbook-filenames/tools/quickbook/test/src/Jamfile.v2 (contents, props changed)
Text files modified:
   branches/quickbook-filenames/tools/quickbook/test/quickbook-testing.jam | 14 ++++++++------
   1 files changed, 8 insertions(+), 6 deletions(-)

Modified: branches/quickbook-filenames/tools/quickbook/test/quickbook-testing.jam
==============================================================================
--- branches/quickbook-filenames/tools/quickbook/test/quickbook-testing.jam (original)
+++ branches/quickbook-filenames/tools/quickbook/test/quickbook-testing.jam 2011-02-14 19:07:50 EST (Mon, 14 Feb 2011)
@@ -24,8 +24,6 @@
 generators.register-standard quickbook-testing.process-quickbook : QUICKBOOK_INPUT : QUICKBOOK_OUTPUT ;
 
 ################################################################################
-exe line-compare-tool : src/text_diff.cpp ;
-
 #
 # quickbook-test - generates a test for quickbook itself. A quickbook-test is
 # actually made up of two tests:
@@ -43,6 +41,8 @@
 
     local project = [ project.current ] ;
 
+ local boost-root = [ modules.peek : BOOST_ROOT ] ;
+
     local t =
         [ targets.create-typed-target QUICKBOOK_OUTPUT
             : $(project)
@@ -50,13 +50,13 @@
             : $(input)
             : $(requirements)
                 <location-prefix>$(target-name).test
- <quickbook-testing.quickbook-command>../src//quickbook
+ <quickbook-testing.quickbook-command>$(boost-root)/tools/quickbook/src//quickbook
         ]
 
         [ targets.create-typed-target RUN
             : $(project)
             : $(target-name)
- : .//line-compare-tool
+ : $(boost-root)/tools/quickbook/test/src//line-compare-tool
             : $(requirements)
                 <location-prefix>$(target-name).test
                 <testing.input-file>$(reference-output)
@@ -75,14 +75,16 @@
     input ?= $(target-name).quickbook ;
 
     local project = [ project.current ] ;
- requirements += <testing.arg>$(input:J=" ") ;
+
+ local boost-root = [ modules.peek : BOOST_ROOT ] ;
 
     local t =
         [ targets.create-typed-target RUN_FAIL
             : $(project)
             : $(target-name)
- : ../src//quickbook
+ : $(boost-root)/tools/quickbook/src//quickbook
             : $(requirements)
+ <testing.input-file>$(input)
               <preserve-test-targets>on
               <dependency>$(input)
         ]

Added: branches/quickbook-filenames/tools/quickbook/test/src/Jamfile.v2
==============================================================================
--- (empty file)
+++ branches/quickbook-filenames/tools/quickbook/test/src/Jamfile.v2 2011-02-14 19:07:50 EST (Mon, 14 Feb 2011)
@@ -0,0 +1 @@
+exe line-compare-tool : text_diff.cpp ;


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