[med-svn] [phylip] 01/01: Autopkgtest added
Canberk Koç
cbk-guest at moszumanska.debian.org
Sat Jul 23 15:25:04 UTC 2016
This is an automated email from the git hooks/post-receive script.
cbk-guest pushed a commit to branch master
in repository phylip.
commit 5defce706f05974688fad0e934b75aa26c3a217b
Author: cbk-guest <cbk-guests at scm.alioth.debian.org>
Date: Sat Jul 23 18:22:47 2016 +0300
Autopkgtest added
---
debian/changelog | 6 +++++-
debian/examples/tests/Makefile | 1 +
debian/tests/control | 3 +++
debian/tests/run-unit-test | 16 ++++++++++++++++
4 files changed, 25 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 05bbfaf..e173ea2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,12 +1,16 @@
phylip (1:3.696+dfsg-3) UNRELEASED; urgency=medium
+ [ Andreas Tille ]
* Moved packaging from SVN to Git
* cme fix dpkg-control
* hardening=+all
* install bash completions to usr/share/bash-completion/completions
* fix java wrappers
- -- Andreas Tille <tille at debian.org> Fri, 22 Jul 2016 09:08:31 +0200
+ [ Canberk Koç ]
+ * autopkgtest added
+
+ -- Canberk Koç <canberkkoc at gmail.com> Sat, 23 Jul 2016 17:21:18 +0300
phylip (1:3.696+dfsg-2) unstable; urgency=medium
diff --git a/debian/examples/tests/Makefile b/debian/examples/tests/Makefile
index 839e6d8..8df1b31 100644
--- a/debian/examples/tests/Makefile
+++ b/debian/examples/tests/Makefile
@@ -27,6 +27,7 @@ testtree:
echo l >> params
echo m >> params
echo y >> params
+ echo r >> params
phylip drawtree < params > drawtree.out
phylip drawgram < params > drawgram.out
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..0b0560c
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,16 @@
+#!/bin/bash
+set -e
+
+pkg="phylip"
+
+if [ "$AUTOPKGTEST_TMP" = "" ] ; then
+ AUTOPKGTEST_TMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+
+cp -a /usr/share/doc/${pkg}/examples/* $AUTOPKGTEST_TMP
+
+cd $AUTOPKGTEST_TMP/tests
+
+make test
+
+echo "PASS"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/phylip.git
More information about the debian-med-commit
mailing list