[med-svn] [pipasic] 01/02: Good that we tried to test. This uncovered a real dependency from inspect or tide

Andreas Tille tille at debian.org
Tue Sep 29 19:54:59 UTC 2015


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository pipasic.

commit e6dbc1e647738fd6a304f4f2de2f4b913525663c
Author: Andreas Tille <tille at debian.org>
Date:   Tue Sep 29 21:51:16 2015 +0200

    Good that we tried to test.  This uncovered a real dependency from inspect or tide
---
 debian/bin/pipasic         |  2 +-
 debian/tests/control       |  3 +++
 debian/tests/run-unit-test | 15 +++++++++++++++
 3 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/debian/bin/pipasic b/debian/bin/pipasic
index 17814f3..81ec579 100644
--- a/debian/bin/pipasic
+++ b/debian/bin/pipasic
@@ -1,2 +1,2 @@
 #!/bin/sh
-python /usr/share/pipasic/pipasic.py
+python /usr/share/pipasic/pipasic.py $@
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..047abe1
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @, pipasic-example
+Restrictions: allow-stderr
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
new file mode 100644
index 0000000..3038906
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,15 @@
+#!/bin/sh -e
+
+echo "Seems this programm really needs either inspect or tide."
+exit
+
+pkg=pipasic
+
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp -a /usr/share/doc/$pkg/examples/* $ADTTMP
+find . -name "*.gz" -exec gunzip \{\} \;
+pipasic dataset species1,species2 -s data/ -d ref/ -I -i /path/to/inspect/ -o test_results/ -V
+rm -rf *

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/pipasic.git



More information about the debian-med-commit mailing list