Kaydet (Commit) 869a3e1b authored tarafından Luboš Luňák's avatar Luboš Luňák

split CppunitTest_sw_ooxmlexport into several tests

In order to allow running them in parallel. There are already enough
tests to make it run for a couple of minutes and it's annoying to
see only once core busy with it.
I intentionally left the original file at the same name, without 1
appended, in order to avoid merge problems.

Change-Id: I097c45c34797cc68f5d1790cf31eefc96fbaf44e
üst 36490fff
......@@ -11,50 +11,7 @@
include $(SRCDIR)/sw/ooxmlexport_setup.mk
$(eval $(call gb_CppunitTest_CppunitTest,sw_ooxmlexport))
$(eval $(call gb_CppunitTest_add_exception_objects,sw_ooxmlexport, \
sw/qa/extras/ooxmlexport/ooxmlexport \
))
$(eval $(call gb_CppunitTest_use_libraries,sw_ooxmlexport, \
$(sw_ooxmlexport_libraries) \
))
$(eval $(call gb_CppunitTest_use_externals,sw_ooxmlexport,\
boost_headers \
libxml2 \
))
$(eval $(call gb_CppunitTest_set_include,sw_ooxmlexport,\
-I$(SRCDIR)/sw/inc \
-I$(SRCDIR)/sw/source/core/inc \
-I$(SRCDIR)/sw/qa/extras/inc \
$$(INCLUDE) \
))
$(eval $(call gb_CppunitTest_use_api,sw_ooxmlexport,\
offapi \
udkapi \
))
$(eval $(call gb_CppunitTest_use_ure,sw_ooxmlexport))
$(eval $(call gb_CppunitTest_use_vcl,sw_ooxmlexport))
$(eval $(call gb_CppunitTest_use_components,sw_ooxmlexport,\
$(sw_ooxmlexport_components) \
filter/source/storagefilterdetect/storagefd \
))
$(eval $(call gb_CppunitTest_use_configuration,sw_ooxmlexport))
$(eval $(call gb_CppunitTest_use_unittest_configuration,sw_ooxmlexport))
$(eval $(call gb_CppunitTest_use_packages,sw_ooxmlexport,\
oox_customshapes \
oox_generated \
))
$(call gb_CppunitTest_get_target,sw_ooxmlexport) : $(call gb_Library_get_target,iti)
# empty second argument (i.e. no 1)
$(call sw_ooxmlexport_test,)
# vim: set noet sw=4 ts=4:
# -*- 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/.
#
#*************************************************************************
include $(SRCDIR)/sw/ooxmlexport_setup.mk
$(call sw_ooxmlexport_test,2)
# vim: set noet sw=4 ts=4:
# -*- 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/.
#
#*************************************************************************
include $(SRCDIR)/sw/ooxmlexport_setup.mk
$(call sw_ooxmlexport_test,3)
# vim: set noet sw=4 ts=4:
# -*- 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/.
#
#*************************************************************************
include $(SRCDIR)/sw/ooxmlexport_setup.mk
$(call sw_ooxmlexport_test,4)
# vim: set noet sw=4 ts=4:
# -*- 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/.
#
#*************************************************************************
include $(SRCDIR)/sw/ooxmlexport_setup.mk
$(call sw_ooxmlexport_test,5)
# vim: set noet sw=4 ts=4:
......@@ -55,6 +55,10 @@ $(eval $(call gb_Module_add_slowcheck_targets,sw,\
CppunitTest_sw_htmlexport \
CppunitTest_sw_macros_test \
CppunitTest_sw_ooxmlexport \
CppunitTest_sw_ooxmlexport2 \
CppunitTest_sw_ooxmlexport3 \
CppunitTest_sw_ooxmlexport4 \
CppunitTest_sw_ooxmlexport5 \
CppunitTest_sw_ooxmlfieldexport \
CppunitTest_sw_ooxmlsdrexport \
CppunitTest_sw_ooxmlw14export \
......
......@@ -61,4 +61,55 @@ define sw_ooxmlexport_components
xmloff/util/xo
endef
# template for ooxmlexport tests (there are several so that they can be run in parallel)
define sw_ooxmlexport_test
$(eval $(call gb_CppunitTest_CppunitTest,sw_ooxmlexport$(1)))
$(eval $(call gb_CppunitTest_add_exception_objects,sw_ooxmlexport$(1), \
sw/qa/extras/ooxmlexport/ooxmlexport$(1) \
))
$(eval $(call gb_CppunitTest_use_libraries,sw_ooxmlexport$(1), \
$(sw_ooxmlexport_libraries) \
))
$(eval $(call gb_CppunitTest_use_externals,sw_ooxmlexport$(1),\
boost_headers \
libxml2 \
))
$(eval $(call gb_CppunitTest_set_include,sw_ooxmlexport$(1),\
-I$(SRCDIR)/sw/inc \
-I$(SRCDIR)/sw/source/core/inc \
-I$(SRCDIR)/sw/qa/extras/inc \
$$(INCLUDE) \
))
$(eval $(call gb_CppunitTest_use_api,sw_ooxmlexport$(1),\
offapi \
udkapi \
))
$(eval $(call gb_CppunitTest_use_ure,sw_ooxmlexport$(1)))
$(eval $(call gb_CppunitTest_use_vcl,sw_ooxmlexport$(1)))
$(eval $(call gb_CppunitTest_use_components,sw_ooxmlexport$(1),\
$(sw_ooxmlexport_components) \
filter/source/storagefilterdetect/storagefd \
))
$(eval $(call gb_CppunitTest_use_configuration,sw_ooxmlexport$(1)))
$(eval $(call gb_CppunitTest_use_unittest_configuration,sw_ooxmlexport$(1)))
$(eval $(call gb_CppunitTest_use_packages,sw_ooxmlexport$(1),\
oox_customshapes \
oox_generated \
))
$(call gb_CppunitTest_get_target,sw_ooxmlexport$(1)) : $(call gb_Library_get_target,iti)
endef
# vim: set noet sw=4 ts=4:
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment