Kaydet (Commit) e3cf2b45 authored tarafından David Tardon's avatar David Tardon

simplify use of configuration from unit tests

üst e5f16b8d
......@@ -116,10 +116,13 @@ $(eval $(call gb_CppunitTest_use_components,dbaccess_macros_test,\
unoxml/source/service/unoxml \
))
$(eval $(call gb_CppunitTest_set_args,dbaccess_macros_test,\
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry) module:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry/spool) xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/unittest/registry)" \
$(eval $(call gb_CppunitTest_use_configuration,dbaccess_macros_test))
$(eval $(call gb_CppunitTest_use_filter_configuration,dbaccess_macros_test))
$(eval $(call gb_CppunitTest_use_extra_configuration,dbaccess_macros_test,\
$(OUTDIR)/unittest/registry \
))
# .../spool is required for the (somewhat strange) filter configuration
# we need to
# a) explicitly depend on library msword because it is not implied by a link
......
......@@ -69,8 +69,6 @@ $(eval $(call gb_CppunitTest_use_components,extensions_test_update,\
unoxml/source/service/unoxml \
))
$(eval $(call gb_CppunitTest_set_args,extensions_test_update,\
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry)" \
))
$(eval $(call gb_CppunitTest_use_configuration,extensions_test_update))
# vim:set shiftwidth=4 softtabstop=4 noexpandtab:
......@@ -54,8 +54,6 @@ $(eval $(call gb_CppunitTest_use_components,filter_tga_test,\
configmgr/source/configmgr \
))
$(eval $(call gb_CppunitTest_set_args,filter_tga_test,\
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry)" \
))
$(eval $(call gb_CppunitTest_use_configuration,filter_tga_test))
# vim: set noet sw=4 ts=4:
......@@ -54,8 +54,6 @@ $(eval $(call gb_CppunitTest_use_components,filter_tiff_test,\
configmgr/source/configmgr \
))
$(eval $(call gb_CppunitTest_set_args,filter_tiff_test,\
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry)" \
))
$(eval $(call gb_CppunitTest_use_configuration,filter_tiff_test))
# vim: set noet sw=4 ts=4:
......@@ -61,9 +61,7 @@ $(eval $(call gb_CppunitTest_use_components,hwpfilter_test_hwpfilter,\
ucb/source/ucp/file/ucpfile1 \
))
$(eval $(call gb_CppunitTest_set_args,hwpfilter_test_hwpfilter,\
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry)" \
))
$(eval $(call gb_CppunitTest_use_configuration,hwpfilter_test_hwpfilter))
# we need to explicitly depend on library hwp because it is not implied
# by a link relation
......
......@@ -61,9 +61,7 @@ $(eval $(call gb_CppunitTest_use_components,lotuswordpro_test_lotuswordpro,\
ucb/source/ucp/file/ucpfile1 \
))
$(eval $(call gb_CppunitTest_set_args,lotuswordpro_test_lotuswordpro,\
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry)" \
))
$(eval $(call gb_CppunitTest_use_configuration,lotuswordpro_test_lotuswordpro))
# we need to explicitly depend on library lwpft because it is not implied
# by a link relation
......
......@@ -118,10 +118,13 @@ $(eval $(call gb_CppunitTest_use_components,sc_cellrangesbase,\
unoxml/source/service/unoxml \
))
$(eval $(call gb_CppunitTest_set_args,sc_cellrangesbase,\
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry) module:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry/spool) xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/unittest/registry)" \
$(eval $(call gb_CppunitTest_use_configuration,sc_cellrangesbase))
$(eval $(call gb_CppunitTest_use_filter_configuration,sc_cellrangesbase))
$(eval $(call gb_CppunitTest_use_extra_configuration,sc_cellrangesbase,\
$(OUTDIR)/unittest/registry \
))
# .../spool is required for the (somewhat strange) filter configuration
# we need to
# a) explicitly depend on library msword because it is not implied by a link
......
......@@ -124,10 +124,13 @@ $(eval $(call gb_CppunitTest_use_components,sc_chart_regression_test,\
xmloff/util/xo \
))
$(eval $(call gb_CppunitTest_set_args,sc_chart_regression_test,\
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry) module:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry/spool) xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/unittest/registry)" \
$(eval $(call gb_CppunitTest_use_configuration,sc_chart_regression_test))
$(eval $(call gb_CppunitTest_use_filter_configuration,sc_chart_regression_test))
$(eval $(call gb_CppunitTest_use_extra_configuration,sc_chart_regression_test,\
$(OUTDIR)/unittest/registry \
))
# .../spool is required for the (somewhat strange) filter configuration
# we need to
# a) explicitly depend on library msword because it is not implied by a link
......
......@@ -116,10 +116,13 @@ $(eval $(call gb_CppunitTest_use_components,sc_databaserangeobj,\
unoxml/source/service/unoxml \
))
$(eval $(call gb_CppunitTest_set_args,sc_databaserangeobj,\
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry) module:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry/spool) xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/unittest/registry)" \
$(eval $(call gb_CppunitTest_use_configuration,sc_databaserangeobj))
$(eval $(call gb_CppunitTest_use_filter_configuration,sc_databaserangeobj))
$(eval $(call gb_CppunitTest_use_extra_configuration,sc_databaserangeobj,\
$(OUTDIR)/unittest/registry \
))
# .../spool is required for the (somewhat strange) filter configuration
# we need to
# a) explicitly depend on library msword because it is not implied by a link
......
......@@ -116,10 +116,13 @@ $(eval $(call gb_CppunitTest_use_components,sc_datapilotfieldobj,\
unoxml/source/service/unoxml \
))
$(eval $(call gb_CppunitTest_set_args,sc_datapilotfieldobj,\
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry) module:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry/spool) xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/unittest/registry)" \
$(eval $(call gb_CppunitTest_use_configuration,sc_datapilotfieldobj))
$(eval $(call gb_CppunitTest_use_filter_configuration,sc_datapilotfieldobj))
$(eval $(call gb_CppunitTest_use_extra_configuration,sc_datapilotfieldobj,\
$(OUTDIR)/unittest/registry \
))
# .../spool is required for the (somewhat strange) filter configuration
# we need to
# a) explicitly depend on library msword because it is not implied by a link
......
......@@ -116,10 +116,13 @@ $(eval $(call gb_CppunitTest_use_components,sc_datapilottableobj,\
unoxml/source/service/unoxml \
))
$(eval $(call gb_CppunitTest_set_args,sc_datapilottableobj,\
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry) module:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry/spool) xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/unittest/registry)" \
$(eval $(call gb_CppunitTest_use_configuration,sc_datapilottableobj))
$(eval $(call gb_CppunitTest_use_filter_configuration,sc_datapilottableobj))
$(eval $(call gb_CppunitTest_use_extra_configuration,sc_datapilottableobj,\
$(OUTDIR)/unittest/registry \
))
# .../spool is required for the (somewhat strange) filter configuration
# we need to
# a) explicitly depend on library msword because it is not implied by a link
......
......@@ -116,10 +116,9 @@ $(eval $(call gb_CppunitTest_use_components,sc_filters_test,\
unoxml/source/service/unoxml \
))
$(eval $(call gb_CppunitTest_set_args,sc_filters_test,\
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry) module:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry/spool)" \
))
# .../spool is required for the (somewhat strange) filter configuration
$(eval $(call gb_CppunitTest_use_configuration,sc_filters_test))
$(eval $(call gb_CppunitTest_use_filter_configuration,sc_filters_test))
# we need to
# a) explicitly depend on library msword because it is not implied by a link
......
......@@ -113,10 +113,13 @@ $(eval $(call gb_CppunitTest_use_components,sc_macros_test,\
unoxml/source/service/unoxml \
))
$(eval $(call gb_CppunitTest_set_args,sc_macros_test,\
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry) module:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry/spool) xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/unittest/registry)" \
$(eval $(call gb_CppunitTest_use_configuration,sc_macros_test))
$(eval $(call gb_CppunitTest_use_filter_configuration,sc_macros_test))
$(eval $(call gb_CppunitTest_use_extra_configuration,sc_macros_test,\
$(OUTDIR)/unittest/registry \
))
# .../spool is required for the (somewhat strange) filter configuration
# we need to
# a) explicitly depend on library msword because it is not implied by a link
......
......@@ -116,10 +116,13 @@ $(eval $(call gb_CppunitTest_use_components,sc_namedrangeobj,\
unoxml/source/service/unoxml \
))
$(eval $(call gb_CppunitTest_set_args,sc_namedrangeobj,\
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry) module:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry/spool) xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/unittest/registry)" \
$(eval $(call gb_CppunitTest_use_configuration,sc_namedrangeobj))
$(eval $(call gb_CppunitTest_use_filter_configuration,sc_namedrangeobj))
$(eval $(call gb_CppunitTest_use_extra_configuration,sc_namedrangeobj,\
$(OUTDIR)/unittest/registry \
))
# .../spool is required for the (somewhat strange) filter configuration
# we need to
# a) explicitly depend on library msword because it is not implied by a link
......
......@@ -116,10 +116,13 @@ $(eval $(call gb_CppunitTest_use_components,sc_namedrangesobj,\
unoxml/source/service/unoxml \
))
$(eval $(call gb_CppunitTest_set_args,sc_namedrangesobj,\
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry) module:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry/spool) xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/unittest/registry)" \
$(eval $(call gb_CppunitTest_use_configuration,sc_namedrangesobj))
$(eval $(call gb_CppunitTest_use_filter_configuration,sc_namedrangesobj))
$(eval $(call gb_CppunitTest_use_extra_configuration,sc_namedrangesobj,\
$(OUTDIR)/unittest/registry \
))
# .../spool is required for the (somewhat strange) filter configuration
# we need to
# a) explicitly depend on library msword because it is not implied by a link
......
......@@ -129,10 +129,9 @@ $(eval $(call gb_CppunitTest_use_components,sc_subsequent_filters_test,\
endif
endif
$(eval $(call gb_CppunitTest_set_args,sc_subsequent_filters_test,\
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry) module:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry/spool)" \
))
# .../spool is required for the (somewhat strange) filter configuration
$(eval $(call gb_CppunitTest_use_configuration,sc_subsequent_filters_test))
$(eval $(call gb_CppunitTest_use_filter_configuration,sc_subsequent_filters_test))
# we need to
# a) explicitly depend on library msword because it is not implied by a link
......
......@@ -116,10 +116,13 @@ $(eval $(call gb_CppunitTest_use_components,sc_tableautoformatfield,\
unoxml/source/service/unoxml \
))
$(eval $(call gb_CppunitTest_set_args,sc_tableautoformatfield,\
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry) module:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry/spool) xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/unittest/registry)" \
$(eval $(call gb_CppunitTest_use_configuration,sc_tableautoformatfield))
$(eval $(call gb_CppunitTest_use_filter_configuration,sc_tableautoformatfield))
$(eval $(call gb_CppunitTest_use_extra_configuration,sc_tableautoformatfield,\
$(OUTDIR)/unittest/registry \
))
# .../spool is required for the (somewhat strange) filter configuration
# we need to
# a) explicitly depend on library msword because it is not implied by a link
......
......@@ -118,10 +118,13 @@ $(eval $(call gb_CppunitTest_use_components,sc_spreadsheetobj,\
unoxml/source/service/unoxml \
))
$(eval $(call gb_CppunitTest_set_args,sc_spreadsheetobj,\
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry) module:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry/spool) xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/unittest/registry)" \
$(eval $(call gb_CppunitTest_use_configuration,sc_spreadsheetobj))
$(eval $(call gb_CppunitTest_use_filter_configuration,sc_spreadsheetobj))
$(eval $(call gb_CppunitTest_use_extra_configuration,sc_spreadsheetobj,\
$(OUTDIR)/unittest/registry \
))
# .../spool is required for the (somewhat strange) filter configuration
# we need to
# a) explicitly depend on library msword because it is not implied by a link
......
......@@ -116,10 +116,13 @@ $(eval $(call gb_CppunitTest_use_components,sc_spreadsheetsobj,\
unoxml/source/service/unoxml \
))
$(eval $(call gb_CppunitTest_set_args,sc_spreadsheetsobj,\
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry) module:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry/spool) xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/unittest/registry)" \
$(eval $(call gb_CppunitTest_use_configuration,sc_spreadsheetsobj))
$(eval $(call gb_CppunitTest_use_filter_configuration,sc_spreadsheetsobj))
$(eval $(call gb_CppunitTest_use_extra_configuration,sc_spreadsheetsobj,\
$(OUTDIR)/unittest/registry \
))
# .../spool is required for the (somewhat strange) filter configuration
# we need to
# a) explicitly depend on library msword because it is not implied by a link
......
......@@ -97,8 +97,6 @@ $(eval $(call gb_CppunitTest_use_components,sc_ucalc,\
unoxml/source/service/unoxml \
))
$(eval $(call gb_CppunitTest_set_args,sc_ucalc,\
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry)" \
))
$(eval $(call gb_CppunitTest_use_configuration,sc_ucalc))
# vim: set noet sw=4 ts=4:
......@@ -106,10 +106,9 @@ $(eval $(call gb_CppunitTest_use_components,sd_filters_test,\
unoxml/source/service/unoxml \
))
$(eval $(call gb_CppunitTest_set_args,sd_filters_test,\
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry) module:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry/spool)" \
))
# .../spool is required for the (somewhat strange) filter configuration
$(eval $(call gb_CppunitTest_use_configuration,sd_filters_test))
$(eval $(call gb_CppunitTest_use_filter_configuration,sd_filters_test))
# we need to explicitly depend on library sdfilt because it is not implied
# by a link relation
......
......@@ -116,11 +116,17 @@ $(eval $(call gb_CppunitTest_use_components,sd_regression_test,\
xmlsecurity/util/xmlsecurity \
))
$(eval $(call gb_CppunitTest_use_configuration,sd_regression_test))
$(eval $(call gb_CppunitTest_use_filter_configuration,sd_regression_test))
$(eval $(call gb_CppunitTest_use_extra_configuration,sd_regression_test,\
$(OUTDIR)/unittest/registry \
))
$(eval $(call gb_CppunitTest_set_args,sd_regression_test,\
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry) module:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry/spool) xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/unittest/registry)" \
"-env:SVG_DISABLE_FONT_EMBEDDING=YEAH" \
))
# .../spool is required for the (somewhat strange) filter configuration
# we need to explicitly depend on library sdfilt because it is not implied
# by a link relation
......
......@@ -82,8 +82,6 @@ $(eval $(call gb_CppunitTest_use_components,sd_uimpress,\
i18npool/util/i18npool \
))
$(eval $(call gb_CppunitTest_set_args,sd_uimpress,\
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry)" \
))
$(eval $(call gb_CppunitTest_use_configuration,sd_uimpress))
# vim: set noet sw=4 ts=4:
......@@ -73,8 +73,6 @@ $(eval $(call gb_CppunitTest_use_components,sdext_pdfimport,\
ucb/source/ucp/file/ucpfile1 \
))
$(eval $(call gb_CppunitTest_set_args,sdext_pdfimport,\
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry)" \
))
$(eval $(call gb_CppunitTest_use_configuration,sdext_pdfimport))
# vim:set shiftwidth=4 softtabstop=4 expandtab:
......@@ -63,6 +63,8 @@ gb_CppunitTarget__make_url = file://$(if $(filter WNT,$(OS_FOR_BUILD)),/)$(strip
define gb_CppunitTest__make_args
$(ARGS) \
--headless \
$(if $(strip $(CONFIGURATION_LAYERS)),\
"-env:CONFIGURATION_LAYERS=$(strip $(CONFIGURATION_LAYERS))") \
$(if $(strip $(UNO_TYPES)),\
"-env:UNO_TYPES=$(foreach item,$(UNO_TYPES),$(call gb_CppunitTarget__make_url,$(item)))") \
$(if $(strip $(UNO_SERVICES)),\
......@@ -117,6 +119,7 @@ $(call gb_CppunitTest_get_target,$(1)) : $(call gb_LinkTarget_get_target,$(2))
$(call gb_CppunitTest_get_clean_target,$(1)) : $(call gb_LinkTarget_get_clean_target,$(2))
$(call gb_CppunitTest_CppunitTest_platform,$(1),$(2),$(gb_CppunitTest_DLLDIR)/$(call gb_CppunitTest_get_libfilename,$(1)))
$(call gb_CppunitTest_get_target,$(1)) : ARGS :=
$(call gb_CppunitTest_get_target,$(1)) : CONFIGURATION_LAYERS :=
$(call gb_CppunitTest_get_target,$(1)) : URE := $(false)
$(call gb_CppunitTest_get_target,$(1)) : UNO_SERVICES :=
$(call gb_CppunitTest_get_target,$(1)) : UNO_TYPES :=
......@@ -266,6 +269,34 @@ endef
gb_ComponentTarget__get_old_component_target = $(OUTDIR)/xml/$(1).component
define gb_CppunitTest__use_configuration
$(call gb_CppunitTest_get_target,$(1)) : CONFIGURATION_LAYERS += $(2):$(call gb_CppunitTarget__make_url,$(3))
endef
# Use standard configuration.
define gb_CppunitTest_use_configuration
$(call gb_CppunitTest_get_target,$(1)) : $(call gb_Configuration_get_target,officecfg)
$(call gb_CppunitTest__use_configuration,$(1),xcsxcu,$(gb_Configuration_registry))
endef
# Use configuration for filters.
#
# Okay, this is not exactly true, because there may be configuration
# for more things than just filters in spool, but it is good enough.
define gb_CppunitTest_use_filter_configuration
$(call gb_CppunitTest_get_target,$(1)) : $(call gb_Configuration_get_target,fcfg_langpack)
$(call gb_CppunitTest__use_configuration,$(1),module,$(gb_Configuration_registry)/spool)
endef
# Use extra configuration dir(s).
define gb_CppunitTest_use_extra_configuration
$(foreach extra,$(2),$(call gb_CppunitTest__use_configuration,$(1),xcsxcu,$(extra)))
endef
define gb_CppunitTest__forward_to_Linktarget
gb_CppunitTest_$(1) = $$(call gb_LinkTarget_$(1),$$(call gb_CppunitTest__get_linktargetname,$$(1)),$$(2),$$(3))
......
......@@ -57,8 +57,6 @@ $(eval $(call gb_CppunitTest_use_components,svtools_filters_test,\
configmgr/source/configmgr \
))
$(eval $(call gb_CppunitTest_set_args,svtools_filters_test,\
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry)" \
))
$(eval $(call gb_CppunitTest_use_configuration,svtools_filters_test))
# vim: set noet sw=4 ts=4:
......@@ -90,9 +90,7 @@ $(eval $(call gb_CppunitTest_use_components,sw_filters_test,\
xmlhelp/util/ucpchelp1 \
))
$(eval $(call gb_CppunitTest_set_args,sw_filters_test,\
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry)" \
))
$(eval $(call gb_CppunitTest_use_configuration,sw_filters_test))
# we need to explicitly depend on library msword because it is not implied
# by a link relation
......
......@@ -113,10 +113,13 @@ $(eval $(call gb_CppunitTest_use_components,sw_layout_test,\
unoxml/source/service/unoxml \
))
$(eval $(call gb_CppunitTest_set_args,sw_layout_test,\
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry) module:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry/spool) xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/unittest/registry)" \
$(eval $(call gb_CppunitTest_use_configuration,sw_layout_test))
$(eval $(call gb_CppunitTest_use_filter_configuration,sw_layout_test))
$(eval $(call gb_CppunitTest_use_extra_configuration,sw_layout_test,\
$(OUTDIR)/unittest/registry \
))
# .../spool is required for the (somewhat strange) filter configuration
# we need to
# a) explicitly depend on library msword because it is not implied by a link
......
......@@ -115,10 +115,13 @@ $(eval $(call gb_CppunitTest_use_components,sw_macros_test,\
unoxml/source/service/unoxml \
))
$(eval $(call gb_CppunitTest_set_args,sw_macros_test,\
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry) module:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry/spool) xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/unittest/registry)" \
$(eval $(call gb_CppunitTest_use_configuration,sw_macros_test))
$(eval $(call gb_CppunitTest_use_filter_configuration,sw_macros_test))
$(eval $(call gb_CppunitTest_use_extra_configuration,sw_macros_test,\
$(OUTDIR)/unittest/registry \
))
# .../spool is required for the (somewhat strange) filter configuration
# we need to
# a) explicitly depend on library msword because it is not implied by a link
......
......@@ -115,10 +115,13 @@ $(eval $(call gb_CppunitTest_use_components,sw_regression_test,\
unoxml/source/service/unoxml \
))
$(eval $(call gb_CppunitTest_set_args,sw_regression_test,\
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry) module:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry/spool) xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/unittest/registry)" \
$(eval $(call gb_CppunitTest_use_configuration,sw_regression_test))
$(eval $(call gb_CppunitTest_use_filter_configuration,sw_regression_test))
$(eval $(call gb_CppunitTest_use_extra_configuration,sw_regression_test,\
$(OUTDIR)/unittest/registry \
))
# .../spool is required for the (somewhat strange) filter configuration
# we need to
# a) explicitly depend on library msword because it is not implied by a link
......
......@@ -74,8 +74,12 @@ $(eval $(call gb_CppunitTest_use_components,sw_subsequent_ooxmltok,\
writerfilter/util/writerfilter \
))
$(eval $(call gb_CppunitTest_set_args,sw_subsequent_ooxmltok,\
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry) module:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry/spool) xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/unittest/registry)" \
$(eval $(call gb_CppunitTest_use_configuration,sw_subsequent_ooxmltok))
$(eval $(call gb_CppunitTest_use_filter_configuration,sw_subsequent_ooxmltok))
$(eval $(call gb_CppunitTest_use_extra_configuration,sw_subsequent_ooxmltok,\
$(OUTDIR)/unittest/registry \
))
# vim: set noet sw=4 ts=4:
......@@ -68,8 +68,12 @@ $(eval $(call gb_CppunitTest_use_components,sw_subsequent_rtftok,\
writerfilter/util/writerfilter \
))
$(eval $(call gb_CppunitTest_set_args,sw_subsequent_rtftok,\
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry) module:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry/spool) xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/unittest/registry)" \
$(eval $(call gb_CppunitTest_use_configuration,sw_subsequent_rtftok))
$(eval $(call gb_CppunitTest_use_filter_configuration,sw_subsequent_rtftok))
$(eval $(call gb_CppunitTest_use_extra_configuration,sw_subsequent_rtftok,\
$(OUTDIR)/unittest/registry \
))
# vim: set noet sw=4 ts=4:
......@@ -97,9 +97,7 @@ $(eval $(call gb_CppunitTest_use_components,sw_swdoc_test,\
unoxml/source/service/unoxml \
))
$(eval $(call gb_CppunitTest_set_args,sw_swdoc_test,\
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry)" \
))
$(eval $(call gb_CppunitTest_use_configuration,sw_swdoc_test))
# we need to explicitly depend on the sw resource files needed at unit-test
# runtime
......
......@@ -59,9 +59,7 @@ $(eval $(call gb_CppunitTest_use_components,writerfilter_rtftok,\
writerfilter/util/writerfilter \
))
$(eval $(call gb_CppunitTest_set_args,writerfilter_rtftok,\
"-env:CONFIGURATION_LAYERS=xcsxcu:$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry)" \
))
$(eval $(call gb_CppunitTest_use_configuration,writerfilter_rtftok))
# we need to explicitly depend on library rtftok and writerfilter because it is not implied
# by a link relation
......
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