Tags: patch
The attached debdiff adds autopkgtest support for python-imaging and
runs the testsuite against the package as-installed. It has been applied
to Ubuntu
Thanks for considering the patch.
Jean-Baptiste.
diff -Nru python-imaging-1.1.7+2.0.0/debian/changelog
python-imaging-1.1.7+2.0.0/debian/changelog
--- python-imaging-1.1.7+2.0.0/debian/changelog 2013-10-20 22:35:13.000000000
+0200
+++ python-imaging-1.1.7+2.0.0/debian/changelog 2013-11-13 09:36:02.000000000
+0100
@@ -1,3 +1,9 @@
+python-imaging (1.1.7+2.0.0-2) UNRELEASED; urgency=low
+
+ * Enable autopkgtest (Closes: #729462)
+
+ -- Jean-Baptiste Lallement <jean-baptiste.lallem...@canonical.com> Wed, 13
Nov 2013 09:35:34 +0100
+
python-imaging (1.1.7+2.0.0-1.1) unstable; urgency=low
* Non-maintainer upload
diff -Nru python-imaging-1.1.7+2.0.0/debian/control
python-imaging-1.1.7+2.0.0/debian/control
--- python-imaging-1.1.7+2.0.0/debian/control 2013-10-20 22:23:06.000000000
+0200
+++ python-imaging-1.1.7+2.0.0/debian/control 2013-11-13 09:35:23.000000000
+0100
@@ -9,6 +9,7 @@
libsane-dev, libfreetype6-dev, libjpeg8-dev, zlib1g-dev, liblcms1-dev,
Build-Conflicts: python-numarray
Standards-Version: 3.9.4
+XS-Testsuite: autopkgtest
Package: python-pil
Architecture: any
diff -Nru python-imaging-1.1.7+2.0.0/debian/tests/control
python-imaging-1.1.7+2.0.0/debian/tests/control
--- python-imaging-1.1.7+2.0.0/debian/tests/control 1970-01-01
01:00:00.000000000 +0100
+++ python-imaging-1.1.7+2.0.0/debian/tests/control 2013-11-13
09:35:23.000000000 +0100
@@ -0,0 +1,5 @@
+Tests: selftest-py2 selftest-py3
+Depends: @
+
+Tests: upstream-py2 upstream-py3
+Depends: @
diff -Nru python-imaging-1.1.7+2.0.0/debian/tests/selftest-py2
python-imaging-1.1.7+2.0.0/debian/tests/selftest-py2
--- python-imaging-1.1.7+2.0.0/debian/tests/selftest-py2 1970-01-01
01:00:00.000000000 +0100
+++ python-imaging-1.1.7+2.0.0/debian/tests/selftest-py2 2013-11-13
09:35:23.000000000 +0100
@@ -0,0 +1,4 @@
+#!/bin/sh
+set -e
+
+python selftest.py
diff -Nru python-imaging-1.1.7+2.0.0/debian/tests/selftest-py3
python-imaging-1.1.7+2.0.0/debian/tests/selftest-py3
--- python-imaging-1.1.7+2.0.0/debian/tests/selftest-py3 1970-01-01
01:00:00.000000000 +0100
+++ python-imaging-1.1.7+2.0.0/debian/tests/selftest-py3 2013-11-13
09:35:23.000000000 +0100
@@ -0,0 +1,4 @@
+#!/bin/sh
+set -e
+
+python3 selftest.py
diff -Nru python-imaging-1.1.7+2.0.0/debian/tests/upstream-py2
python-imaging-1.1.7+2.0.0/debian/tests/upstream-py2
--- python-imaging-1.1.7+2.0.0/debian/tests/upstream-py2 1970-01-01
01:00:00.000000000 +0100
+++ python-imaging-1.1.7+2.0.0/debian/tests/upstream-py2 2013-11-13
09:35:23.000000000 +0100
@@ -0,0 +1,4 @@
+#!/bin/sh
+set -e
+
+python Tests/run.py --installed
diff -Nru python-imaging-1.1.7+2.0.0/debian/tests/upstream-py3
python-imaging-1.1.7+2.0.0/debian/tests/upstream-py3
--- python-imaging-1.1.7+2.0.0/debian/tests/upstream-py3 1970-01-01
01:00:00.000000000 +0100
+++ python-imaging-1.1.7+2.0.0/debian/tests/upstream-py3 2013-11-13
09:35:23.000000000 +0100
@@ -0,0 +1,4 @@
+#!/bin/sh
+set -e
+
+python3 Tests/run.py --installed