[med-svn] [garli] 05/10: Add autopkgtest

Andreas Tille tille at debian.org
Tue Nov 14 09:53:47 UTC 2017


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

tille pushed a commit to branch master
in repository garli.

commit ceccfba1b4dfa745ec6be55644b568e4b9e56cb1
Author: Andreas Tille <tille at debian.org>
Date:   Fri Jun 3 14:42:56 2016 +0000

    Add autopkgtest
---
 debian/tests/control       |  3 +++
 debian/tests/run-unit-test | 12 ++++++++++++
 2 files changed, 15 insertions(+)

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..de0b1c4
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,12 @@
+#!/bin/sh -e
+
+pkg=garli
+
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp /usr/share/doc/$pkg/examples/basic/* $ADTTMP
+find . -name "*.gz" -exec gunzip \{\} \;
+garli
+rm -rf *

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



More information about the debian-med-commit mailing list