[Python-modules-commits] r13625 - in packages/python-django-threadedcomments/trunk/debian (rules)

ockham-guest at users.alioth.debian.org ockham-guest at users.alioth.debian.org
Fri Jun 25 15:52:14 UTC 2010


    Date: Friday, June 25, 2010 @ 15:52:09
  Author: ockham-guest
Revision: 13625

Add override_dh_auto_test target that runs the included tests.

Modified:
  packages/python-django-threadedcomments/trunk/debian/rules

Modified: packages/python-django-threadedcomments/trunk/debian/rules
===================================================================
--- packages/python-django-threadedcomments/trunk/debian/rules	2010-06-25 15:29:40 UTC (rev 13624)
+++ packages/python-django-threadedcomments/trunk/debian/rules	2010-06-25 15:52:09 UTC (rev 13625)
@@ -3,6 +3,15 @@
 %:
 	dh $@
 
+override_dh_auto_test:
+ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
+	set -e; \
+	cd tests; \
+	for python in $(shell pyversions -r); do \
+		$$python runtests.py; \
+	done
+endif
+
 override_dh_auto_clean:
 	dh_auto_clean
 	rm -rf django_threadedcomments.egg-info




More information about the Python-modules-commits mailing list