Skip to content

Commit

Permalink
simplify use of configuration from unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dtardon committed Apr 8, 2012
1 parent e5f16b8 commit e3cf2b4
Show file tree
Hide file tree
Showing 34 changed files with 162 additions and 99 deletions.
9 changes: 6 additions & 3 deletions dbaccess/CppunitTest_dbaccess_macros_test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions extensions/CppunitTest_extensions_test_update.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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:
4 changes: 1 addition & 3 deletions filter/CppunitTest_filter_tga_test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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:
4 changes: 1 addition & 3 deletions filter/CppunitTest_filter_tiff_test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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:
4 changes: 1 addition & 3 deletions hwpfilter/CppunitTest_hwpfilter_test_hwpfilter.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions lotuswordpro/CppunitTest_lotuswordpro_test_lotuswordpro.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 6 additions & 3 deletions sc/CppunitTest_sc_cellrangeobj.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 6 additions & 3 deletions sc/CppunitTest_sc_chart_regression_test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 6 additions & 3 deletions sc/CppunitTest_sc_databaserangeobj.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 6 additions & 3 deletions sc/CppunitTest_sc_datapilotfieldobj.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 6 additions & 3 deletions sc/CppunitTest_sc_datapilottableobj.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 3 additions & 4 deletions sc/CppunitTest_sc_filters_test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 6 additions & 3 deletions sc/CppunitTest_sc_macros_test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 6 additions & 3 deletions sc/CppunitTest_sc_namedrangeobj.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 6 additions & 3 deletions sc/CppunitTest_sc_namedrangesobj.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 3 additions & 4 deletions sc/CppunitTest_sc_subsequent_filters_test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 6 additions & 3 deletions sc/CppunitTest_sc_tableautoformatfield.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 6 additions & 3 deletions sc/CppunitTest_sc_tablesheetobj.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 6 additions & 3 deletions sc/CppunitTest_sc_tablesheetsobj.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions sc/CppunitTest_sc_ucalc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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:
7 changes: 3 additions & 4 deletions sd/CppunitTest_sd_filters_test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 8 additions & 2 deletions sd/CppunitTest_sd_regression_test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions sd/CppunitTest_sd_uimpress.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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:
4 changes: 1 addition & 3 deletions sdext/CppunitTest_pdfimport.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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:
31 changes: 31 additions & 0 deletions solenv/gbuild/CppunitTest.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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)),\
Expand Down Expand Up @@ -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 :=
Expand Down Expand Up @@ -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))

Expand Down
Loading

0 comments on commit e3cf2b4

Please sign in to comment.