db3a61cd95
...instead of by listing the content somewhat redundantly in the Rdb_*.mk files, to avoid duplication of logic for components that are only built conditionally (and thus should only be included conditionally in the corresponding Rdb). To achieve that, add an "rdb" parameter to gb_ComponentTarget_ComponentTarget (and to the gb_*_set_componentfile macros that internally call gb_ComponentTarget_ComponentTarget), which is used to make the appropriate gb_Rdb_add_component call internally from within gb_ComponentTarget_ComponentTarget. (As a special case, gb_CppunitTest_set_componentfile shall not call gb_Rdb_add_component, as that has already been done by the corresponding gb_Library_set_componentfile call, so allow the gb_ComponentTarget_ComponentTarget "rdb" parameter to be empty to support that special case.) Most Rdb_*.mk files are thus mostly empty now. One exception is i18npool/Rdb_saxparser.mk, which duplicates some of the Rdb_services content as needed during the build in CustomTarget_i18npool/localedata. |
||
---|---|---|
.. | ||
com/sun/star/comp/smoketest | ||
data | ||
org/libreoffice/smoketest | ||
CppunitTest_smoketest.mk | ||
Extension_TestExtension.mk | ||
Jar_smoketest.mk | ||
Jar_TestExtension.mk | ||
Library_smoketest.mk | ||
Makefile | ||
Module_smoketest.mk | ||
README.md | ||
smoketest.cxx | ||
smoketest_too.cxx | ||
Zip_smoketestdoc.mk |
Smoke Test
Smoke test for each component of LibreOffice.
smoketest
:
The main smoketest.cxx
is launched connects via binary UNO
over a socket to a remote LibreOffice instance. This loads a document
which is zipped at build time into the workdir/
from the data/
directory. This in turn contains a set of macros in
data/Basic/Standard
.
smoketest.cxx
does a remote the StartTestWithDefaultOptions
macro and waits for a dispatchFinished
from the macro's execution. To
debug this best load workdir/Zip/smoketestdoc.sxw
- and hit start smoketest
- this will launch a number of components and build a
suitable report in the form of a table.
The StarBasic smoketests also log their output, this ends up
in instdir/user/temp/smoketest.log
.