[med-svn] [python-ruffus] 01/01: Add some autopkgtest suite (not finished)
Andreas Tille
tille at debian.org
Mon Feb 2 11:26:15 UTC 2015
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository python-ruffus.
commit 89ad51fe5ba816b246714ebf1b2d2d194a1a14c3
Author: Andreas Tille <tille at debian.org>
Date: Mon Feb 2 12:25:40 2015 +0100
Add some autopkgtest suite (not finished)
---
debian/control | 4 +++-
debian/rules | 2 +-
debian/tests/control | 3 +++
debian/tests/run-unit-test | 24 ++++++++++++++++++++++++
4 files changed, 31 insertions(+), 2 deletions(-)
diff --git a/debian/control b/debian/control
index 2c6db85..1ef2ec8 100644
--- a/debian/control
+++ b/debian/control
@@ -9,7 +9,8 @@ Build-Depends: debhelper (>= 9),
python-setuptools,
python3-all,
python3-setuptools,
- python-sphinx
+ python-sphinx,
+ python-drmaa
Standards-Version: 3.9.6
Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/python-ruffus.git
Vcs-Git: git://anonscm.debian.org/debian-med/python-ruffus.git
@@ -20,6 +21,7 @@ Architecture: all
Depends: ${shlibs:Depends},
${misc:Depends},
${python:Depends}
+Recommends: python-drmaa
Description: Python computation pipeline library widely used in bioinformatics
Ruffus is designed to allow scientific and other analyses to be automated
with the minimum of fuss and the least effort.
diff --git a/debian/rules b/debian/rules
index ba4540a..a733b0c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -23,7 +23,7 @@ override_dh_auto_test:
### No idea why this fails :-(
# LC_ALL=C.UTF-8 dh_auto_test -- --test --system=custom --test-args='set -e; cd ruffus/test; for tst in test*.py ; do {interpreter} $$tst ; done'
### Try find ...
- LC_ALL=C.UTF-8 dh_auto_test -- --test --system=custom --test-args='set -e; cd ruffus/test; find . -type f -name "test*.py" -exec {interpreter} \{\} \; ; done'
+# LC_ALL=C.UTF-8 dh_auto_test -- --test --system=custom --test-args='set -e; cd ruffus/test; find . -type f -name "test*.py" -exec {interpreter} \{\} \; ; done'
override_dh_auto_clean:
dh_auto_clean
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..1160776
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @, python-drmaa
+Restrictions: allow-stderr
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
new file mode 100644
index 0000000..0dd3030
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,24 @@
+#!/bin/sh -e
+
+pkg=python-ruffus
+if [ "$ADTTMP" = "" ] ; then
+ ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp -a /usr/share/doc/python-ruffus-doc/test/* .
+find . -type f -name "*.gz" -exec gunzip \{\} \;
+chmod +x [a-z]*.py
+exportLC_ALL=C.UTF-8
+# prepare data used in tests:
+python test_filesre_split_and_combine.py --start_again
+for pi in $(pyversions -i) $(py3versions -i); do
+ for tst in test*.py ; do
+ echo "------------> $tst <-----------"
+ if [ "$tst" = "test_N_x_M_and_collate.py" ] ; then
+ ${pi} test_N_x_M_and_collate.py --debug
+ else
+ ${pi} $tst
+ fi
+ done
+done
+# rm -f $ADTTMP/*
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-ruffus.git
More information about the debian-med-commit
mailing list