[med-svn] [njplot] 01/01: Autopkgtest added
Canberk Koç
cbk-guest at moszumanska.debian.org
Thu Nov 3 00:28:43 UTC 2016
This is an automated email from the git hooks/post-receive script.
cbk-guest pushed a commit to branch master
in repository njplot.
commit db09ca815ef7ced083c0e8b42e1c44247ae2ddb5
Author: Canberk Koç <canberkkoc at gmail.com>
Date: Thu Nov 3 03:28:27 2016 +0300
Autopkgtest added
---
debian/changelog | 8 ++++++--
debian/tests/control | 3 +++
debian/tests/run-unit-test | 24 ++++++++++++++++++++++++
3 files changed, 33 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index cf3de70..bdc5376 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,13 @@
-njplot (2.4-4) UNRELEASED; urgency=medium
+njplot (2.4-4.1) UNRELEASED; urgency=medium
+ [ Andreas Tille ]
* Packaging moved from SVN to Git
* cme fix dpkg-control
- -- Andreas Tille <tille at debian.org> Thu, 28 Jul 2016 09:22:03 +0200
+ [ Canberk Koç ]
+ * Autopkgtest added
+
+ -- Canberk Koç <canberkkoc at gmail.com> Thu, 03 Nov 2016 03:27:19 +0300
njplot (2.4-3) unstable; urgency=medium
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..5af7535
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,24 @@
+#!/bin/bash
+set -e
+
+pkg="njplot"
+
+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
+
+gunzip *.gz
+
+echo "TEST START"
+
+echo "/usr/bin/njplot -psonly example.phb"
+/usr/bin/njplot -psonly example.phb
+
+echo "file example.ps"
+file example.ps
+
+echo "PASS"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/njplot.git
More information about the debian-med-commit
mailing list