[Python-modules-commits] r28106 - in packages/python-keyczar/trunk/debian (4 files)
chrisk-guest at users.alioth.debian.org
chrisk-guest at users.alioth.debian.org
Mon Mar 10 00:40:10 UTC 2014
Date: Monday, March 10, 2014 @ 00:40:09
Author: chrisk-guest
Revision: 28106
Add autopkgtest for unit tests using the default Python interpreter
Added:
packages/python-keyczar/trunk/debian/tests/
packages/python-keyczar/trunk/debian/tests/control
packages/python-keyczar/trunk/debian/tests/unittests-default
Modified:
packages/python-keyczar/trunk/debian/control
Modified: packages/python-keyczar/trunk/debian/control
===================================================================
--- packages/python-keyczar/trunk/debian/control 2014-03-10 00:39:38 UTC (rev 28105)
+++ packages/python-keyczar/trunk/debian/control 2014-03-10 00:40:09 UTC (rev 28106)
@@ -10,6 +10,7 @@
python-pyasn1,
python-crypto
X-Python-Version: >= 2.6
+XS-Testsuite: autopkgtest
Standards-Version: 3.9.5
Homepage: http://www.keyczar.org/
Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-keyczar/trunk/
Added: packages/python-keyczar/trunk/debian/tests/control
===================================================================
--- packages/python-keyczar/trunk/debian/tests/control (rev 0)
+++ packages/python-keyczar/trunk/debian/tests/control 2014-03-10 00:40:09 UTC (rev 28106)
@@ -0,0 +1,3 @@
+Tests: unittests-default
+Restrictions: allow-stderr
+Depends: python-keyczar
Added: packages/python-keyczar/trunk/debian/tests/unittests-default
===================================================================
--- packages/python-keyczar/trunk/debian/tests/unittests-default (rev 0)
+++ packages/python-keyczar/trunk/debian/tests/unittests-default 2014-03-10 00:40:09 UTC (rev 28106)
@@ -0,0 +1,11 @@
+#!/bin/sh
+# Run python-keyczar unit tests using the default Python version
+# Assumes $ADTTMP is set, see /usr/share/doc/autopkgtest/README.package-tests.gz
+set -e
+
+
+# We just copy the entire test suite to the $ADTTMP directory (because of the
+# .pyc files) and run the tests from within there.
+cp -r tests testdata "$ADTTMP"
+cd "$ADTTMP"/tests/keyczar_tests
+python alltests.py
More information about the Python-modules-commits
mailing list