[med-svn] [khmer] 03/03: run tests
Michael Crusoe
misterc-guest at moszumanska.debian.org
Tue Feb 10 13:44:03 UTC 2015
This is an automated email from the git hooks/post-receive script.
misterc-guest pushed a commit to branch master
in repository khmer.
commit bf0321df209d8032d1ed7bb55edc8fc735c2fcf6
Author: Michael R. Crusoe <mcrusoe at msu.edu>
Date: Mon Feb 9 10:30:29 2015 -0500
run tests
---
debian/README.test | 5 +++++
debian/control | 2 +-
debian/docs | 2 ++
debian/rules | 4 ++++
debian/tests/run-unit-test | 6 ++++--
5 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/debian/README.test b/debian/README.test
new file mode 100644
index 0000000..e95961c
--- /dev/null
+++ b/debian/README.test
@@ -0,0 +1,5 @@
+Notes on how this package can be tested.
+────────────────────────────────────────
+
+You can run the upstream unit tests by executing the script run-unit-test.
+
diff --git a/debian/control b/debian/control
index bacf509..6a5c52f 100644
--- a/debian/control
+++ b/debian/control
@@ -9,7 +9,7 @@ Build-Depends: python-screed,
dh-python,
python2.7,
python (>= 2.7),
- python | python-all | python-dev | python-all-dev,
+ python-all-dev,
python-setuptools (>= 3.3),
zlib1g-dev,
libbz2-dev,
diff --git a/debian/docs b/debian/docs
index ca14925..46a4240 100644
--- a/debian/docs
+++ b/debian/docs
@@ -3,3 +3,5 @@ CITATION
README.rst
CONTRIBUTING.md
TODO
+debian/README.test
+debian/tests/run-unit-test
diff --git a/debian/rules b/debian/rules
index b011547..ea9e664 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,6 +13,10 @@ override_dh_auto_build:
./setup.py build_sphinx
ronn -r --manual=khmer --organization='Michigan State University' debian/khmer.1.ronn
+override_dh_auto_test:
+ PYBUILD_SYSTEM=custom \
+ PYBUILD_TEST_ARGS="cd {build_dir}; ln -s {build_dir}/../../../scripts khmer/; PYTHONPATH={build_dir} {interpreter} -m nose --attr '!known_failing,!jenkins'; rm khmer/scripts" dh_auto_test
+
override_dh_auto_clean:
dh_auto_clean
rm -f khmer/*.so
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
index 865402e..a82f74c 100644
--- a/debian/tests/run-unit-test
+++ b/debian/tests/run-unit-test
@@ -4,5 +4,7 @@ pkg=khmer
if [ "$ADTTMP" = "" ] ; then
ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
fi
-cd /usr/lib/python2.7/dist-packages/khmer/tests
-python2.7 -m unittest discover -v
+
+cp -rs /usr/lib/python2.7/dist-packages/khmer .
+ln /usr/lib/khmer/bin khmer/scripts
+PYTHONPATH=$PWD python2.7 -m nose --attr '!known_failing,!jenkins'
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/khmer.git
More information about the debian-med-commit
mailing list