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

lunar pushed a commit to branch pu/reproducible_builds
in repository dh-python.

commit 78c11a2ad1dc9aa69054116c255eb9912b175a65
Author: Dmitry Shachnev <mity...@gmail.com>
Date:   Sat Aug 31 13:07:59 2013 +0200

    Add "dh-python" and "nosetests" autopkgtests
---
 debian/changelog       |  1 +
 debian/control         |  1 +
 debian/tests/control   |  6 ++++++
 debian/tests/dh-python | 11 +++++++++++
 debian/tests/nosetests |  9 +++++++++
 5 files changed, 28 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 30b874b..a8ddb2d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -19,6 +19,7 @@ dh-python (1.20130830-1) UNRELEASED; urgency=low
 
   [ Dmitry Shachnev ]
   * Make sure tests do not require python-support.
+  * Add "dh-python" and "nosetests" autopkgtests.
 
  -- Piotr Ożarowski <pi...@debian.org>  Sun, 25 Aug 2013 12:39:39 +0200
 
diff --git a/debian/control b/debian/control
index 865bc70..1bcd68e 100644
--- a/debian/control
+++ b/debian/control
@@ -10,6 +10,7 @@ Standards-Version: 3.9.4
 Vcs-Git: git://anonscm.debian.org/dh-python/dh-python.git
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=dh-python/dh-python.git
 X-Python3-Version: >= 3.2
+XS-Testsuite: autopkgtest
 
 Package: dh-python
 Architecture: all
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..f08e6c8
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,6 @@
+Tests: dh-python
+Depends: python-all-dev, python3-all-dev, pypy, debhelper, libjs-jquery
+
+Tests: nosetests
+Depends: python3-nose, python-all, python3-all, pypy
+Restrictions: allow-stderr
diff --git a/debian/tests/dh-python b/debian/tests/dh-python
new file mode 100644
index 0000000..225253d
--- /dev/null
+++ b/debian/tests/dh-python
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -eu
+cp -r tests "$ADTTMP"
+cd "$ADTTMP/tests"
+sed -i "s/..\/..\/debian/\/usr\/share\/python3/g" common.mk
+sed -i "s/..\/..\/dhpython/\/usr\/share\/dh-python\/dhpython/g" common.mk
+sed -i "s/PYTHONPATH=..\/..\//PYTHONPATH=\/usr\/share\/python3/g" 
t*/debian/rules
+sed -i "s/..\/..\/debian\///g" t*/debian/rules
+sed -i "s/..\/..\///g" t*/debian/rules
+make all 2>&1
diff --git a/debian/tests/nosetests b/debian/tests/nosetests
new file mode 100644
index 0000000..4812c95
--- /dev/null
+++ b/debian/tests/nosetests
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -eu
+
+nosetests3 /usr/share/dh-python/dhpython --with-doctest -v
+
+cp -r tests "$ADTTMP"
+cd "$ADTTMP/tests"
+PYTHONPATH=/usr/share/dh-python nosetests3 -v

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

_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to