[med-svn] [mash] 01/01: add autopkgtest

Sascha Steinbiss satta at debian.org
Tue Jul 19 20:31:27 UTC 2016


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

satta pushed a commit to branch master
in repository mash.

commit 7798a893007abebcd01c02e93627319c75caddd5
Author: Sascha Steinbiss <satta at debian.org>
Date:   Tue Jul 19 20:28:40 2016 +0000

    add autopkgtest
---
 debian/control              |   1 +
 debian/tests/control        |   3 +++
 debian/tests/genomes.tar.xz | Bin 0 -> 2144700 bytes
 debian/tests/run-example    |  20 ++++++++++++++++++++
 4 files changed, 24 insertions(+)

diff --git a/debian/control b/debian/control
index 75530a2..e0c0eff 100644
--- a/debian/control
+++ b/debian/control
@@ -13,6 +13,7 @@ Build-Depends: debhelper (>= 9),
                libjs-mathjax,
                asciidoctor
 Standards-Version: 3.9.8
+Testsuite: autopkgtest
 Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/mash.git
 Vcs-Git: https://anonscm.debian.org/git/debian-med/mash.git
 Homepage: https://mash.readthedocs.io
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..e4a4ee9
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: run-example
+Depends: mash
+Restrictions: allow-stderr
diff --git a/debian/tests/genomes.tar.xz b/debian/tests/genomes.tar.xz
new file mode 100644
index 0000000..3fc64c4
Binary files /dev/null and b/debian/tests/genomes.tar.xz differ
diff --git a/debian/tests/run-example b/debian/tests/run-example
new file mode 100755
index 0000000..2353ae0
--- /dev/null
+++ b/debian/tests/run-example
@@ -0,0 +1,20 @@
+#!/bin/sh
+# autopkgtest check: Run test alignment with command line tool
+# Author: Sascha Steinbiss <satta at debian.org>
+set -e
+
+TESTDIR=$(pwd)/debian/tests
+WORKDIR=$(mktemp -d)
+trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
+cd $WORKDIR
+
+tar xJvf $TESTDIR/genomes.tar.xz
+mash dist genome1.fna genome2.fna
+
+mash sketch genome1.fna
+mash sketch genome2.fna
+mash dist genome1.fna.msh genome2.fna.msh
+
+mash sketch -o reference genome1.fna genome2.fna
+mash info reference.msh
+mash dist reference.msh genome3.fna

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



More information about the debian-med-commit mailing list