summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-04-26 16:30:16 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-04-26 16:34:16 +0200
commit489e588ff749e5f673d10baa6b79fa6bbee68574 (patch)
tree2d31ce895bdee54a1370f218300e2deee3287ac6 /solenv
parent008b5c6ae6efd51b1e40a2efb41e49645b1d8ad0 (diff)
At least for now, PythonTest runs against dev-install tree
...so clean up. (Changing this might be tricky, esp. on Windows where the python.exe wrapper adds the dev-install tree's dirs to PATH, so trying to run tests against solver instead of dev-install tree libs will result in chaos. This will become moot when we finally have solver == dev-install.) Change-Id: Icbfc3928a7ff178fd86d78d15ffcf539557efbb4
Diffstat (limited to 'solenv')
-rw-r--r--solenv/gbuild/PythonTest.mk56
1 files changed, 1 insertions, 55 deletions
diff --git a/solenv/gbuild/PythonTest.mk b/solenv/gbuild/PythonTest.mk
index ac95b29fac9b..46803af5b7c8 100644
--- a/solenv/gbuild/PythonTest.mk
+++ b/solenv/gbuild/PythonTest.mk
@@ -53,61 +53,12 @@ $(call gb_PythonTest_get_target,%) :
define gb_PythonTest_PythonTest
$(call gb_PythonTest_get_target,$(1)) : PYPATH := $(SRCDIR)/unotest/source/python:$(gb_DEVINSTALLROOT)/program
$(call gb_PythonTest_get_target,$(1)) : MODULES :=
-$(call gb_PythonTest_get_target,$(1)) : CONFIGURATION_LAYERS :=
-$(call gb_PythonTest_get_target,$(1)) : UNO_TYPES :=
-$(call gb_PythonTest_get_target,$(1)) : UNO_SERVICES :=
-
-$(call gb_PythonTest_use_api,$(1),udkapi)
-$(call gb_PythonTest_use_rdb,$(1),ure/services)
$(eval $(call gb_Module_register_target,$(call gb_PythonTest_get_target,$(1)),$(call gb_PythonTest_get_clean_target,$(1))))
$(call gb_Helper_make_userfriendly_targets,$(1),PythonTest)
endef
-define gb_PythonTest_use_configuration
-$(call gb_PythonTest_get_target,$(1)) : \
- $(call gb_Configuration_get_target,registry) \
- $(call gb_Configuration_get_target,fcfg_langpack) \
- $(call gb_Package_get_target,test_unittest)
-$(call gb_PythonTest_get_target,$(1)) : CONFIGURATION_LAYERS += \
- xcsxcu:$(call gb_Helper_make_url,$(gb_Configuration_registry)) \
- module:$(call gb_Helper_make_url,$(gb_Configuration_registry)/spool) \
- xcsxcu:$(call gb_Helper_make_url,$(OUTDIR)/unittest/registry)
-
-endef
-
-define gb_PythonTest__use_api
-$(call gb_PythonTest_get_target,$(1)) : $(call gb_UnoApi_get_target,$(2))
-$(call gb_PythonTest_get_target,$(1)) : \
- UNO_TYPES += $(call gb_UnoApi_get_target,$(2))
-
-endef
-
-define gb_PythonTest_use_api
-$(foreach api,$(2),$(call gb_PythonTest__use_api,$(1),$(api)))
-endef
-
-define gb_PythonTest_use_rdb
-$(call gb_PythonTest_get_target,$(1)) : $(call gb_Rdb_get_outdir_target,$(2))
-$(call gb_PythonTest_get_target,$(1)) : \
- UNO_SERVICES += $(call gb_Rdb_get_outdir_target,$(2))
-
-endef
-
-define gb_PythonTest_use_component
-$(call gb_PythonTest_get_target,$(1)) : \
- $(call gb_ComponentTarget_get_outdir_target,$(2))
-$(call gb_PythonTest_get_target,$(1)) : \
- UNO_SERVICES += $(call gb_ComponentTarget_get_outdir_target,$(2))
-
-endef
-
-define gb_PythonTest_use_components
-$(foreach component,$(call gb_CppunitTest__filter_not_built_components,$(2)),$(call gb_PythonTest_use_component,$(1),$(component)))
-
-endef
-
# put the directory on the PYTHONPATH because the "unittest" loader
# mysteriously fails to load modules given as absolute path unless the $PWD is
# a prefix of the absolute path, which it is not when we go into a certain
@@ -139,12 +90,7 @@ $(call gb_Helper_make_userfriendly_targets,$(1),PythonTest)
endef
-gb_PythonTest_use_configuration :=
-gb_PythonTest_use_api :=
-gb_PythonTest_use_rdb :=
-gb_PythonTest_use_components :=
-gb_PythonTest_add_classes :=
-gb_PythonTest_add_class :=
+gb_PythonTest_add_modules :=
gb_PythonTest_use_customtarget :=
endif # DISABLE_PYTHON