[Reproducible-commits] [debbindiff] 01/07: Run py.test as an autopkgtest

Jérémy Bobbio lunar at moszumanska.debian.org
Sat Jun 27 08:59:11 UTC 2015


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

lunar pushed a commit to branch master
in repository debbindiff.

commit fd4b28078db45d3cc74b86b6cf0ce1986a4cd2aa
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Fri Jun 26 10:05:26 2015 +0000

    Run py.test as an autopkgtest
---
 debian/tests/control |  3 +++
 debian/tests/pytest  | 11 +++++++++++
 2 files changed, 14 insertions(+)

diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..8a6e066
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: pytest
+Depends: debbindiff, python-pytest
+Restrictions: needs-recommends
diff --git a/debian/tests/pytest b/debian/tests/pytest
new file mode 100755
index 0000000..0c398a5
--- /dev/null
+++ b/debian/tests/pytest
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+if ! [ -d "$ADTTMP" ]; then
+	echo "ADTTMP not set." >&2
+	exit 1
+fi
+
+cp -r tests $ADTTMP
+(cd $ADTTMP; py.test)

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



More information about the Reproducible-commits mailing list