[Python-modules-commits] r30697 - in packages/python-pygraphviz/trunk/debian (changelog rules)

morph at users.alioth.debian.org morph at users.alioth.debian.org
Sun Sep 21 09:25:59 UTC 2014


    Date: Sunday, September 21, 2014 @ 09:25:58
  Author: morph
Revision: 30697

* debian/rules
  - run tests at build time

Modified:
  packages/python-pygraphviz/trunk/debian/changelog
  packages/python-pygraphviz/trunk/debian/rules

Modified: packages/python-pygraphviz/trunk/debian/changelog
===================================================================
--- packages/python-pygraphviz/trunk/debian/changelog	2014-09-21 07:56:12 UTC (rev 30696)
+++ packages/python-pygraphviz/trunk/debian/changelog	2014-09-21 09:25:58 UTC (rev 30697)
@@ -9,8 +9,10 @@
     - switch me to Maintainer (team to Uploaders)
   * debian/README.source
     - removed, no longer needed
+  * debian/rules
+    - run tests at build time
 
- -- Sandro Tosi <morph at debian.org>  Sun, 21 Sep 2014 08:55:58 +0100
+ -- Sandro Tosi <morph at debian.org>  Sun, 21 Sep 2014 10:20:47 +0100
 
 python-pygraphviz (1.2-1) unstable; urgency=low
 

Modified: packages/python-pygraphviz/trunk/debian/rules
===================================================================
--- packages/python-pygraphviz/trunk/debian/rules	2014-09-21 07:56:12 UTC (rev 30696)
+++ packages/python-pygraphviz/trunk/debian/rules	2014-09-21 09:25:58 UTC (rev 30697)
@@ -22,3 +22,14 @@
 
 override_dh_installdocs:
 	dh_installdocs --link-doc=python-pygraphviz
+
+override_dh_auto_test:
+ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
+	set -e; \
+	for python in $(PYTHON2); do \
+		LIB=$$($$python -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print (b.build_purelib)") ; \
+		PYTHONPATH=$$LIB $$python pygraphviz/tests/test.py ; \
+		LIB=$$($$python-dbg -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print (b.build_purelib)") ; \
+		PYTHONPATH=$$LIB $$python-dbg pygraphviz/tests/test.py ; \
+	done
+endif




More information about the Python-modules-commits mailing list