[med-svn] r17692 - trunk/packages/python-pynast/trunk/debian
Andreas Tille
tille at moszumanska.debian.org
Mon Aug 11 15:58:31 UTC 2014
Author: tille
Date: 2014-08-11 15:58:31 +0000 (Mon, 11 Aug 2014)
New Revision: 17692
Modified:
trunk/packages/python-pynast/trunk/debian/rules
Log:
Try to run test suite but failed since this is heavily relying on uclust
Modified: trunk/packages/python-pynast/trunk/debian/rules
===================================================================
--- trunk/packages/python-pynast/trunk/debian/rules 2014-08-11 14:58:13 UTC (rev 17691)
+++ trunk/packages/python-pynast/trunk/debian/rules 2014-08-11 15:58:31 UTC (rev 17692)
@@ -7,6 +7,9 @@
#Allowing this to be overridden by environemnt helps with backports
DEB_PYTHON_SUPPORT?=python2
+# Get the supported Python versions
+PYVERS = $(shell pyversions -r -v)
+
%:
dh $@ --with $(DEB_PYTHON_SUPPORT)
@@ -22,6 +25,19 @@
override_dh_installdocs:
dh_installdocs -X.buildinfo
+override_dh_auto_test:
+ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+ mkdir -p tests_avoid
+ # Debian can not package uclust for licensing reasons - skip tests requiring uclust
+ mv tests/test_pycogent_backports tests_avoid
+ set -e -x; \
+ cd tests; \
+ for py in $(PYVERS); do \
+ PYTHONPATH=$$( echo $(CURDIR)/build/lib.*-$$py ) python$$py all_tests.py ; \
+ done
+ mv tests_avoid/* tests
+endif
+
#Don't compress .js files
override_dh_compress:
dh_compress -X.js
More information about the debian-med-commit
mailing list