mirror of
https://github.com/boostorg/build.git
synced 2026-02-16 01:12:13 +00:00
Added Boostbook test
[SVN r26601]
This commit is contained in:
22
v2/test/boostbook.py
Normal file
22
v2/test/boostbook.py
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
# Copyright (C) Vladimir Prus 2004. Permission to copy, use, modify, sell and
|
||||
# distribute this software is granted provided this copyright notice appears in
|
||||
# all copies. This software is provided "as is" without express or implied
|
||||
# warranty, and with no claim as to its suitability for any purpose.
|
||||
|
||||
from BoostBuild import Tester, List
|
||||
|
||||
# Create a temporary working directory
|
||||
t = Tester()
|
||||
|
||||
t.set_tree("boostbook")
|
||||
# For some reason, the messages are sent to stderr.
|
||||
t.run_build_system(stderr="""Writing A.html for refentry(A)
|
||||
Writing library/reference.html for section(library.reference)
|
||||
Writing index.html for chapter(library)
|
||||
Writing HTML.manifest
|
||||
""")
|
||||
t.expect_addition(["html/A.html", "html/index.html"])
|
||||
|
||||
t.cleanup()
|
||||
3
v2/test/boostbook/Jamroot
Normal file
3
v2/test/boostbook/Jamroot
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
boostbook docs : docs.xml ;
|
||||
doxygen autodoc : [ glob *.hpp ] ;
|
||||
7
v2/test/boostbook/a.hpp
Normal file
7
v2/test/boostbook/a.hpp
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
/// A class
|
||||
class A {
|
||||
public:
|
||||
/// A constructor
|
||||
A();
|
||||
};
|
||||
31
v2/test/boostbook/docs.xml
Normal file
31
v2/test/boostbook/docs.xml
Normal file
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE library PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN"
|
||||
"http://www.boost.org/tools/boostbook/dtd/boostbook.dtd">
|
||||
<library
|
||||
name="library"
|
||||
dirname="librarys" id="library"
|
||||
xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
<libraryinfo>
|
||||
<author>
|
||||
<firstname>Joe</firstname>
|
||||
<surname>Hacker</surname>
|
||||
</author>
|
||||
|
||||
<copyright>
|
||||
<year>7002</year>
|
||||
<holder>Joe Hacker</holder>
|
||||
</copyright>
|
||||
|
||||
</libraryinfo>
|
||||
|
||||
<title>Documentation</title>
|
||||
|
||||
<section>
|
||||
<title>Introduction</title>
|
||||
|
||||
<para>This is introduction</para>
|
||||
|
||||
</section>
|
||||
|
||||
<xi:include href="autodoc.boostbook"/>
|
||||
</library>
|
||||
@@ -8,4 +8,10 @@ import toolset : using ;
|
||||
|
||||
using gcc ;
|
||||
using msvc : : "P:/Program Files/Microsoft Visual Studio/vc98" : : vcvars32-p.bat ;
|
||||
using borland ;
|
||||
using borland ;
|
||||
|
||||
using boostbook
|
||||
: /home/ghost/build/docbook/xsl
|
||||
: /home/ghost/build/docbook/dtd
|
||||
;
|
||||
using doxygen ;
|
||||
@@ -141,4 +141,9 @@ if os.environ.has_key('QTDIR'):
|
||||
else:
|
||||
print 'skipping railsys test since QTDIR environment variable is unset'
|
||||
|
||||
if "--extras" in sys.argv:
|
||||
tests.append("boostbook")
|
||||
else:
|
||||
print 'Note: skipping extra tests'
|
||||
|
||||
run_tests(critical_tests, tests)
|
||||
|
||||
Reference in New Issue
Block a user