[Python-modules-commits] r20709 - in packages/pywavelets/trunk/debian (changelog rules)
eriol-guest at users.alioth.debian.org
eriol-guest at users.alioth.debian.org
Fri Mar 9 19:10:23 UTC 2012
Date: Friday, March 9, 2012 @ 19:10:21
Author: eriol-guest
Revision: 20709
Enabled tests at build time
Modified:
packages/pywavelets/trunk/debian/changelog
packages/pywavelets/trunk/debian/rules
Modified: packages/pywavelets/trunk/debian/changelog
===================================================================
--- packages/pywavelets/trunk/debian/changelog 2012-03-09 19:00:22 UTC (rev 20708)
+++ packages/pywavelets/trunk/debian/changelog 2012-03-09 19:10:21 UTC (rev 20709)
@@ -4,8 +4,10 @@
- Fixed DEP5 lintian warnings
* debian/preinst
- Removed because no more needed after Squeeze release
+ * debian/rules
+ - Enabled tests at build time
- -- Daniele Tricoli <eriol at mornie.org> Sun, 16 Oct 2011 21:06:45 +0200
+ -- Daniele Tricoli <eriol at mornie.org> Fri, 09 Mar 2012 20:09:06 +0100
pywavelets (0.2.0-3) unstable; urgency=low
Modified: packages/pywavelets/trunk/debian/rules
===================================================================
--- packages/pywavelets/trunk/debian/rules 2012-03-09 19:00:22 UTC (rev 20708)
+++ packages/pywavelets/trunk/debian/rules 2012-03-09 19:10:21 UTC (rev 20709)
@@ -2,10 +2,20 @@
#export DH_VERBOSE=1
-PYVERS=$(shell pyversions -vr)
-PACKAGE_NAME=python-pywt
-MODULE_NAME=PyWavelets
+export PYTHONWARNINGS=d
+PYVERS = $(shell pyversions -vr)
+PACKAGE_NAME = python-pywt
+MODULE_NAME = PyWavelets
+
+TESTS = \
+ test_doc.py \
+ test_perfect_reconstruction.py \
+ test_regression.py \
+ $(NULL)
+
+pythonpath = $$(_py_=$(strip $(1)); _py_=$${_py_\#python}; ls -d $(CURDIR)/build/lib.*-$${_py_})
+
clean:
dh_testdir
dh_testroot
@@ -27,6 +37,13 @@
build-ext-%:
dh_testdir
python$* setup.py build
+
+ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
+ for test in $(TESTS); do \
+ cd tests; PYTHONPATH=$(call pythonpath,python$*) python$* $$test; \
+ done
+endif
+
touch $@
install: install-stamp
More information about the Python-modules-commits
mailing list