[Python-modules-commits] [fake-factory] 05/13: Support running the testsuite

Christopher Baines cbaines-guest at moszumanska.debian.org
Sun Feb 7 21:14:25 UTC 2016


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

cbaines-guest pushed a commit to branch master
in repository fake-factory.

commit ad667dcc243c023b8e4e276fa109d30533c696a6
Author: Christopher Baines <mail at cbaines.net>
Date:   Sat Jan 2 10:50:07 2016 +0000

    Support running the testsuite
---
 debian/rules | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/debian/rules b/debian/rules
index f1a4f64..1f9f676 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,8 +1,18 @@
 #!/usr/bin/make -f
 
+PYTHONS:=$(shell pyversions -vr)
+PYTHON3S:=$(shell py3versions -vr)
+
 # This file was automatically generated by stdeb 0.8.5 at
 # Tue, 22 Dec 2015 10:08:09 +0000
 export PYBUILD_NAME=fake-factory
 %:
 	dh $@ --with python2 --with=python3 --buildsystem=pybuild
 
+override_dh_auto_test:
+ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
+	set -ex ; for i in $(PYTHONS) $(PYTHON3S) ; do \
+		python$$i -c "import faker.tests"; \
+		pwd; ls -l; find faker/tests; python$$i -W default -m unittest --verbose faker.tests ; \
+	done
+endif

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



More information about the Python-modules-commits mailing list