summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2012-10-12 10:22:39 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2012-10-12 10:22:39 +0200
commit8c8d4e74191c7419ae12d551269e494b58e44281 (patch)
tree277b1181e1fa969bfd7b2f91504ab063e148ecaf /debian
parentcef90610bf1bd56da9f94ed4f848b08e0203f532 (diff)
downloadpython-apt-8c8d4e74191c7419ae12d551269e494b58e44281.tar.gz
add dep8 style tests
Diffstat (limited to 'debian')
-rw-r--r--debian/control1
-rw-r--r--debian/tests/control2
-rw-r--r--debian/tests/run-tests8
3 files changed, 11 insertions, 0 deletions
diff --git a/debian/control b/debian/control
index ca32cb3b..5e85183d 100644
--- a/debian/control
+++ b/debian/control
@@ -20,6 +20,7 @@ Build-Depends: apt (>= 0.9.6),
python-debian
Vcs-Bzr: http://bzr.debian.org/apt/python-apt/debian-sid
Vcs-Browser: http://bzr.debian.org/loggerhead/apt/python-apt/debian-sid/changes
+XS-Testsuite: autopkgtest
Package: python-apt
Architecture: any
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 00000000..0457372b
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: run-tests
+Depends: @, apt, apt-utils, python-debian \ No newline at end of file
diff --git a/debian/tests/run-tests b/debian/tests/run-tests
new file mode 100644
index 00000000..bb980c6b
--- /dev/null
+++ b/debian/tests/run-tests
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+# from debian/rules
+for python in $(utils/pyversions -r); do
+ $python tests/test_all.py -q
+done