From 2844e86e7f9d02148bfc3880d9b3c749080d5463 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Tue, 11 Nov 2014 11:58:07 -0500 Subject: add new debian directory --- debian/tests/control | 8 ++++++++ debian/tests/pypy | 7 +++++++ debian/tests/python2 | 13 +++++++++++++ debian/tests/python3 | 13 +++++++++++++ 4 files changed, 41 insertions(+) create mode 100644 debian/tests/control create mode 100755 debian/tests/pypy create mode 100755 debian/tests/python2 create mode 100755 debian/tests/python3 (limited to 'debian/tests') diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..7d9017f --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,8 @@ +Tests: python2 +Depends: python-all, python-all-dbg, python-zmq, python-zmq-dbg, python-nose, python-numpy-dbg, python-numpy, python-tornado, python-gevent, python-gevent-dbg + +Tests: python3 +Depends: python3-all, python3-all-dbg, python3-zmq, python3-zmq-dbg, python3-nose, python3-numpy, python3-numpy-dbg, python3-tornado + +Tests: pypy +Depends: pypy, pypy-zmq diff --git a/debian/tests/pypy b/debian/tests/pypy new file mode 100755 index 0000000..78d7096 --- /dev/null +++ b/debian/tests/pypy @@ -0,0 +1,7 @@ +#!/bin/sh +set -efu + +cd "$ADTTMP" + +echo "=== pypy ===" +pypy -m unittest discover -v -s $(pypy -c "import zmq, os; print os.path.dirname(zmq.__file__)") 2>&1 diff --git a/debian/tests/python2 b/debian/tests/python2 new file mode 100755 index 0000000..925268d --- /dev/null +++ b/debian/tests/python2 @@ -0,0 +1,13 @@ +#!/bin/sh +set -efu + +pys="$(pyversions -r 2>/dev/null)" + +cd "$ADTTMP" + +for py in $pys; do + echo "=== $py ===" + $py /usr/bin/nosetests -v zmq.tests 2>&1 + echo "=== $py-dbg ===" + $py-dbg /usr/bin/nosetests -v zmq.tests 2>&1 +done diff --git a/debian/tests/python3 b/debian/tests/python3 new file mode 100755 index 0000000..8f6b039 --- /dev/null +++ b/debian/tests/python3 @@ -0,0 +1,13 @@ +#!/bin/sh +set -efu + +pys="$(py3versions -r 2>/dev/null)" + +cd "$ADTTMP" + +for py in $pys; do + echo "=== $py ===" + $py /usr/bin/nosetests3 -v zmq.tests 2>&1 + echo "=== $py-dbg ===" + $py-dbg /usr/bin/nosetests3 -v zmq.tests 2>&1 +done -- cgit v1.2.3