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

rename gb_CppunitTest_set_arguments

It does not actually _set_ the command line arguments, but rather _adds_
to them. IMHO the new name reflects this fact better.
üst e3cf2b45
...@@ -124,7 +124,7 @@ $(eval $(call gb_CppunitTest_use_extra_configuration,sd_regression_test,\ ...@@ -124,7 +124,7 @@ $(eval $(call gb_CppunitTest_use_extra_configuration,sd_regression_test,\
$(OUTDIR)/unittest/registry \ $(OUTDIR)/unittest/registry \
)) ))
$(eval $(call gb_CppunitTest_set_args,sd_regression_test,\ $(eval $(call gb_CppunitTest_add_arguments,sd_regression_test,\
"-env:SVG_DISABLE_FONT_EMBEDDING=YEAH" \ "-env:SVG_DISABLE_FONT_EMBEDDING=YEAH" \
)) ))
......
...@@ -48,9 +48,7 @@ else ...@@ -48,9 +48,7 @@ else
my_soffice:=path:$(OUTDIR)/installation/opt/program/soffice my_soffice:=path:$(OUTDIR)/installation/opt/program/soffice
endif endif
$(eval $(call gb_CppunitTest_set_args,smoketest,\ $(eval $(call gb_CppunitTest_add_arguments,smoketest,\
-env:UNO_SERVICES=$(call gb_CppunitTarget__make_url,$(OUTDIR)/xml/ure/services.rdb) \
-env:UNO_TYPES=$(call gb_CppunitTarget__make_url,$(OUTDIR)/bin/types.rdb) \
-env:arg-soffice=$(my_soffice) \ -env:arg-soffice=$(my_soffice) \
-env:arg-user=$(WORKDIR)/CustomTarget/smoketest \ -env:arg-user=$(WORKDIR)/CustomTarget/smoketest \
-env:arg-env=$(gb_Helper_LIBRARY_PATH_VAR)"$$$${$(gb_Helper_LIBRARY_PATH_VAR)+=$$$$$(gb_Helper_LIBRARY_PATH_VAR)}" \ -env:arg-env=$(gb_Helper_LIBRARY_PATH_VAR)"$$$${$(gb_Helper_LIBRARY_PATH_VAR)+=$$$$$(gb_Helper_LIBRARY_PATH_VAR)}" \
......
...@@ -61,7 +61,6 @@ gb_CppunitTest__get_linktargetname = CppunitTest/$(call gb_CppunitTest_get_filen ...@@ -61,7 +61,6 @@ gb_CppunitTest__get_linktargetname = CppunitTest/$(call gb_CppunitTest_get_filen
gb_CppunitTarget__make_url = file://$(if $(filter WNT,$(OS_FOR_BUILD)),/)$(strip $(1)) gb_CppunitTarget__make_url = file://$(if $(filter WNT,$(OS_FOR_BUILD)),/)$(strip $(1))
define gb_CppunitTest__make_args define gb_CppunitTest__make_args
$(ARGS) \
--headless \ --headless \
$(if $(strip $(CONFIGURATION_LAYERS)),\ $(if $(strip $(CONFIGURATION_LAYERS)),\
"-env:CONFIGURATION_LAYERS=$(strip $(CONFIGURATION_LAYERS))") \ "-env:CONFIGURATION_LAYERS=$(strip $(CONFIGURATION_LAYERS))") \
...@@ -72,7 +71,8 @@ $(if $(strip $(UNO_SERVICES)),\ ...@@ -72,7 +71,8 @@ $(if $(strip $(UNO_SERVICES)),\
$(if $(URE),\ $(if $(URE),\
$(foreach dir,URE_INTERNAL_LIB_DIR LO_LIB_DIR,\ $(foreach dir,URE_INTERNAL_LIB_DIR LO_LIB_DIR,\
-env:$(dir)=$(call gb_CppunitTarget__make_url,$(gb_CppunitTest_LIBDIR))) \ -env:$(dir)=$(call gb_CppunitTarget__make_url,$(gb_CppunitTest_LIBDIR))) \
--protector unoexceptionprotector$(gb_Library_DLLEXT) unoexceptionprotector) --protector unoexceptionprotector$(gb_Library_DLLEXT) unoexceptionprotector) \
$(ARGS)
endef endef
.PHONY : $(call gb_CppunitTest_get_clean_target,%) .PHONY : $(call gb_CppunitTest_get_clean_target,%)
...@@ -136,7 +136,15 @@ $(call gb_CppunitTest_get_target,$(1)) : SAL_DIAGNOSE_ABORT := TRUE ...@@ -136,7 +136,15 @@ $(call gb_CppunitTest_get_target,$(1)) : SAL_DIAGNOSE_ABORT := TRUE
endef endef
define gb_CppunitTest_set_args define gb_CppunitTest_set_args
$(call gb_CppunitTest_get_target,$(1)) : ARGS := $(2) $$(call gb_Output_error,gb_CppunitTest_set_args: use gb_CppunitTest_add_arguments instead.))
endef
# Add additional command line arguments for the test.
#
# You should practically never need to use this, as there are special
# functions for adding many commonly used arguments.
define gb_CppunitTest_add_arguments
$(call gb_CppunitTest_get_target,$(1)) : ARGS += $(2)
endef endef
......
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