[med-svn] [python-pyfasta] 02/06: Try to work on tests
Andreas Tille
tille at debian.org
Wed Dec 27 16:58:51 UTC 2017
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository python-pyfasta.
commit 4a01a03f19e9270cf139dc5a953d53c9c36a29dc
Author: Andreas Tille <tille at debian.org>
Date: Wed Oct 14 20:13:40 2015 +0000
Try to work on tests
---
debian/changelog | 2 +-
debian/control | 1 +
debian/rules | 14 ++++++++++++++
3 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 2484141..cd5a365 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,5 @@
python-pyfasta (0.5.2-1) UNRELEASED; urgency=medium
- * Initial upload (Closes: #??)
+ * Initial upload (Closes: #801721)
-- Andreas Tille <tille at debian.org> Tue, 13 Oct 2015 17:02:08 +0200
diff --git a/debian/control b/debian/control
index a26b2d2..d9ab5fd 100644
--- a/debian/control
+++ b/debian/control
@@ -6,6 +6,7 @@ Priority: optional
Build-Depends: debhelper (>= 9),
dh-python,
python-all (>= 2.7),
+ python-coverage,
python-setuptools,
python-nose,
python-numpy,
diff --git a/debian/rules b/debian/rules
index beb7314..6c7f5fb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,20 @@
#export DH_VERBOSE=1
export PYBUILD_NAME=pyfasta
+export PYBUILD_TEST_ARGS={dir}/tests
+
+override_dh_auto_test:
+ LC_ALL=C.UTF-8 dh_auto_test -- --test --system=custom \
+ --test-args='set -e; \
+ set -x; \
+ cp -a tests {build_dir}; \
+ {interpreter} run_tests.py --offline'
+
+run_tests:
+ cp -a tests/data/key.fasta tests/data/key.fasta.orig
+ cp -a tests/data/three_chrs.fasta tests/data/three_chrs.fasta.orig
+ python -m nose tests
+
%:
dh $@ --with python2,python3 --buildsystem=pybuild
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-pyfasta.git
More information about the debian-med-commit
mailing list