Files
odfstudio/postprocess/CppunitTest_singletons.mk
T
Neil Roberts 26e03a6571 Add a unit test that constructs every service-based singleton via class name
The idea is to check that all of the class names match a singleton
declared in a component somewhere and that they return an object that
implements the advertised interface. Otherwise the generated getter for
the singleton will fail with a runtime exception.

Change-Id: I1352e7392e33e9182962e6279fcb62cf3b58352a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200056
Reviewed-by: Neil Roberts <bpeeluk@yahoo.co.uk>
Tested-by: Jenkins
2026-02-23 16:39:43 +01:00

37 lines
969 B
Makefile

# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_CppunitTest_CppunitTest,singletons))
$(eval $(call gb_CppunitTest_add_exception_objects,singletons, \
postprocess/qa/singletons \
))
$(eval $(call gb_CppunitTest_use_libraries,singletons, \
comphelper \
cppu \
cppuhelper \
sal \
test \
unotest \
vcl \
))
$(eval $(call gb_CppunitTest_use_sdk_api,singletons))
$(eval $(call gb_CppunitTest_use_api,singletons,oovbaapi))
$(eval $(call gb_CppunitTest_use_ure,singletons))
$(eval $(call gb_CppunitTest_use_vcl,singletons))
$(eval $(call gb_CppunitTest_use_rdb,singletons,services))
$(eval $(call gb_CppunitTest_use_configuration,singletons))
# vim: set noet sw=4 ts=4: