From 4e887567c5b4b06646ab1340376e240d6c5af9cb Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 20 Feb 2014 11:53:01 +0100 Subject: A rudimentary framework for additional Python tests not run by default * see the mail thread starting at "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 --- pyuno/Module_pyuno.mk | 6 ++++++ pyuno/PythonTest_pytests.mk | 28 ++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 pyuno/PythonTest_pytests.mk (limited to 'pyuno') 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: -- cgit