[med-svn] [reapr] 01/01: add autopkgtest

Sascha Steinbiss sascha at steinbiss.name
Fri Feb 5 21:40:44 UTC 2016


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

sascha-guest pushed a commit to branch master
in repository reapr.

commit 49f54dd12478f887b790387fd61f8155cd2066fd
Author: Sascha Steinbiss <sascha at steinbiss.name>
Date:   Fri Feb 5 21:40:26 2016 +0000

    add autopkgtest
    
    Requires reapr-test package.
---
 debian/control            |  1 +
 debian/tests/control      |  2 ++
 debian/tests/test-example | 13 +++++++++++++
 3 files changed, 16 insertions(+)

diff --git a/debian/control b/debian/control
index c7010b8..7226184 100644
--- a/debian/control
+++ b/debian/control
@@ -12,6 +12,7 @@ Build-Depends: debhelper (>= 9),
 Standards-Version: 3.9.6
 Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/reapr.git
 Vcs-Git: https://anonscm.debian.org/git/debian-med/reapr.git
+Testsuite: autopkgtest
 Homepage: http://www.sanger.ac.uk/science/tools/reapr
 
 Package: reapr
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..bba95db
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: test-example
+Depends: @, reapr-test
diff --git a/debian/tests/test-example b/debian/tests/test-example
new file mode 100755
index 0000000..4e96957
--- /dev/null
+++ b/debian/tests/test-example
@@ -0,0 +1,13 @@
+#!/bin/sh
+# autopkgtest check: Run upstream's test case against installed version of REAPR
+# Author: Sascha Steinbiss <sascha at steinbiss.name>
+set -e
+
+DATA=/usr/share/reapr-test
+WORKDIR=$(mktemp -d)
+
+trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
+cd $WORKDIR
+
+cp -rv /usr/share/reapr-test/* .
+./test.sh

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



More information about the debian-med-commit mailing list