From 07ed30ecd8537a72cea8554146fdb946dc6773f4 Mon Sep 17 00:00:00 2001
From: Thomas Kluyver <takowl@gmail.com>
Date: Thu, 19 Jun 2014 14:37:32 -0700
Subject: Add autopkgtest information

Copied from this Ubuntu commit, then added Python 3 test run:
http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/utopic/paramiko/utopic/revision/15
---
 debian/control        | 1 +
 debian/tests/control  | 3 +++
 debian/tests/upstream | 5 +++++
 3 files changed, 9 insertions(+)
 create mode 100644 debian/tests/control
 create mode 100644 debian/tests/upstream

diff --git a/debian/control b/debian/control
index a3c0652..93d22ec 100644
--- a/debian/control
+++ b/debian/control
@@ -19,6 +19,7 @@ Standards-Version: 3.9.5
 Homepage: https://github.com/paramiko/paramiko/
 Vcs-Git: https://github.com/jbouse-debian/paramiko.git
 Vcs-Browser: https://github.com/jbouse-debian/paramiko
+XS-Testsuite: autopkgtest
 
 Package: paramiko-doc
 Package-Type: deb
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..799e33c
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: upstream
+Depends: @
+Restrictions: allow-stderr
diff --git a/debian/tests/upstream b/debian/tests/upstream
new file mode 100644
index 0000000..7a400be
--- /dev/null
+++ b/debian/tests/upstream
@@ -0,0 +1,5 @@
+#!/bin/sh
+set -e
+
+python ./test.py --verbose
+python3 ./test.py --verbose
-- 
cgit v1.2.3