doxygen/testing
Dimitri van Heesch 2a5f09f38b
Merge pull request #8984 from albert-github/feature/bug_tests_spacing_protection
Differences in spacing and protection
2021-12-25 19:59:20 +01:00
..
001 Update test references 2021-01-07 19:23:20 +01:00
002 Update test references 2021-01-07 19:23:20 +01:00
003 Update test references 2021-01-07 19:23:20 +01:00
004 Update test references 2021-01-07 19:23:20 +01:00
005 Update test references 2021-01-07 19:23:20 +01:00
006 Update test references 2021-01-07 19:23:20 +01:00
007 Update test references 2021-01-07 19:23:20 +01:00
008 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
009 Update test references 2021-01-07 19:23:20 +01:00
010 Update test references 2021-01-07 19:23:20 +01:00
011 Refactoring: modernize various dot graphs 2021-01-22 21:45:20 +01:00
012 Update test references 2021-01-07 19:23:20 +01:00
013 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
014 issue #8357 XML output does not include cross-references in code-fragments 2021-01-27 16:31:12 +01:00
015 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
016 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
017 Update test references 2021-01-07 19:23:20 +01:00
018 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
019 Changed concept group handling to not break fix for issue #8724 2021-12-24 20:02:07 +01:00
020 Update test references 2021-01-07 19:23:20 +01:00
021 Differences in spacing and protection 2021-12-25 13:22:32 +01:00
022 Update test references 2021-01-07 19:23:20 +01:00
023 Update test references 2021-01-07 19:23:20 +01:00
024 Differences in spacing and protection 2021-12-25 13:22:32 +01:00
025 Update test references 2021-01-07 19:23:20 +01:00
026 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
027 bug_791832 2021-12-13 15:48:09 +01:00
028 Update test references 2021-01-07 19:23:20 +01:00
029 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
030 Update test references 2021-01-07 19:23:20 +01:00
031 Differences in spacing and protection 2021-12-25 13:22:32 +01:00
032 Update test references 2021-01-07 19:23:20 +01:00
033 Update test references 2021-01-07 19:23:20 +01:00
034 Update test references 2021-01-07 19:23:20 +01:00
035 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
036 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
037 Some fixes and cleanup 2020-08-03 20:35:58 +02:00
038 Update test references 2021-01-07 19:23:20 +01:00
039 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
040 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
041 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
042 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
043 Update test references 2021-01-07 19:23:20 +01:00
044 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
045 Problem with refitem command (tests 45) 2021-06-05 18:41:42 +02:00
046 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
047 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
048 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
049 Differences in spacing and protection 2021-12-25 13:22:32 +01:00
050 Update test references 2021-01-07 19:23:20 +01:00
051 Update test references 2021-01-07 19:23:20 +01:00
052 Update test references 2021-01-07 19:23:20 +01:00
053 Update test references 2021-01-07 19:23:20 +01:00
054 Regression: fixed issue with generating doxygen's own documentation. 2021-07-21 19:52:27 +02:00
055 Differences in spacing and protection 2021-12-25 13:22:32 +01:00
056 Update test references 2021-01-07 19:23:20 +01:00
057 Improve handling of inline namespace members in LateX/RTF output 2020-12-02 19:49:52 +01:00
058 Added new test case for strong enum values with the same name (based on issue #8281) 2021-07-04 13:42:37 +02:00
059 Added regression test case 2021-09-03 14:51:58 +02:00
064 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
065 Update test references 2021-01-07 19:23:20 +01:00
066 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
067 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
068 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
069 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
070 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
071 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
072 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
073 Updated test for enums based on recently fixed issues 2020-08-29 14:51:28 +02:00
074 Fixes for failing test due to change in formatting 2021-08-18 16:13:48 +02:00
075 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
076 Differences in spacing and protection 2021-12-25 13:22:32 +01:00
077 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
078 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
079 Update test references 2021-01-07 19:23:20 +01:00
080 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
081 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
082 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
083 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
084 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
085 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
086 Adding the xml:lang tag to XML and Docbook output 2020-06-03 14:55:52 +02:00
dtd Adjustment of xhtml1-transitional.dtd 2019-02-16 13:53:20 +01:00
001_a.dox Added regression test suite 2013-07-19 21:46:35 +02:00
002_addindex.dox Added regression test suite 2013-07-19 21:46:35 +02:00
003_anchor.dox Added regression test suite 2013-07-19 21:46:35 +02:00
004_arg.dox Added regression test suite 2013-07-19 21:46:35 +02:00
005_attention.dox Correct typing error in test 5 2018-09-03 19:40:17 +02:00
006_author.dox Added regression test suite 2013-07-19 21:46:35 +02:00
007_b.dox Added regression test suite 2013-07-19 21:46:35 +02:00
008_brief.c Added regression test suite 2013-07-19 21:46:35 +02:00
009_bug.cpp Added regression test suite 2013-07-19 21:46:35 +02:00
010_c.dox Added regression test suite 2013-07-19 21:46:35 +02:00
011_category.m Fixed typos in comments. 2015-03-25 15:14:12 +01:00
012_cite.dox Spelling corrections for testing directory 2019-11-04 14:57:34 +01:00
013_class.h Added regression test suite 2013-07-19 21:46:35 +02:00
014_code.dox Propagate language information to all <programlisting> XML elements. 2017-11-19 14:15:14 +01:00
015_cond.c Problem with \cond in normal comment of test 015 2018-05-07 15:59:33 +02:00
016_copydoc.c Added regression test suite 2013-07-19 21:46:35 +02:00
017_copyright.dox Added regression test suite 2013-07-19 21:46:35 +02:00
018_def.c Added regression test suite 2013-07-19 21:46:35 +02:00
019_defgroup.c Changed concept group handling to not break fix for issue #8724 2021-12-24 20:02:07 +01:00
020_only.dox Showing information from all `*only commands in XML output 2020-01-05 12:19:00 +01:00
021_dontinclude.cpp Further cmake changes 2015-05-31 09:59:01 +02:00
022_dot.cpp Problem running tests under Windows 2015-06-10 19:37:02 +02:00
023_e.dox Added regression test suite 2013-07-19 21:46:35 +02:00
024_if.dox Updated test 024 to better test spacing behaviour. 2020-01-14 21:07:06 +01:00
025_example.cpp Further cmake changes 2015-05-31 09:59:01 +02:00
026_exception.cpp Added regression test suite 2013-07-19 21:46:35 +02:00
027_extends.c Added regression test suite 2013-07-19 21:46:35 +02:00
028_formula.c Added regression test suite 2013-07-19 21:46:35 +02:00
029_hideinit.c Added regression test suite 2013-07-19 21:46:35 +02:00
030_htmlinclude.dox Incorrect number tag sequence for xhtml with htmlinclude command possible 2018-11-25 16:34:58 +01:00
031_image.dox Update used links in test examples 2020-12-04 18:45:15 +01:00
032_include.cpp Further cmake changes 2015-05-31 09:59:01 +02:00
033_internal.dox Added regression test suite 2013-07-19 21:46:35 +02:00
034_internal.dox Added regression test suite 2013-07-19 21:46:35 +02:00
035_invariant.c Added regression test suite 2013-07-19 21:46:35 +02:00
036_link.c Added regression test suite 2013-07-19 21:46:35 +02:00
037_msc.cpp Coverity uninitialized variable in mscgen_api.cpp 2020-06-12 15:28:22 +02:00
038_n.dox Added regression test suite 2013-07-19 21:46:35 +02:00
039_name.cpp Added regression test suite 2013-07-19 21:46:35 +02:00
040_namespace.cpp Added regression test suite 2013-07-19 21:46:35 +02:00
041_overload.cpp Added regression test suite 2013-07-19 21:46:35 +02:00
042_package.java Added regression test suite 2013-07-19 21:46:35 +02:00
043_page.dox Implementation of standard generator for docbook output 2018-09-07 11:29:20 +02:00
044_section.h Added regression test suite 2013-07-19 21:46:35 +02:00
045_refitem.dox Added regression test suite 2013-07-19 21:46:35 +02:00
046_related.cpp Added regression test suite 2013-07-19 21:46:35 +02:00
047_return.cpp Added regression test suite 2013-07-19 21:46:35 +02:00
048_showinit.c Added regression test suite 2013-07-19 21:46:35 +02:00
049_snippet.cpp Further cmake changes 2015-05-31 09:59:01 +02:00
050_verbatim.dox Further cmake changes 2015-05-31 09:59:01 +02:00
051_escape.dox Correct typing error in test 51 2018-09-03 18:33:00 +02:00
052_tilde.dox Added regression test suite 2013-07-19 21:46:35 +02:00
053_tilde.dox Added regression test suite 2013-07-19 21:46:35 +02:00
054_parblock.cpp Regression: fixed issue with generating doxygen's own documentation. 2021-07-21 19:52:27 +02:00
055_markdown.md testing: Markdown in HTML 2020-05-23 11:39:14 +09:00
056_latexinclude.dox Further cmake changes 2015-05-31 09:59:01 +02:00
057_inlinenamespace.cpp Doxygen warnings are not seen as errors during running tests 2020-11-22 13:25:09 +01:00
058_strong_enum.cpp Added new test case for strong enum values with the same name (based on issue #8281) 2021-07-04 13:42:37 +02:00
059_template.cpp Added regression test case 2021-09-03 14:51:58 +02:00
064_castoperator.cpp Bug 739214 - Cannot make unscoped link to C++ conversion operator 2014-11-16 16:48:55 +01:00
065_tilde.dox Fix bug: language switch command "\~" failed to detect language id which contains '-' 2014-12-01 20:28:08 +09:00
066_property_initializer.cs Warning messages of test 66 2019-01-06 16:29:07 +01:00
067_link_varargs.cpp Add variadic function arguments '...' regression tests 2017-08-03 05:38:51 +02:00
068_ref_varargs.cpp Add variadic function arguments '...' regression tests 2017-08-03 05:38:51 +02:00
069_link_variadic_template.cpp Fix some typos 2019-09-16 07:46:29 -04:00
070_ref_variadic_template.cpp Fix some typos 2019-09-16 07:46:29 -04:00
071_enum_in_anon_ns.cpp Fixed issues in introduced by making file name escapes lower case 2019-06-22 12:48:59 +02:00
072_using.cpp Test renumbering 2018-04-01 19:52:57 +02:00
073_typed_enum.cpp Updated test for enums based on recently fixed issues 2020-08-29 14:51:28 +02:00
074_ref.cpp Double defined operator in test 74 2019-01-05 19:25:44 +01:00
075_argmatch.cpp Changed implementation, added test case 2018-12-24 14:08:31 +01:00
076_emojis.cpp issue #8918 \emoji does not support emoji with ZWJ 2021-11-29 13:57:08 +01:00
077_no_xml_namespace_members_in_file_scope.h Renamed option and test case numbers 2018-12-26 13:11:51 +01:00
078_xml_namespace_members_in_file_scope.h Renamed option and test case numbers 2018-12-26 13:11:51 +01:00
079_tableofcontents.dox testing: add a test for TOC levels in the XML output. 2018-12-30 00:47:41 +01:00
080_extract_private_virtual.cpp Shortened EXTRACT_PRIVATE_VIRTUAL to EXTRACT_PRIV_VIRTUAL to deal with max length limitation 2019-01-08 19:55:03 +01:00
081_brief_lists.h Merge: moved example from 081 to 084, improved check if last char is newline 2019-01-13 11:03:12 +01:00
082_decl_def.cpp Fix some typos 2019-09-16 07:46:29 -04:00
083_decl_def.cpp Fix some typos 2019-09-16 07:46:29 -04:00
084_markdown_pre.f90 Merge: moved example from 081 to 084, improved check if last char is newline 2019-01-13 11:03:12 +01:00
085_tooltip.cpp Double id for tooltips in XHTML Possible. 2019-01-18 10:59:56 +01:00
086_style_tags.h Fix some typos 2019-09-16 07:46:29 -04:00
CMakeLists.txt Allow building doxygen as a subproject 2020-09-16 19:36:33 +02:00
decl_def.h Added declfile, declline, and declcolumn attributes to the location element in the XML output 2019-01-12 14:58:16 +01:00
Doxyfile Set CASE_SENSE_NAMES explicit to NO for the tests 2013-07-19 22:17:09 +02:00
example_test.cpp Encode invalid XML characters instead of skipping them. 2017-11-25 18:37:26 +01:00
README.txt Small correction in help 2021-12-14 15:26:32 +01:00
runtests.py Merge pull request #8227 from albert-github/feature/bug_tests_description 2021-12-25 15:34:33 +01:00
sample.bib Update used links in test examples 2020-12-04 18:45:15 +01:00
sample.html Added regression test suite 2013-07-19 21:46:35 +02:00
sample.png [ImgBot] Optimize images 2018-12-07 11:28:34 +00:00
sample.tex Added \latexinclude command (thanks to Juan Zaratiegui for the patch) 2014-03-27 21:22:11 +01:00
snippet_test.cpp Added regression test suite 2013-07-19 21:46:35 +02:00
testsqlite3.py Make testsqlite3.py python script running with python 3 2020-09-08 13:31:15 +02:00

Doxygen regression test suite
=============================

This directory contains a set of regression tests. Each test consists of a
file starting with a 3 digit number and a corresponding directory whose name
has the same 3 digit number. The directory contains one or more reference
files that are compared against the XML output produced by doxygen. If the
result is the same, there is no regression and the test passes. If there is a
difference the test fails and the difference (in diff -u format) will be shown.
It is also possible to see whether or not the test can be built to a xhtml set
of files (and tested against a DTD), it is also possible to create a pdf file
for each test to see if the LaTeX / pdf generation is possible, similar for
rtf and docbook output.

The runtests.py script responsible for running the tests takes a number of
optional parameters:
  --updateref           update the reference files. Should be used in
                        combination with --id to update the reference file(s)
                        for the given test
  --doxygen [DOXYGEN]   path/name of the doxygen executable
  --xmllint [XMLLINT]   path/name of the xmllint executable
  --id IDS [IDS ...]    run test with number n only (the option can be
                        specified to run test with number n only (the option
                        can be specified multiple times
  --start_id START_ID   run tests starting with number n
  --end_id END_ID       run tests ending with number n
  --all                 can be used in combination with -updateref to update
                        the reference files for all tests.
  --inputdir [INPUTDIR]
                        input directory containing the tests
  --outputdir [OUTPUTDIR]
                        output directory to write the doxygen output to
  --noredir             disable redirection of doxygen warnings
  --pool [POOL]         pool size of multiprocess tests
  --xml                 create xml output and check
  --rtf                 create rtf output
  --docbook             create docbook output and check with xmllint
  --xhtml               create xhtml output and check with xmllint
  --xmlxsd              create xml output and check with xmllint against xsd
  --pdf                 create LaTeX output and create pdf from it
  --subdirs             use the configuration parameter CREATE_SUBDIRS=YES
  --clang               use CLANG_ASSISTED_PARSING, works only when doxygen
                        has been compiled with "use_libclang"
  --keep                keep result directories
  --cfg CFGS [CFGS ...]
                        run test with extra doxygen configuration settings
                        (the option may be specified multiple times
In case neither --xml, --xmlxsd, --pdf, --rtf, --docbook or --xhtml is used the
default is set to --xml.

The runtests.py has the following dependencies on 3rd party tools:
- python  to run the script
- xmllint to normalize the XML output
- diff    to show the differences in case a test fails

Each test file can have a number of special comment lines that are extracted by
the runtests.py script and take the form:
// <identifier>: 'argument'
Where <identifier> can be one of:
- objective: 'argument' provides the objective for the test (i.e. its purpose)
- check:     'argument' names a file that is generated by doxygen, which should
             be compared against the reference.
- config:    'argument' is a line that is added to the default Doxyfile used to
             run doxygen on the test file.

Example to run all tests:
    python runtests.py

Example to run a test
    python runtests.py --id 10

Example to update the reference files for a test
    python runtests.py --updateref --id 10

There is also a CMakeLists.txt, which can be used from the build directory
to run all tests by simply invoking 'make tests', to use the specific options use
the flag TEST_FLAGS with make
  e.g. make tests TEST_FLAGS="--id=5 --id=10 --pdf --xhtml"