QDoc: Add multi-module test driver for cross-module fixtures
QDoc has had two long-standing testing gaps for multi-module
configurations. tst_validateTemplateGeneratorOutput discovers only
single-module qdocconf fixtures and runs one qdoc invocation per
fixture. Any test that needs an upstream module's .index-file to be
present for a downstream module to resolve cross-module references
cannot live there. tst_generatedOutput covers two such cases via
hand-written member functions that arrange a bespoke build order, copy
index files into place, and invoke testAndCompare with hard-coded
-indexdir arguments. The pattern is brittle and resists extension: every
new multi-module scenario requires another hand-written member function
and a tightly-coupled fixture layout.
tst_multiModuleConfigurations discovers fixtures by the presence of a
build-order.txt file naming the qdocconfs in dependency order. For each
fixture it runs one qdoc invocation per module, chaining -indexdir flags
so that downstream qdocconfs using depends can locate the upstream
.index files emitted by earlier invocations. The final module's output
is diffed against the fixture's expected/ directory; for regen runs the
final moduleemits directly into expected/ to keep the pattern symmetric
with the existing single-module driver. Authoring a new multi-module
fixture becomes a matter of dropping a directory under testdata/ and
listing build steps, with no driver-side code changes.
Task-number: QTBUG-146772
Change-Id: I0b02b6ce73f0626560e7ed71bfa6acdfbf758b59
Reviewed-by: Topi Reinio <topi.reinio@qt.io>