|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r50084 - trunk/tools/quickbook/test
From: john_at_[hidden]
Date: 2008-12-03 04:42:55
Author: johnmaddock
Date: 2008-12-03 04:42:52 EST (Wed, 03 Dec 2008)
New Revision: 50084
URL: http://svn.boost.org/trac/boost/changeset/50084
Log:
Added quickbook-fail-test rule and two tests that make use of it: note that these currently fail.
Added:
trunk/tools/quickbook/test/fail-import.quickbook (contents, props changed)
trunk/tools/quickbook/test/fail-include.quickbook (contents, props changed)
Text files modified:
trunk/tools/quickbook/test/Jamfile.v2 | 7 ++++++-
trunk/tools/quickbook/test/quickbook-testing.jam | 22 ++++++++++++++++++++++
2 files changed, 28 insertions(+), 1 deletions(-)
Modified: trunk/tools/quickbook/test/Jamfile.v2
==============================================================================
--- trunk/tools/quickbook/test/Jamfile.v2 (original)
+++ trunk/tools/quickbook/test/Jamfile.v2 2008-12-03 04:42:52 EST (Wed, 03 Dec 2008)
@@ -8,7 +8,7 @@
project test ;
-import quickbook-testing : quickbook-test ;
+import quickbook-testing : quickbook-test quickbook-fail-test ;
test-suite quickbook.test :
[ quickbook-test quickbook-manual ]
@@ -21,4 +21,9 @@
[ quickbook-test templates ]
[ quickbook-test xinclude ]
[ quickbook-test import ]
+ [ quickbook-fail-test fail-include ]
+ [ quickbook-fail-test fail-import ]
;
+
+
+
Added: trunk/tools/quickbook/test/fail-import.quickbook
==============================================================================
--- (empty file)
+++ trunk/tools/quickbook/test/fail-import.quickbook 2008-12-03 04:42:52 EST (Wed, 03 Dec 2008)
@@ -0,0 +1,11 @@
+[article Expect import Fail
+]
+
+[section Failure]
+
+[import this-is-not-a-file.cpp]
+
+[endsect]
+
+
+
Added: trunk/tools/quickbook/test/fail-include.quickbook
==============================================================================
--- (empty file)
+++ trunk/tools/quickbook/test/fail-include.quickbook 2008-12-03 04:42:52 EST (Wed, 03 Dec 2008)
@@ -0,0 +1,11 @@
+[article Expect xinclude Fail
+]
+
+[section Failure]
+
+[include this-is-not-a-file.qbk]
+
+[endsect]
+
+
+
Modified: trunk/tools/quickbook/test/quickbook-testing.jam
==============================================================================
--- trunk/tools/quickbook/test/quickbook-testing.jam (original)
+++ trunk/tools/quickbook/test/quickbook-testing.jam 2008-12-03 04:42:52 EST (Wed, 03 Dec 2008)
@@ -69,6 +69,28 @@
return $(t) ;
}
+rule quickbook-fail-test ( target-name : input ? : requirements * )
+{
+ input ?= $(target-name).quickbook ;
+
+ local project = [ project.current ] ;
+ requirements += <testing.arg>$(input:J=" ") ;
+
+ local t =
+ [ targets.create-typed-target RUN_FAIL
+ : $(project)
+ : $(target-name)
+ : ..//quickbook
+ : $(requirements)
+ <preserve-test-targets>on
+ ]
+ ;
+
+ modules.poke testing : .all-tests : \$\(all-tests\) $(t) ;
+
+ return $(t) ;
+}
+
################################################################################
toolset.flags quickbook-testing.process-quickbook quickbook-command <quickbook-testing.quickbook-command> ;
rule process-quickbook ( target : source : properties * )
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