[med-svn] [nanopolish] 02/04: Allow data file to be compressed and deal with it while running autopkgtest

Afif Elghraoui afif-guest at moszumanska.debian.org
Thu Jan 21 03:54:45 UTC 2016


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

afif-guest pushed a commit to branch master
in repository nanopolish.

commit d56cee996639104aa6885b175648fcc7484ad965
Author: Afif Elghraoui <afif at ghraoui.name>
Date:   Wed Jan 20 19:43:12 2016 -0800

    Allow data file to be compressed and deal with it while running autopkgtest
---
 debian/links         |  1 -
 debian/rules         |  6 ------
 debian/tests/control |  2 +-
 debian/tests/main    | 14 ++++++++++++++
 4 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/debian/links b/debian/links
deleted file mode 100644
index 042c150..0000000
--- a/debian/links
+++ /dev/null
@@ -1 +0,0 @@
-/usr/share/doc/nanopolish/examples/data	/usr/lib/nanopolish/test/data
diff --git a/debian/rules b/debian/rules
index 09e07a0..c3047f6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,9 +12,3 @@ export DEB_LDFLAGS_MAINT_APPEND = -L/usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/serial
 override_dh_auto_clean:
 	dh_auto_clean
 	$(RM) .depend
-
-# See if tests will still run if the fast5 file gets compressed.
-# Otherwise, it's probably better to have a longer test script to
-# unpack the file and use it for running the tests.
-override_dh_compress:
-	dh_compress --exclude=.fast5
diff --git a/debian/tests/control b/debian/tests/control
index 50ee684..873c744 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1 +1 @@
-Test-Command: cd /usr/lib/nanopolish && ./nanopolish_test
+Tests: main
diff --git a/debian/tests/main b/debian/tests/main
new file mode 100755
index 0000000..9bec132
--- /dev/null
+++ b/debian/tests/main
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+set -e
+
+cd $ADTTMP
+
+# The ./test/data path is hard-coded into the nanopolish_test program
+mkdir test
+
+cp -r /usr/share/doc/nanopolish/examples/data $ADTTMP/test/
+
+gunzip $ADTTMP/test/data/*.gz
+
+/usr/lib/nanopolish/nanopolish_test

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



More information about the debian-med-commit mailing list