[Python-modules-commits] r21539 - in packages/simplegeneric/trunk/debian (changelog rules)

eriol-guest at users.alioth.debian.org eriol-guest at users.alioth.debian.org
Fri May 4 04:21:22 UTC 2012


    Date: Friday, May 4, 2012 @ 04:21:19
  Author: eriol-guest
Revision: 21539

Run tests at build time

Modified:
  packages/simplegeneric/trunk/debian/changelog
  packages/simplegeneric/trunk/debian/rules

Modified: packages/simplegeneric/trunk/debian/changelog
===================================================================
--- packages/simplegeneric/trunk/debian/changelog	2012-05-04 04:00:36 UTC (rev 21538)
+++ packages/simplegeneric/trunk/debian/changelog	2012-05-04 04:21:19 UTC (rev 21539)
@@ -20,8 +20,9 @@
     - Upstream switched to ZPL-2.1
   * debian/rules
     - Clean properly to build packages twice in a row
+    - Run tests at build time
 
- -- Daniele Tricoli <eriol at mornie.org>  Fri, 04 May 2012 05:57:50 +0200
+ -- Daniele Tricoli <eriol at mornie.org>  Fri, 04 May 2012 06:20:10 +0200
 
 simplegeneric (0.7-1) unstable; urgency=low
 

Modified: packages/simplegeneric/trunk/debian/rules
===================================================================
--- packages/simplegeneric/trunk/debian/rules	2012-05-04 04:00:36 UTC (rev 21538)
+++ packages/simplegeneric/trunk/debian/rules	2012-05-04 04:21:19 UTC (rev 21539)
@@ -14,6 +14,11 @@
 		$$python setup.py build; \
 	done
 
+override_dh_auto_clean:
+	rm -rf build
+	rm -rf *.egg-info
+	dh_auto_clean
+
 override_dh_auto_install:
 	set -ex; \
 	for python in $(PYVERS); do \
@@ -29,7 +34,10 @@
 			--install-layout deb; \
 	done
 
-override_dh_auto_clean:
-	rm -rf build
-	rm -rf *.egg-info
-	dh_auto_clean
\ No newline at end of file
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+	set -ex; \
+	for python in $(PYVERS) $(PY3VERS); do \
+		$$python setup.py test -vv; \
+	done
+endif




More information about the Python-modules-commits mailing list