[Python-modules-commits] r20055 - in packages/numpy/trunk/debian (changelog rules)

yoh at users.alioth.debian.org yoh at users.alioth.debian.org
Thu Jan 19 16:43:20 UTC 2012


    Date: Thursday, January 19, 2012 @ 16:43:19
  Author: yoh
Revision: 20055

Use loop instead of the duplicate call to test against both pristine and -dbg builds of python

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

Modified: packages/numpy/trunk/debian/changelog
===================================================================
--- packages/numpy/trunk/debian/changelog	2012-01-19 16:42:57 UTC (rev 20054)
+++ packages/numpy/trunk/debian/changelog	2012-01-19 16:43:19 UTC (rev 20055)
@@ -3,6 +3,8 @@
   * debian/rules
     - Check for nocheck instead of notest (policy 4.9.1)
     - I: messages on the stages of testing
+    - Use loop instead of the duplicate call to test against both pristine
+      and -dbg builds of python
 
  -- Yaroslav Halchenko <debian at onerussian.com>  Thu, 19 Jan 2012 10:29:13 -0500
 

Modified: packages/numpy/trunk/debian/rules
===================================================================
--- packages/numpy/trunk/debian/rules	2012-01-19 16:42:57 UTC (rev 20054)
+++ packages/numpy/trunk/debian/rules	2012-01-19 16:43:19 UTC (rev 20055)
@@ -126,9 +126,10 @@
 	# select the code in the installation path
 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
 	-for v in $(PYVERS) ; do \
-		echo "I: Run tests using python$$v"; \
-		python$$v -c "import sys ; sys.path.insert(0, '$(CURDIR)/debian/tmp/usr/lib/python$$v/dist-packages/') ; import numpy; numpy.test()" ; \
-		python$$v-dbg -c "import sys ; sys.path.insert(0, '$(CURDIR)/debian/tmp/usr/lib/python$$v/dist-packages/') ; import numpy; numpy.test()" ; \
+		for f in "" "-dbg" ; do \
+			echo "I: Run tests using python$$v$$f"; \
+			python$$v$$f -c "import sys ; sys.path.insert(0, '$(CURDIR)/debian/tmp/usr/lib/python$$v/dist-packages/') ; import numpy; numpy.test()" ; \
+		done; \
 	done
 else
 	@echo "I: Tests were skipped due to nocheck in DEB_BUILD_OPTIONS"




More information about the Python-modules-commits mailing list