[med-svn] [mrbayes] 01/01: add autopkgtest test-suite

Nadiya Sitdykova rovenskasa-guest at moszumanska.debian.org
Thu Jul 20 03:42:37 UTC 2017


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

rovenskasa-guest pushed a commit to branch master
in repository mrbayes.

commit a1acd671d2cd22af678ad0874a05078689d26d89
Author: Nadiya Sitdykova <rovenskasa at gmail.com>
Date:   Wed Jul 19 23:42:03 2017 -0400

    add autopkgtest test-suite
---
 debian/README.test         |  9 +++++++++
 debian/changelog           |  9 +++++++++
 debian/docs                |  3 +++
 debian/tests/control       |  3 +++
 debian/tests/run-unit-test | 19 +++++++++++++++++++
 5 files changed, 43 insertions(+)

diff --git a/debian/README.test b/debian/README.test
new file mode 100644
index 0000000..74ce729
--- /dev/null
+++ b/debian/README.test
@@ -0,0 +1,9 @@
+
+Notes on how this package can be tested.
+────────────────────────────────────────
+
+This package can be tested by executing
+
+    sh run-unit-test
+
+in order to confirm its integrity.
diff --git a/debian/changelog b/debian/changelog
index f330564..ebc8d0e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+mrbayes (3.2.6+dfsg-2) UNRELEASED; urgency=medium
+
+  * Team upload.
+
+  [ Nadiya Sitdykova ]
+  * Add autopkgtest test-suite 
+
+ -- Nadiya Sitdykova <rovenskasa at gmail.com>  Wed, 19 Jul 2017 23:40:13 -0400
+
 mrbayes (3.2.6+dfsg-1) unstable; urgency=medium
 
   * Moved to Git
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..ea7e583
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,3 @@
+debian/README.test
+debian/tests/run-unit-test
+examples
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..33992f2
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,19 @@
+#!/bin/sh -e
+
+pkg=mrbayes
+
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
+  trap "rm -rf $ADTTMP" 0 INT QUIT ABRT PIPE TERM
+fi
+
+cd $ADTTMP
+
+cp -a /usr/share/doc/${pkg}/examples/* .
+gunzip -r *
+
+mb avian_ovomucoids.nex
+mb codon.nex
+mb cynmix.nex
+mb finch.nex
+mb hymfossil.nex

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



More information about the debian-med-commit mailing list