[Python-modules-commits] [speechrecognition-python] 01/01: Add autopkgtests
Ethan Ward
ethanward-guest at moszumanska.debian.org
Fri Sep 1 23:51:17 UTC 2017
This is an automated email from the git hooks/post-receive script.
ethanward-guest pushed a commit to branch master
in repository speechrecognition-python.
commit 6e7d581e12092d033f592e350b315234383dd00a
Author: Ethan Ward <ethan.ward at mycroft.ai>
Date: Fri Sep 1 18:51:12 2017 -0500
Add autopkgtests
---
debian/tests/control | 7 +++++++
debian/tests/py2 | 10 ++++++++++
debian/tests/py3 | 10 ++++++++++
3 files changed, 27 insertions(+)
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..0b677ae
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,7 @@
+Tests: py2
+Depends: python-all,
+ python-speechrecognition
+
+Tests: py3
+Depends: python-all,
+ python3-speechrecognition
diff --git a/debian/tests/py2 b/debian/tests/py2
new file mode 100644
index 0000000..dab8777
--- /dev/null
+++ b/debian/tests/py2
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+set -e
+
+cp -r tests "$AUTOPKGTEST_TMP"
+for py in $(pyversions -r 2>/dev/null)
+ do cd "$AUTOPKGTEST_TMP"
+ echo "Testing with $py:"
+ $py -m unittest discover tests/ '*test.py'
+ done
diff --git a/debian/tests/py3 b/debian/tests/py3
new file mode 100644
index 0000000..dab8777
--- /dev/null
+++ b/debian/tests/py3
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+set -e
+
+cp -r tests "$AUTOPKGTEST_TMP"
+for py in $(pyversions -r 2>/dev/null)
+ do cd "$AUTOPKGTEST_TMP"
+ echo "Testing with $py:"
+ $py -m unittest discover tests/ '*test.py'
+ done
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/speechrecognition-python.git
More information about the Python-modules-commits
mailing list