summaryrefslogtreecommitdiff
path: root/pyuno
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-02-20 11:53:01 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-02-20 12:01:34 +0100
commit4e887567c5b4b06646ab1340376e240d6c5af9cb (patch)
tree79eebd13514deff9d8520bd2b38fd96085be954a /pyuno
parent52e99e9e957a228d95d55935acc96175ee494f30 (diff)
A rudimentary framework for additional Python tests not run by default
* see the mail thread starting at <http://lists.freedesktop.org/archives/libreoffice/2014-February/059548.html> "Testing/Working on PyUNO?" for a rationale * run the tests via top-level "make PythonTest_pytests" or "cd pyuno && make -rs PythonTest_pytests" or similar * see the documentation in pyuno/PythonTest_pytests.mk for adding tests to the framework Change-Id: I6a2a9e60b3294cd649f9cccbaffbd3f6bd79ecff
Diffstat (limited to 'pyuno')
-rw-r--r--pyuno/Module_pyuno.mk6
-rw-r--r--pyuno/PythonTest_pytests.mk28
2 files changed, 34 insertions, 0 deletions
diff --git a/pyuno/Module_pyuno.mk b/pyuno/Module_pyuno.mk
index 28aef7134f05..31c831a2e1d4 100644
--- a/pyuno/Module_pyuno.mk
+++ b/pyuno/Module_pyuno.mk
@@ -60,6 +60,12 @@ endif
endif # SYSTEM_PYTHON
+ifneq (,$(filter PythonTest_pytests,$(MAKECMDGOALS)))
+$(eval $(call gb_Module_add_targets,pyuno, \
+ PythonTest_pytests \
+))
+endif
+
endif # DISABLE_PYTHON
# vim:set noet sw=4 ts=4:
diff --git a/pyuno/PythonTest_pytests.mk b/pyuno/PythonTest_pytests.mk
new file mode 100644
index 000000000000..afb4ba52291a
--- /dev/null
+++ b/pyuno/PythonTest_pytests.mk
@@ -0,0 +1,28 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+# Dummy .mk to have a single "make PythonTest_pytests" goal to run all the
+# pyuno/PythonTest_pyuno_pytests_*.mk tests (which are not run by default).
+#
+# To add a new test pyuno/PythonTest_pyuno_pytests_NEW.mk, add
+#
+# $(call gb_PythonTest_get_target,pyuno_pytests_NEW) \
+#
+# to the below list and
+#
+# PythonTest_pyuno_pytests_NEW \
+#
+# to the list in the "ifneq (,$(filter PythonTest_pytests,$(MAKECMDGOALS)))"
+# section of pyuno/Module_pyuno.mk.
+
+$(eval $(call gb_PythonTest_PythonTest,pytests))
+
+$(call gb_PythonTest_get_target,pytests) : \
+
+# vim: set noet sw=4 ts=4: