summaryrefslogtreecommitdiff
path: root/sw/ooxmlexport_setup.mk
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2014-08-19 17:20:08 +0200
committerLuboš Luňák <l.lunak@collabora.com>2014-08-19 17:25:00 +0200
commit869a3e1b7f269053b4fed6d768939c0ab595bc76 (patch)
tree4e549a3616760ea0ac3886f0fc98d13a78c7b020 /sw/ooxmlexport_setup.mk
parent36490fff3f4d1b4a7e4b7902a866abb177a0bf54 (diff)
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
Diffstat (limited to 'sw/ooxmlexport_setup.mk')
-rw-r--r--sw/ooxmlexport_setup.mk51
1 files changed, 51 insertions, 0 deletions
diff --git a/sw/ooxmlexport_setup.mk b/sw/ooxmlexport_setup.mk
index 400bc836567e..03f6bacac7cc 100644
--- a/sw/ooxmlexport_setup.mk
+++ b/sw/ooxmlexport_setup.mk
@@ -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: