diff options
author | Michael Meeks <michael.meeks@suse.com> | 2013-06-11 12:16:18 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2013-06-11 14:41:51 +0100 |
commit | 02ee261150c350f85c55925d01ed342b8a1854c0 (patch) | |
tree | fa642c982d80ea42d3fd9a8e0bc9a4f53fd4046e /solenv | |
parent | 2b2f00e03cb4ad2abfe7787d966b67dabe6fb408 (diff) |
Allow --headless to be disabled for unit tests.
Change-Id: I9f2a97715dc0d7fc5905afb1b908de97acdafc57
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/CppunitTest.mk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/solenv/gbuild/CppunitTest.mk b/solenv/gbuild/CppunitTest.mk index fd4b1222d5d5..2e5d4df710b4 100644 --- a/solenv/gbuild/CppunitTest.mk +++ b/solenv/gbuild/CppunitTest.mk @@ -51,7 +51,7 @@ gb_CppunitTest_CPPTESTCOMMAND := $(call gb_Executable_get_target_for_build,cppun gb_CppunitTest__get_linktargetname = CppunitTest/$(call gb_CppunitTest_get_filename,$(1)) define gb_CppunitTest__make_args ---headless \ +$(HEADLESS) \ "-env:BRAND_BASE_DIR=$(call gb_Helper_make_url,$(OUTDIR)/unittest/install)" \ $(if $(URE),\ $(if $(strip $(CONFIGURATION_LAYERS)),\ @@ -127,6 +127,7 @@ $(call gb_CppunitTest_get_target,$(1)) : UNO_SERVICES := $(call gb_CppunitTest_get_target,$(1)) : UNO_TYPES := $(call gb_CppunitTest_get_target,$(1)) : DBGSV_ERROR_OUT := shell $(call gb_CppunitTest_get_target,$(1)) : SAL_DIAGNOSE_ABORT := +$(call gb_CppunitTest_get_target,$(1)) : HEADLESS := --headless $$(eval $$(call gb_Module_register_target,$(call gb_CppunitTest_get_target,$(1)),$(call gb_CppunitTest_get_clean_target,$(1)))) $(call gb_Helper_make_userfriendly_targets,$(1),CppunitTest) @@ -285,6 +286,11 @@ $(call gb_CppunitTest__use_configuration,$(1),xcsxcu,$(gb_Configuration_registry endef +define gb_CppunitTest_unset_headless +$(call gb_CppunitTest_get_target,$(1)) : HEADLESS= + +endef + # Use configuration for filters. # # Okay, this is not exactly true, because there may be configuration |