RFC: Library unit testing and symbol visibility

Thiago Macieira thiago at kde.org
Mon Jul 24 06:08:24 BST 2023


On Sunday, 23 July 2023 07:16:05 PDT Stefan BrĂ¼ns wrote:
> 3. ?
> 
> Kind regards,

Qt's solution is that it builds in a "build for testing" mode (it defines the 
QT_BUILD_INTERNAL macro, for historical reasons meaning "internal to 
Trolltech") in which extra symbols are exported using the Q_AUTOTEST_EXPORT 
macro. This allows developers and CI systems to enable the extra API without 
needing to affect users.

The CI also tests non-"internal build" builds, so the tests must check whether 
they are in that mode before using a autotest-exported symbol.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DCAI Cloud Engineering





More information about the kde-devel mailing list