sd: add CppunitTest_sd_lokit_search

Change-Id: If4844f3f9a40495f3ceaf2603de5211b9f1555cd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176972
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
Xisco Fauli 2024-11-21 21:18:34 +01:00
parent e0a5ad2f8d
commit 17e7743d5f
4 changed files with 73 additions and 1 deletions

View file

@ -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:

View file

@ -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 \
))

View file

@ -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

View file

@ -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: */