[pybtex] 18/20: Improve the autopkgtest suite
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Sat Jul 22 21:04:55 UTC 2017
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository pybtex.
commit 5b0c4e69e567f0e9514d36425b1caa808ceed523
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Fri Jul 21 21:04:51 2017 +0100
Improve the autopkgtest suite
- Install the upstream test suite
- Run tests against the installed package
- Run tests for all supported Python versions
Gbp-Dch: Full
---
debian/rules | 1 -
debian/tests/control | 23 +++++++++++++++++++++--
debian/tests/pybtex | 3 ---
3 files changed, 21 insertions(+), 6 deletions(-)
diff --git a/debian/rules b/debian/rules
index 04bcf32..e0a5a6a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -31,7 +31,6 @@ endif
override_dh_auto_install:
dh_auto_install
dh_movefiles --package=pybtex --sourcedir=debian/python-pybtex usr/bin
- rm -rf debian/pybtex/usr/lib/python*/*-packages/pybtex/tests/
.PHONY: override_dh_compress
override_dh_compress:
diff --git a/debian/tests/control b/debian/tests/control
index d7424cf..0c3dc57 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,2 +1,21 @@
-Tests: pybtex
-Depends: pybtex, python-nose, python-yaml
+Test-Command: set -e
+ ; for py in $(pyversions -r 2>/dev/null)
+ ; do cd "$AUTOPKGTEST_TMP"
+ ; echo "Testing with $py:"
+ ; $py -m nose -v pybtex
+ ; done
+Depends: python-all,
+ python-pybtex,
+ python-nose
+Restrictions: allow-stderr
+
+Test-Command: set -e
+ ; for py in $(py3versions -r 2>/dev/null)
+ ; do cd "$AUTOPKGTEST_TMP"
+ ; echo "Testing with $py:"
+ ; $py -m nose -v pybtex
+ ; done
+Depends: python3-all,
+ python3-pybtex,
+ python3-nose
+Restrictions: allow-stderr
diff --git a/debian/tests/pybtex b/debian/tests/pybtex
deleted file mode 100644
index c4de734..0000000
--- a/debian/tests/pybtex
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-set -e
-python -Wd -m nose -v pybtex/tests 2>&1
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pybtex.git
More information about the debian-science-commits
mailing list