|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r70860 - trunk/tools/boostbook/test/doxygen
From: steven_at_[hidden]
Date: 2011-04-02 12:48:05
Author: steven_watanabe
Date: 2011-04-02 12:48:04 EDT (Sat, 02 Apr 2011)
New Revision: 70860
URL: http://svn.boost.org/trac/boost/changeset/70860
Log:
Automate doxygen test
Added:
trunk/tools/boostbook/test/doxygen/autodoc.gold (contents, props changed)
Text files modified:
trunk/tools/boostbook/test/doxygen/Jamfile.v2 | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
Modified: trunk/tools/boostbook/test/doxygen/Jamfile.v2
==============================================================================
--- trunk/tools/boostbook/test/doxygen/Jamfile.v2 (original)
+++ trunk/tools/boostbook/test/doxygen/Jamfile.v2 2011-04-02 12:48:04 EDT (Sat, 02 Apr 2011)
@@ -4,6 +4,7 @@
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
import doxygen ;
+import os ;
doxygen autodoc
:
@@ -12,6 +13,24 @@
<xsl:param>"boost.doxygen.reftitle=Example Reference"
;
+if [ os.name ] = NT
+{
+ actions compare
+ {
+ comp /A $(>[1]) $(>[2]) >$(<)
+ }
+
+}
+else
+{
+ actions compare
+ {
+ diff -u $(>[1]) $(>[2]) >$(<)
+ }
+}
+
+make check : autodoc.xml autodoc.gold : @compare ;
+
boostbook standalone
:
example.xml
Added: trunk/tools/boostbook/test/doxygen/autodoc.gold
==============================================================================
--- (empty file)
+++ trunk/tools/boostbook/test/doxygen/autodoc.gold 2011-04-02 12:48:04 EDT (Sat, 02 Apr 2011)
@@ -0,0 +1,18 @@
+<?xml version="1.0" standalone="yes"?>
+<library-reference id="example_reference"><title>Example Reference</title><header name="boost/example.hpp"><namespace name="example"><class name="example"><purpose>Documentation for class example. </purpose><class name="inner_class"><data-member name="x"><type>int</type></data-member></class><enum name="class_enum"><enumvalue name="enumerator"/></enum><data-member name="integer"><type>int</type></data-member><data-member name="mutable_integer" specifiers="mutable"><type>int</type></data-member><data-member name="const_integer"><type>const int</type></data-member><data-member name="static_integer" specifiers="static"><type>int</type></data-member><data-member name="static_const_integer" specifiers="static"><type>const int</type></data-member></class><struct name="example_template"><template>
+ <template-type-parameter name="TypeParameter"/>
+ <template-nontype-parameter name="NonTypeParameter"><type>int</type></template-nontype-parameter>
+ <template-type-parameter name="TypeParameterWithDefault"><default>int</default></template-type-parameter>
+ </template><description><para>Test some doxygen markup</para><para>Embedded docbook list:</para><para>
+ <orderedlist><listitem><simpara>1</simpara></listitem><listitem><simpara>2</simpara></listitem></orderedlist>
+ </para><para><emphasis>Special</emphasis> <emphasis role="bold">Bold</emphasis> <computeroutput>Typewriter</computeroutput> <emphasis>Italics</emphasis> <emphasis>emphasis</emphasis> <computeroutput>parameter</computeroutput> </para><para><itemizedlist>
+<listitem><para>Arg1 first argument. </para></listitem>
+<listitem><para>Arg2 second argument.</para></listitem>
+</itemizedlist>
+<itemizedlist>
+<listitem><para>First list item. </para></listitem>
+<listitem><para>Second list item</para></listitem>
+</itemizedlist>
+Line 1<sbr/>
+ Line 2</para><para><programlisting> void foo() {}
+</programlisting> </para></description></struct><enum name="namespace_enum"><enumvalue name="enumerator"/></enum><data-member name="namespace_integer"><type>int</type></data-member><data-member name="namespace_static_integer" specifiers="static"><type>int</type></data-member><data-member name="namespace_const_integer"><type>const int</type></data-member><data-member name="namespace_static_const_integer" specifiers="static"><type>const int</type></data-member></namespace><macro name="EXAMPLE" kind="functionlike"><macro-parameter name="m"/><purpose>Documentation for macro example. </purpose></macro></header></library-reference>
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