From 5f2db99b264518dbb8843aa0c7d6e887f40ca9a8 Mon Sep 17 00:00:00 2001 From: Steven Watanabe Date: Sat, 2 Apr 2011 16:48:04 +0000 Subject: [PATCH] Automate doxygen test [SVN r70860] --- test/doxygen/Jamfile.v2 | 19 +++++++++++++++++++ test/doxygen/autodoc.gold | 18 ++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 test/doxygen/autodoc.gold diff --git a/test/doxygen/Jamfile.v2 b/test/doxygen/Jamfile.v2 index 06cea38..994997d 100644 --- a/test/doxygen/Jamfile.v2 +++ b/test/doxygen/Jamfile.v2 @@ -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 @@ doxygen autodoc "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 diff --git a/test/doxygen/autodoc.gold b/test/doxygen/autodoc.gold new file mode 100644 index 0000000..edf49e9 --- /dev/null +++ b/test/doxygen/autodoc.gold @@ -0,0 +1,18 @@ + +Example Reference
Documentation for class example. intintintconst intintconst intTest some doxygen markupEmbedded docbook list: + 12 + Special Bold Typewriter Italics emphasis parameter +Arg1 first argument. +Arg2 second argument. + + +First list item. +Second list item + +Line 1 + Line 2 void foo() {} + intintconst intconst intDocumentation for macro example.