From 4aa7d7f3a9cfc3b67279f3ed4853db4f60de3d00 Mon Sep 17 00:00:00 2001
From: Daniele Tricoli <eriol@mornie.org>
Date: Tue, 27 May 2014 14:42:20 +0000
Subject: Enabled tests at build time also for Python 3 using the custom build
 plugin for tests

---
 debian/rules | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

(limited to 'debian/rules')

diff --git a/debian/rules b/debian/rules
index 364062f..7e92dea 100755
--- a/debian/rules
+++ b/debian/rules
@@ -21,17 +21,8 @@ override_dh_auto_install:
 		-d $(CURDIR)/debian/tmp/usr/share/python-wheels
 
 override_dh_auto_test:
-ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
-	set -ex; \
-	for python in $(PYVERS); do \
-		$$python setup.py nosetests; \
-	done
-
-	set -ex; \
-	for python in $(PY3VERS); do \
-		$$python setup.py nosetests; \
-	done
-endif
+	PYBUILD_SYSTEM=custom \
+	PYBUILD_TEST_ARGS="{interpreter} -m nose" dh_auto_test
 
 override_dh_installchangelogs:
 	dh_installchangelogs CHANGES.rst
-- 
cgit v1.2.3