From: Vladimír Vondruš Date: Sun, 28 Jan 2018 14:53:13 +0000 (+0100) Subject: doxygen: try to test more stuff on 1.8.13. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=99f47de4abe74c3b9f6605b0cc44840f5f76f303;p=blog.git doxygen: try to test more stuff on 1.8.13. --- diff --git a/doxygen/test/example/path-prefix/configure.h.cmake b/doxygen/test/example/path-prefix/configure.h.cmake index 8f399642..8ae15a2d 100644 --- a/doxygen/test/example/path-prefix/configure.h.cmake +++ b/doxygen/test/example/path-prefix/configure.h.cmake @@ -1 +1,2 @@ #cmakedefine SAY_HELLO +#cmakedefine SAY_BYE diff --git a/doxygen/test/example/path-prefix_2configure_8h_8cmake-example.html b/doxygen/test/example/path-prefix_2configure_8h_8cmake-example.html index 59313c0a..c3a7bab4 100644 --- a/doxygen/test/example/path-prefix_2configure_8h_8cmake-example.html +++ b/doxygen/test/example/path-prefix_2configure_8h_8cmake-example.html @@ -26,7 +26,8 @@ The Example » configure.h.cmake source -
#cmakedefine SAY_HELLO
+
#cmakedefine SAY_HELLO
+#cmakedefine SAY_BYE
« CMakeLists.txt | The Example | main.cpp »
diff --git a/doxygen/test/test_example.py b/doxygen/test/test_example.py index 97471349..9648a93b 100644 --- a/doxygen/test/test_example.py +++ b/doxygen/test/test_example.py @@ -32,12 +32,16 @@ class Example(IntegrationTestCase): def __init__(self, *args, **kwargs): super().__init__(__file__, '', *args, **kwargs) + def test_cpp(self): + self.run_dox2html5(index_pages=[], wildcard='*.xml') + + self.assertEqual(*self.actual_expected_contents('path-prefix_2configure_8h_8cmake-example.html')) + self.assertEqual(*self.actual_expected_contents('path-prefix_2main_8cpp-example.html')) + @unittest.skipUnless(LooseVersion(doxygen_version()) > LooseVersion("1.8.13"), "needs to have file extension exposed in the XML") - def test(self): + def test_other(self): self.run_dox2html5(index_pages=[], wildcard='*.xml') self.assertEqual(*self.actual_expected_contents('path-prefix_2CMakeLists_8txt-example.html')) - self.assertEqual(*self.actual_expected_contents('path-prefix_2configure_8h_8cmake-example.html')) - self.assertEqual(*self.actual_expected_contents('path-prefix_2main_8cpp-example.html')) self.assertEqual(*self.actual_expected_contents('a_8txt-example.html'))