r1550 - in transaction/trunk/debian (changelog tests/all tests/control)

Brian Sutherland jinty-guest at alioth.debian.org
Tue Jun 16 09:59:52 UTC 2009


    Date: Tuesday, June 16, 2009 @ 09:59:50
  Author: jinty-guest
Revision: 1550

Use the test_helper from python-van.testing to simplify testing script.

Modified:
  transaction/trunk/debian/changelog
  transaction/trunk/debian/tests/all
  transaction/trunk/debian/tests/control

Modified: transaction/trunk/debian/changelog
===================================================================
--- transaction/trunk/debian/changelog	2009-06-16 09:58:07 UTC (rev 1549)
+++ transaction/trunk/debian/changelog	2009-06-16 09:59:50 UTC (rev 1550)
@@ -1,3 +1,9 @@
+transaction (1.0~a1-3) unstable; urgency=low
+
+  * Use the test_helper from python-van.testing to simplify testing script.
+
+ -- Brian Sutherland <brian at vanguardistas.net>  Mon, 15 Jun 2009 06:09:32 +0200
+
 transaction (1.0~a1-2) unstable; urgency=low
 
   * Replaces: python-zodb to smooth upgrades, the contents of of this package

Modified: transaction/trunk/debian/tests/all
===================================================================
--- transaction/trunk/debian/tests/all	2009-06-16 09:58:07 UTC (rev 1549)
+++ transaction/trunk/debian/tests/all	2009-06-16 09:59:50 UTC (rev 1550)
@@ -1,29 +1,5 @@
 #!/bin/bash
 
-set -e
+# change if the python package name is not the same as the python module name
 
-PYVERS=$(pyversions -vr debian/control)
-TMPFILE=$(mktemp)
-
-cat > $TMPFILE << EOF
-import sys
-from zope.testing import testrunner
-
-subs = (sys.version_info[0], sys.version_info[1])
-test_path = '/usr/lib/python%s.%s/site-packages/' % subs
-
-
-
-exitcode = testrunner.run([
-                '--tests-pattern', '^f?tests$',
-                '-s', 'transaction',
-                '--test-path', test_path
-                ])
-sys.exit(exitcode)
-EOF
-
-for version in ${PYVERS}; do
-    python${version} ${TMPFILE}
-done
-
-m ${TMPFILE}
+. /usr/share/python-zope.testing/test_helper

Modified: transaction/trunk/debian/tests/control
===================================================================
--- transaction/trunk/debian/tests/control	2009-06-16 09:58:07 UTC (rev 1549)
+++ transaction/trunk/debian/tests/control	2009-06-16 09:59:50 UTC (rev 1550)
@@ -1,3 +1,3 @@
 Tests: all
 Features: no-build-needed
-Depends: @, python-zope.testing
+Depends: @, python-zope.testing, python-van.pydeb




More information about the pkg-zope-commits mailing list