[Python-modules-commits] [python-regex] 04/05: run tests on debug flavor too
Sandro Tosi
morph at moszumanska.debian.org
Sat Jun 18 14:49:03 UTC 2016
This is an automated email from the git hooks/post-receive script.
morph pushed a commit to branch master
in repository python-regex.
commit c03ced9cf261a489a8dfed48833bd21b70490d78
Author: Sandro Tosi <morph at debian.org>
Date: Sat Jun 18 15:44:11 2016 +0100
run tests on debug flavor too
---
debian/changelog | 4 +++-
debian/rules | 11 +++++++++--
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 9dfa91c..06fd8e6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,10 @@
python-regex (0.1.20160614-1) UNRELEASED; urgency=medium
* New upstream release
+ * debian/rules
+ - run tests on debug flavor too
- -- Sandro Tosi <morph at debian.org> Sat, 18 Jun 2016 13:46:31 +0100
+ -- Sandro Tosi <morph at debian.org> Sat, 18 Jun 2016 15:43:51 +0100
python-regex (0.1.20160605-1) unstable; urgency=medium
diff --git a/debian/rules b/debian/rules
index cddd87c..7aaec90 100755
--- a/debian/rules
+++ b/debian/rules
@@ -25,14 +25,21 @@ override_dh_auto_build:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
- set -e; \
- for python in $(PYTHON2); do \
+ -for python in $(PYTHON2); do \
+ echo "-- running tests for "$$python" plain --" ; \
LIB=$$($$python -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print b.build_platlib"); \
PYTHONPATH=$$LIB $$python Python2/test_regex.py; \
+ echo "-- running tests for "$$python" debug --" ; \
+ LIB=$$($$python-dbg -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print b.build_platlib"); \
+ PYTHONPATH=$$LIB $$python-dbg Python2/test_regex.py; \
done
-for python in $(PYTHON3); do \
+ echo "-- running tests for "$$python" plain --" ; \
LIB=$$($$python -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print(b.build_platlib)"); \
PYTHONPATH=$$LIB $$python Python3/test_regex.py; \
+ echo "-- running tests for "$$python" debug --" ; \
+ LIB=$$($$python-dbg -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print(b.build_platlib)"); \
+ PYTHONPATH=$$LIB $$python-dbg Python3/test_regex.py; \
done
endif
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-regex.git
More information about the Python-modules-commits
mailing list