diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2014-09-23 10:00:13 +0200 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2014-10-01 10:32:42 +0200 |
commit | d10f6d49b77dcf955629901937d8d5e3a2976a6c (patch) | |
tree | 0946080bb6dcb4c537424bfd39c58ded2edd549c /sw/CppunitTest_sw_mailmerge.mk | |
parent | MM: add non-UI LoadAndRegisterDataSource function (diff) | |
download | core-d10f6d49b77dcf955629901937d8d5e3a2976a6c.tar.gz core-d10f6d49b77dcf955629901937d8d5e3a2976a6c.zip |
MM: first unit test and infrastructure
Extendes SwModelTestBase with mail merge functions and a declaration
of the DECLARE_MAILMERGE_TEST macro and uses it in a first test.
As most tests it's registered as a slow test run by 'make check'.
The broken MM used to drop the leading empty pages, which resulted
in a document with 4 pages and the two page bound draws merged
per single page.
Tests the MM result for page count (eight) and each draw anchor to
be on a different page.
Change-Id: Iab17f5844e68221d48cb89863323bcfe4c8ae0d2
Diffstat (limited to 'sw/CppunitTest_sw_mailmerge.mk')
-rw-r--r-- | sw/CppunitTest_sw_mailmerge.mk | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/sw/CppunitTest_sw_mailmerge.mk b/sw/CppunitTest_sw_mailmerge.mk new file mode 100644 index 000000000000..f1020ff09b17 --- /dev/null +++ b/sw/CppunitTest_sw_mailmerge.mk @@ -0,0 +1,93 @@ +# -*- 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,sw_mailmerge)) + +$(eval $(call gb_CppunitTest_add_exception_objects,sw_mailmerge, \ + sw/qa/extras/mailmerge/mailmerge \ +)) + +$(eval $(call gb_CppunitTest_use_libraries,sw_mailmerge, \ + comphelper \ + cppu \ + sal \ + sw \ + test \ + unotest \ + utl \ +)) + +$(eval $(call gb_CppunitTest_use_externals,sw_mailmerge, \ + boost_headers \ + libxml2 \ +)) + +$(eval $(call gb_CppunitTest_use_api,sw_mailmerge,\ + offapi \ + udkapi \ +)) + +$(eval $(call gb_CppunitTest_use_components,sw_mailmerge, \ + basic/util/sb \ + comphelper/util/comphelp \ + configmgr/source/configmgr \ + connectivity/source/cpool/dbpool2 \ + connectivity/source/drivers/calc/calc \ + connectivity/source/manager/sdbc2 \ + dbaccess/source/filter/xml/dbaxml \ + dbaccess/util/dba \ + embeddedobj/util/embobj \ + filter/source/config/cache/filterconfig1 \ + filter/source/storagefilterdetect/storagefd \ + forms/util/frm \ + framework/util/fwk \ + i18npool/util/i18npool \ + lingucomponent/source/languageguessing/guesslang \ + linguistic/source/lng \ + oox/util/oox \ + package/source/xstor/xstor \ + package/util/package2 \ + sax/source/expatwrap/expwrap \ + sc/util/sc \ + sfx2/util/sfx \ + sot/util/sot \ + svl/source/fsstor/fsstorage \ + svl/util/svl \ + svtools/util/svt \ + sw/util/sw \ + sw/util/swd \ + toolkit/util/tk \ + ucb/source/core/ucb1 \ + ucb/source/ucp/file/ucpfile1 \ + ucb/source/ucp/tdoc/ucptdoc1 \ + unotools/util/utl \ + unoxml/source/rdf/unordf \ + unoxml/source/service/unoxml \ + uui/util/uui \ + $(if $(filter-out MACOSX WNT,$(OS)), \ + $(if $(ENABLE_HEADLESS),, \ + vcl/vcl.unx \ + ) \ + ) \ + xmloff/util/xo \ +)) + +$(eval $(call gb_CppunitTest_use_configuration,sw_mailmerge)) +$(eval $(call gb_CppunitTest_use_ure,sw_mailmerge)) +$(eval $(call gb_CppunitTest_use_vcl,sw_mailmerge)) + +$(eval $(call gb_CppunitTest_set_include,sw_mailmerge,\ + -I$(SRCDIR)/sw/inc \ + -I$(SRCDIR)/sw/source/core/inc \ + -I$(SRCDIR)/sw/qa/extras/inc \ + -I$(SRCDIR)/sw/source/uibase/inc \ + $$(INCLUDE) \ +)) + +# vim: set noet sw=4 ts=4: |