[med-svn] [htslib] 01/01: Autopkgtest added

Canberk Koç cbk-guest at moszumanska.debian.org
Wed Aug 3 01:32:01 UTC 2016


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

cbk-guest pushed a commit to branch debian/unstable
in repository htslib.

commit 7d0b90b609f7f6ed67da3af3f995fc692f4f8a49
Author: cbk-guest <cbk-guests at scm.alioth.debian.org>
Date:   Wed Aug 3 04:24:47 2016 +0300

    Autopkgtest added
---
 debian/changelog           |  7 +++++++
 debian/htslib-test.install |  8 +++++++-
 debian/tests/control       |  3 +++
 debian/tests/run-unit-test | 19 +++++++++++++++++++
 4 files changed, 36 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 2aff3f3..aea5807 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+htslib (1.3.1-2) UNRELEASED; urgency=medium
+
+  * Team upload.
+  * Autopktest added 
+
+ -- Canberk Koç <canberkkoc at gmail.com>  Wed, 03 Aug 2016 04:21:17 +0300
+
 htslib (1.3.1-1) unstable; urgency=medium
 
   36bf59a Merge tag '1.3.1' into debian/unstable
diff --git a/debian/htslib-test.install b/debian/htslib-test.install
index c1ef986..a9d8290 100644
--- a/debian/htslib-test.install
+++ b/debian/htslib-test.install
@@ -1 +1,7 @@
-test/*	/usr/share/htslib-test
+test/* /usr/share/htslib-test/test
+cram/*.h /usr/share/htslib-test/cram
+cram/*.c /usr/share/htslib-test/cram
+Makefile /usr/share/htslib-test
+*.mk /usr/share/htslib-test
+*.c /usr/share/htslib-test
+*.h /usr/share/htslib-test
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..d2aa55a
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @
+Restrictions: allow-stderr
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
new file mode 100644
index 0000000..314636e
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,19 @@
+#!/bin/bash
+set -e
+
+pkg="htslib"
+
+if [ "$AUTOPKGTEST_TMP" = "" ] ; then
+  AUTOPKGTEST_TMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+
+cp -a /usr/share/${pkg}-test/* $AUTOPKGTEST_TMP
+
+cd $AUTOPKGTEST_TMP
+
+sed -i 's#\$(HTSPREFIX)#/usr/include/#g' htslib_vars.mk
+sed -i 's#\$(HTSLIB)#/usr/include/#g' htslib.mk
+
+make check -j4
+
+echo "PASS"

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



More information about the debian-med-commit mailing list