diff options
author | Paul Wicking <paul.wicking@qt.io> | 2024-01-30 12:35:38 +0100 |
---|---|---|
committer | Paul Wicking <paul.wicking@qt.io> | 2024-01-31 11:04:56 +0100 |
commit | f865bfa6f87d86cdcc8976106798ca35d102f0d7 (patch) | |
tree | 3e52dbbb4f53330952263ab9183c1fd4b7fbe762 /src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/outputfromqdocfiles/expected/webxml/outputfromqdocfiles.index | |
parent | 97e2d00e817e7382906176c793185c2995972d92 (diff) |
QDoc: Move `outputfromqdocfiles` test project
This change moves the `outputfromqdocfiles` test project from QDoc's
`tst_generatedOutput` to `tst_validateQdocOutputFiles`. The latter is
a data-driven test and better suited for the type of test performed
with this documentation project.
This move is more invasive than those that precede it, in that the test
project is subject to several test cases in `tst_generatedOutput`, that
serve multiple purposes. Of particular interest is how the test project
exercises QDoc's `if(defined)` directive. To achieve test coverage
parity, while at the same time simplify the test project structure, part
of the test is duplicated, and the configuration files for both
resulting cases are consolidated. In addition;
- Merge output format specific configuration from multiple .qdocconf
files and set their `outputsubdir` such that it aligns with the
pattern in other test projects.
- Also move the expected output files from `tst_generatedOutput`.
- Remove the cases for all involved configurations in
`tst_generatedoutput.cpp`.
Task-number: QTBUG-119500
Change-Id: I7868f1935b90f10312671db95c03fffe24c13e75
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/outputfromqdocfiles/expected/webxml/outputfromqdocfiles.index')
-rw-r--r-- | src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/outputfromqdocfiles/expected/webxml/outputfromqdocfiles.index | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/outputfromqdocfiles/expected/webxml/outputfromqdocfiles.index b/src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/outputfromqdocfiles/expected/webxml/outputfromqdocfiles.index new file mode 100644 index 000000000..eb63b02c2 --- /dev/null +++ b/src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/outputfromqdocfiles/expected/webxml/outputfromqdocfiles.index @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE QDOCINDEX> +<INDEX url="" title="A test project for QDoc build artifacts" version="" project="OutputFromQDocFiles"> + <namespace name="" status="active" access="public" module="outputfromqdocfiles"> + <page name="qdoctests-qdocmanuallikefileoutput.html" href="qdoctests-qdocmanuallikefileoutput.html" status="active" location="qdoctests-outputfromqdocmanuallikefiles.qdoc" documented="true" subtype="page" title="Document Navigation" fulltitle="Document Navigation" subtitle=""> + <target name="previouspage-command"/> + <contents name="commands" title="Commands" level="1"/> + <contents name="previouspage" title="\previouspage" level="2"/> + </page> + <page name="qdoctests-qdocfileoutput-exhaustive.html" href="qdoctests-qdocfileoutput-exhaustive.html" status="active" location="qdoctests-outputfromqdocfiles.qdoc" documented="true" subtype="page" title="Exhaustive testing of QDoc commands" fulltitle="Exhaustive testing of QDoc commands" subtitle="" brief="This page is a dumping ground for QDoc commands under test"> + <contents name="this-is-a-section1" title="This is a section1" level="1"/> + <contents name="this-is-a-section2" title="This is a section2" level="2"/> + <contents name="this-is-a-section3" title="This is a section3" level="3"/> + <contents name="this-is-a-section4" title="This is a section4" level="4"/> + <contents name="images" title="Images" level="1"/> + <contents name="commands-not-yet-tested" title="Commands not yet tested" level="1"/> + </page> + <page name="toc.html" href="toc.html" status="active" location="qdoctests-outputfromqdocfiles.qdoc" documented="true" subtype="page" title="Table of Contents" fulltitle="Table of Contents" subtitle=""/> + <page name="qdoctests-qdocfileoutput.html" href="qdoctests-qdocfileoutput.html" status="active" location="qdoctests-outputfromqdocfiles.qdoc" documented="true" subtype="page" title="Testing QDoc output from .qdoc files" fulltitle="Testing QDoc output from .qdoc files" subtitle="" brief="This is a simple page for testing purposes only"> + <contents name="supported-file-types" title="Supported file types" level="1"/> + <contents name="further-information" title="Further information" level="1"/> + <contents name="linking" title="Linking" level="1"/> + <contents name="qdoc-linking-test" title="QDoc Linking Test" level="1"/> + <contents name="linking-to-something-in-a-section-title" title="Linking to something in a section title" level="1"/> + </page> + <page name="qdoctests-qdocfileoutput-linking.html" href="qdoctests-qdocfileoutput-linking.html" status="active" location="qdoctests-outputfromqdocfiles.qdoc" documented="true" subtype="page" title="Testing QDoc's link command" fulltitle="Testing QDoc's link command" subtitle="" brief="This is a page for testing QDoc's link command"> + <target name="link-test-target"/> + <keyword name="qdoc-linking-test" title="QDoc Linking Test"/> + <contents name="link-targets" title="Link targets" level="1"/> + </page> + <page name="crash.html" href="crash.html" status="active" location="qdoctests-outputfromqdocfiles.qdoc" documented="true" subtype="page" title="" fulltitle="" subtitle=""/> + </namespace> +</INDEX> |