[Python-modules-commits] r8686 - in packages/pyopenssl/trunk/debian (changelog rules)

morph at users.alioth.debian.org morph at users.alioth.debian.org
Tue Jun 2 22:44:23 UTC 2009


    Date: Tuesday, June 2, 2009 @ 22:44:22
  Author: morph
Revision: 8686

* debian/rules
  - running tests at build time, still experimental support
  - refactored to use supported python version (and not python executables
    names) during loops

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

Modified: packages/pyopenssl/trunk/debian/changelog
===================================================================
--- packages/pyopenssl/trunk/debian/changelog	2009-06-02 22:22:03 UTC (rev 8685)
+++ packages/pyopenssl/trunk/debian/changelog	2009-06-02 22:44:22 UTC (rev 8686)
@@ -13,8 +13,12 @@
     - removed transitional packages
   * debian/copyright
     - updated copyright years for upstream work
+  * debian/rules
+    - running tests at build time, still experimental support
+    - refactored to use supported python version (and not python executables
+      names) during loops
 
- -- Sandro Tosi <morph at debian.org>  Wed, 20 May 2009 00:45:39 +0200
+ -- Sandro Tosi <morph at debian.org>  Wed, 03 Jun 2009 00:37:59 +0200
 
 pyopenssl (0.8-1) unstable; urgency=low
 

Modified: packages/pyopenssl/trunk/debian/rules
===================================================================
--- packages/pyopenssl/trunk/debian/rules	2009-06-02 22:22:03 UTC (rev 8685)
+++ packages/pyopenssl/trunk/debian/rules	2009-06-02 22:44:22 UTC (rev 8686)
@@ -5,7 +5,7 @@
 
 include /usr/share/dpatch/dpatch.make
 
-PYVERS := $(shell pyversions -r)
+PYVERS := $(shell pyversions -r -v)
 
 build: patch build-stamp
 build-stamp:
@@ -13,10 +13,20 @@
 
 	set -e; \
 	for py in $(PYVERS); do  \
-	    $$py setup.py build; \
-	    $$py-dbg setup.py build; \
+	    python$$py setup.py build; \
+	    python$$py-dbg setup.py build; \
 	done
 
+	# run tests
+	-for py in $(PYVERS); do  \
+	    for test in test/test*; do \
+	        echo "running $$test for python$$py ..."; \
+	        PYTHONPATH=build/lib.$(DEB_BUILD_ARCH_OS)-$(shell uname -m)-$$py python$$py $$test; \
+	        PYTHONPATH=build/lib_d.$(DEB_BUILD_ARCH_OS)-$(shell uname -m)-$$py python$$py-dbg $$test; \
+	    done; \
+	done
+     
+
 	$(MAKE) -C doc all
 
 	touch build-stamp
@@ -26,8 +36,8 @@
 	dh_testroot
 
 	-for py in $(PYVERS); do \
-	    $$py setup.py clean --all; \
-	    $$py-dbg setup.py clean --all; \
+	    python$$py setup.py clean --all; \
+	    python$$py-dbg setup.py clean --all; \
 	done
 
 	rm -rf build
@@ -45,10 +55,10 @@
 
 	set -e; \
 	for py in $(PYVERS); do \
-	    echo "installing for $$py ..."; \
- 	    $$py setup.py install --root=$(CURDIR)/debian/python-openssl; \
-	    echo "installing for $$py-dbg ..."; \
-	    $$py-dbg setup.py install --root=$(CURDIR)/debian/python-openssl-dbg; \
+	    echo "installing for python$$py ..."; \
+ 	    python$$py setup.py install --root=$(CURDIR)/debian/python-openssl; \
+	    echo "installing for python$$py-dbg ..."; \
+	    python$$py-dbg setup.py install --root=$(CURDIR)/debian/python-openssl-dbg; \
  	done
 	find debian/python-openssl-dbg ! -type d ! -name '*_d.so' | xargs rm -f
 	find debian/python-openssl-dbg -depth -empty -exec rmdir {} \;




More information about the Python-modules-commits mailing list