[Python-modules-commits] [pytest-qt] 03/04: Run the tests at build time

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Sun Jul 30 20:16:01 UTC 2017


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository pytest-qt.

commit 6c06b16acfff61448bdebda1fc690c6cbc29a972
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Sun Jul 30 13:55:28 2017 +0100

    Run the tests at build time
---
 debian/control | 5 ++++-
 debian/rules   | 9 +++++++--
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/debian/control b/debian/control
index 4844b41..7d92159 100644
--- a/debian/control
+++ b/debian/control
@@ -7,12 +7,15 @@ Build-Depends: debhelper (>= 10),
                dh-python,
                dpkg-dev (>= 1.17.14),
                python3-all,
+               python3-pyqt5 <!nocheck>,
                python3-pytest (>= 2.7.0),
                python3-setuptools,
                python3-setuptools-scm,
                python3-sphinx <!nodoc>,
                python3-sphinx-rtd-theme <!nodoc>,
-               sphinx-common
+               sphinx-common,
+               xauth <!nocheck>,
+               xvfb <!nocheck>
 Standards-Version: 4.0.0
 Vcs-Browser: https://anonscm.debian.org/git/python-modules/packages/pytest-qt.git
 Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/pytest-qt.git
diff --git a/debian/rules b/debian/rules
index 92d57f4..ff8c74d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,8 +4,8 @@
 #export DH_VERBOSE = 1
 
 export PYBUILD_NAME = pytestqt
-# The tests can only be run against the installed package.
-export PYBUILD_DISABLE = test
+export PYBUILD_BEFORE_TEST = cp -r {dir}/*.egg-info {build_dir}
+export PYBUILD_AFTER_TEST = rm -rf {build_dir}/*.egg-info
 
 %:
 	dh $@ --with python3,sphinxdoc --buildsystem=pybuild
@@ -23,3 +23,8 @@ override_dh_auto_build:
 ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
 	PYTHONPATH=$(CURDIR) $(MAKE) -C docs html
 endif
+
+override_dh_auto_test:
+ifeq (,$(findstring nocheck,$(DEB_BUILD_PROFILES)))
+	xvfb-run -a dh_auto_test
+endif

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pytest-qt.git



More information about the Python-modules-commits mailing list