[Python-modules-commits] r13646 - in packages/python-django-voting/trunk/debian (2 files)
ockham-guest at users.alioth.debian.org
ockham-guest at users.alioth.debian.org
Fri Jun 25 21:55:47 UTC 2010
Date: Friday, June 25, 2010 @ 21:55:46
Author: ockham-guest
Revision: 13646
Add override_dh_auto_test target to debian/rules
Modified:
packages/python-django-voting/trunk/debian/patches/series
packages/python-django-voting/trunk/debian/rules
Modified: packages/python-django-voting/trunk/debian/patches/series
===================================================================
--- packages/python-django-voting/trunk/debian/patches/series 2010-06-25 21:52:56 UTC (rev 13645)
+++ packages/python-django-voting/trunk/debian/patches/series 2010-06-25 21:55:46 UTC (rev 13646)
@@ -1 +1,2 @@
+runtests-syspath
num_up_down_votes_and_doc
Modified: packages/python-django-voting/trunk/debian/rules
===================================================================
--- packages/python-django-voting/trunk/debian/rules 2010-06-25 21:52:56 UTC (rev 13645)
+++ packages/python-django-voting/trunk/debian/rules 2010-06-25 21:55:46 UTC (rev 13646)
@@ -3,6 +3,15 @@
%:
dh $@
+override_dh_auto_test:
+ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
+ set -e; \
+ cd voting/tests; \
+ for python in $(shell pyversions -r); do \
+ $$python runtests.py; \
+ done
+endif
+
# Adapted from http://wiki.debian.org/SandroTosi/Svn_get-orig-source
PACKAGE = python-django-voting
SRC_VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(\([0-9]\+\):\)\?\(.*\)-.*/\3/p')
More information about the Python-modules-commits
mailing list