[Python-modules-commits] r23496 - in packages/pyasn1/trunk/debian (changelog rules)

yoh at users.alioth.debian.org yoh at users.alioth.debian.org
Sat Feb 16 21:15:48 UTC 2013


    Date: Saturday, February 16, 2013 @ 21:15:46
  Author: yoh
Revision: 23496

debian/rules: run tests (test/suite.py) upon build

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

Modified: packages/pyasn1/trunk/debian/changelog
===================================================================
--- packages/pyasn1/trunk/debian/changelog	2013-02-16 21:15:27 UTC (rev 23495)
+++ packages/pyasn1/trunk/debian/changelog	2013-02-16 21:15:46 UTC (rev 23496)
@@ -2,6 +2,8 @@
 
   * Team upload
   * New upstream release (Closes: #691421)
+  * debian/rules:
+    - run tests (test/suite.py) upon build
 
  -- Yaroslav Halchenko <debian at onerussian.com>  Sat, 16 Feb 2013 15:56:09 -0500
 

Modified: packages/pyasn1/trunk/debian/rules
===================================================================
--- packages/pyasn1/trunk/debian/rules	2013-02-16 21:15:27 UTC (rev 23495)
+++ packages/pyasn1/trunk/debian/rules	2013-02-16 21:15:46 UTC (rev 23496)
@@ -10,3 +10,12 @@
 # Install egg-info directories
 DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed \
 	--install-layout=deb
+
+test-build:
+	set -e; cd test; for buildver in $(cdbs_python_build_versions); do \
+        echo "I: Running pyasn1 unittests using python$$buildver"; \
+        pd=$$(/bin/ls -d $(CURDIR)/build/lib.*-$$buildver) && \
+        PYTHONPATH=$$pd $(call cdbs_python_binary,python$$buildver) suite.py; \
+    done
+
+install/python-pyasn1:: test-build




More information about the Python-modules-commits mailing list