[Pkg-privacy-commits] [mat] 09/09: move testsuite call to autopkgtest
Sascha Steinbiss
sascha at steinbiss.name
Tue Jan 5 20:06:07 UTC 2016
This is an automated email from the git hooks/post-receive script.
sascha-guest pushed a commit to branch master
in repository mat.
commit 6e98b9957f5f2afa7b00413dd666c477aab28d63
Author: Sascha Steinbiss <sascha at steinbiss.name>
Date: Tue Jan 5 19:57:11 2016 +0000
move testsuite call to autopkgtest
---
debian/control | 1 +
debian/rules | 3 +--
debian/tests/control | 3 +++
debian/tests/test-installed | 11 +++++++++++
4 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/debian/control b/debian/control
index 7c89e66..aba5be4 100644
--- a/debian/control
+++ b/debian/control
@@ -19,6 +19,7 @@ Build-Depends:
Build-Depends-Indep: python-distutils-extra
Standards-Version: 3.9.6
X-Python-Version: >= 2.7
+Testsuite: autopkgtest
Homepage: https://mat.boum.org/
Vcs-Git: https://anonscm.debian.org/git/pkg-privacy/packages/mat.git
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-privacy/packages/mat.git
diff --git a/debian/rules b/debian/rules
index f9943d5..c79f3dc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,5 +7,4 @@ DESTDIR = $(CURDIR)/debian/$(PACKAGE)
dh $@ --with python2
override_dh_auto_test:
- cd ./test ; LC_ALL=C.UTF-8 xvfb-run -a python test.py
- dh_auto_test
+ # pass
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..947e429
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: test-installed
+Depends: @
+Restrictions: isolation-container, needs-recommends
diff --git a/debian/tests/test-installed b/debian/tests/test-installed
new file mode 100755
index 0000000..21ef057
--- /dev/null
+++ b/debian/tests/test-installed
@@ -0,0 +1,11 @@
+#!/bin/sh
+# autopkgtest check: Run MAT testsuite with installed version outside of
+# source tree
+# Author: Sascha Steinbiss <sascha at steinbiss.name>
+set -e
+
+WORKDIR=$(mktemp -d)
+cp -prv test/* $WORKDIR
+trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
+cd $WORKDIR
+python test.py
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/mat.git
More information about the Pkg-privacy-commits
mailing list