[Python-modules-commits] r13248 - in packages/pdfminer/trunk/debian (rules)

jwilk at users.alioth.debian.org jwilk at users.alioth.debian.org
Sat Jun 5 12:14:04 UTC 2010


    Date: Saturday, June 5, 2010 @ 12:13:36
  Author: jwilk
Revision: 13248

Run tests with all supported Python versions.

Modified:
  packages/pdfminer/trunk/debian/rules

Modified: packages/pdfminer/trunk/debian/rules
===================================================================
--- packages/pdfminer/trunk/debian/rules	2010-06-05 11:42:57 UTC (rev 13247)
+++ packages/pdfminer/trunk/debian/rules	2010-06-05 12:13:36 UTC (rev 13248)
@@ -14,6 +14,16 @@
 	rename.ul .py '' debian/tmp/usr/bin/*.py
 	dh_install --fail-missing
 
+.PHONY: override_dh_auto_test
+override_dh_auto_test:
+ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
+	set -e -x; \
+	for python in $(shell pyversions -r); do \
+		$(MAKE) -C samples clean; \
+		$(MAKE) -C samples PYTHON=$$python CMP="diff -u" test; \
+	done
+endif
+
 .PHONY: build build-arch build-indep binary binary-arch binary-indep clean
 build build-arch build-indep binary binary-indep clean:
 	dh $(@)




More information about the Python-modules-commits mailing list