From 99f47de4abe74c3b9f6605b0cc44840f5f76f303 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 28 Jan 2018 15:53:13 +0100 Subject: [PATCH] doxygen: try to test more stuff on 1.8.13. --- doxygen/test/example/path-prefix/configure.h.cmake | 1 + .../path-prefix_2configure_8h_8cmake-example.html | 3 ++- doxygen/test/test_example.py | 10 +++++++--- 3 files changed, 10 insertions(+), 4 deletions(-) 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')) -- 2.30.2