Kaydet (Commit) 4e887567 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

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
üst 52e99e9e
...@@ -60,6 +60,12 @@ endif ...@@ -60,6 +60,12 @@ endif
endif # SYSTEM_PYTHON endif # SYSTEM_PYTHON
ifneq (,$(filter PythonTest_pytests,$(MAKECMDGOALS)))
$(eval $(call gb_Module_add_targets,pyuno, \
PythonTest_pytests \
))
endif
endif # DISABLE_PYTHON endif # DISABLE_PYTHON
# vim:set noet sw=4 ts=4: # vim:set noet sw=4 ts=4:
# -*- 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:
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