[Python-modules-commits] [ipython4] 11/14: Add autopkgtest suite

Gordon Ball chronitis-guest at moszumanska.debian.org
Sat Jun 24 13:39:50 UTC 2017


This is an automated email from the git hooks/post-receive script.

chronitis-guest pushed a commit to branch master
in repository ipython4.

commit 0bc1d985042a8b018b101a4675278605d2fb8977
Author: Gordon Ball <gordon at chronitis.net>
Date:   Sat Jun 24 12:25:27 2017 +0200

    Add autopkgtest suite
---
 debian/changelog     |  1 +
 debian/tests/control |  8 ++++++++
 debian/tests/ipython | 12 ++++++++++++
 3 files changed, 21 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index cff09ef..51e6575 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ ipython (5.4.0-1) UNRELEASED; urgency=medium
   * Update debhelper compat to 10
   * Set minimum python3 version to 3.3
   * Use python3 sphinx for documentation
+  * Add autopkgtests for importability and simple syntax examples
 
  -- Gordon Ball <gordon at chronitis.net>  Sat, 24 Jun 2017 11:19:04 +0200
 
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..7bce7af
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,8 @@
+Test-Command: python -c 'import IPython'
+Depends: python-ipython
+
+Test-Command: python3 -c 'import IPython'
+Depends: python3-ipython
+
+Tests: ipython
+Depends: ipython, ipython3
diff --git a/debian/tests/ipython b/debian/tests/ipython
new file mode 100644
index 0000000..5f9cd72
--- /dev/null
+++ b/debian/tests/ipython
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+export HOME=$AUTOPKGTEST_TMP
+export LC_ALL=C.UTF-8
+
+for ipy in ipython ipython3; do
+    $ipy -c "1+1"
+    $ipy -c "%ls"
+    $ipy -c "%sh echo shtest"
+    $ipy -c "!true"
+    $ipy -c "%timeit __import__('time').sleep(1)"
+done

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/ipython4.git



More information about the Python-modules-commits mailing list