diff --git a/sd/CppunitTest_sd_lokit_search.mk b/sd/CppunitTest_sd_lokit_search.mk new file mode 100644 index 000000000000..9e1652705628 --- /dev/null +++ b/sd/CppunitTest_sd_lokit_search.mk @@ -0,0 +1,71 @@ +# -*- 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,sd_lokit_search)) + +$(eval $(call gb_CppunitTest_use_common_precompiled_header,sd_lokit_search)) + +$(eval $(call gb_CppunitTest_add_exception_objects,sd_lokit_search, \ + sd/qa/unit/tiledrendering/LOKitSearchTest \ +)) + +$(eval $(call gb_CppunitTest_use_libraries,sd_lokit_search, \ + comphelper \ + cppu \ + cppuhelper \ + drawinglayer \ + editeng \ + sal \ + sfx \ + subsequenttest \ + svl \ + svt \ + svxcore \ + sd \ + test \ + unotest \ + vcl \ + tl \ + utl \ +)) + +$(eval $(call gb_CppunitTest_use_externals,sd_lokit_search,\ + boost_headers \ + libxml2 \ +)) + +$(eval $(call gb_CppunitTest_set_include,sd_lokit_search,\ + -I$(SRCDIR)/sd/inc \ + -I$(SRCDIR)/sd/source/ui/inc \ + -I$(SRCDIR)/sd/qa/unit \ + $$(INCLUDE) \ +)) + +$(eval $(call gb_CppunitTest_use_sdk_api,sd_lokit_search)) + +$(eval $(call gb_CppunitTest_use_ure,sd_lokit_search)) +$(eval $(call gb_CppunitTest_use_vcl,sd_lokit_search)) + +$(eval $(call gb_CppunitTest_use_rdb,sd_lokit_search,services)) + +$(eval $(call gb_CppunitTest_use_configuration,sd_lokit_search)) + +$(eval $(call gb_CppunitTest_use_uiconfigs,sd_lokit_search, \ + modules/simpress \ + svx \ +)) + + +$(eval $(call gb_CppunitTest_add_arguments,sd_lokit_search, \ + -env:arg-env=$(gb_Helper_LIBRARY_PATH_VAR)"$$$${$(gb_Helper_LIBRARY_PATH_VAR)+=$$$$$(gb_Helper_LIBRARY_PATH_VAR)}" \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/sd/CppunitTest_sd_tiledrendering.mk b/sd/CppunitTest_sd_tiledrendering.mk index 1fcfbf881292..d5b44028ff05 100644 --- a/sd/CppunitTest_sd_tiledrendering.mk +++ b/sd/CppunitTest_sd_tiledrendering.mk @@ -14,7 +14,6 @@ $(eval $(call gb_CppunitTest_CppunitTest,sd_tiledrendering)) $(eval $(call gb_CppunitTest_use_common_precompiled_header,sd_tiledrendering)) $(eval $(call gb_CppunitTest_add_exception_objects,sd_tiledrendering, \ - sd/qa/unit/tiledrendering/LOKitSearchTest \ sd/qa/unit/tiledrendering/tiledrendering \ )) diff --git a/sd/Module_sd.mk b/sd/Module_sd.mk index 29ffccbb89f5..1e442265c4cc 100644 --- a/sd/Module_sd.mk +++ b/sd/Module_sd.mk @@ -62,6 +62,7 @@ $(eval $(call gb_Module_add_slowcheck_targets,sd,\ CppunitTest_sd_svg_export_tests \ CppunitTest_sd_tiledrendering \ CppunitTest_sd_tiledrendering2 \ + CppunitTest_sd_lokit_search \ )) endif endif diff --git a/sd/qa/unit/tiledrendering/LOKitSearchTest.cxx b/sd/qa/unit/tiledrendering/LOKitSearchTest.cxx index 78892e7e352b..0e8bd2ad3de6 100644 --- a/sd/qa/unit/tiledrendering/LOKitSearchTest.cxx +++ b/sd/qa/unit/tiledrendering/LOKitSearchTest.cxx @@ -906,5 +906,6 @@ CPPUNIT_TEST_FIXTURE(LOKitSearchTest, ReplaceCombined) CPPUNIT_ASSERT_EQUAL(u"ccc"_ustr, getShapeText(pXImpressDocument, 3, 0)); CPPUNIT_ASSERT_EQUAL(u"ccc"_ustr, getShapeText(pXImpressDocument, 4, 0)); } +CPPUNIT_PLUGIN_IMPLEMENT(); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */