[Python-modules-commits] r23739 - in packages/ipython/trunk/debian (8 files)
jtaylor-guest at users.alioth.debian.org
jtaylor-guest at users.alioth.debian.org
Wed Mar 20 18:59:03 UTC 2013
Date: Wednesday, March 20, 2013 @ 18:59:01
Author: jtaylor-guest
Revision: 23739
add more autopkgtests testing profile creation and cython magics
Added:
packages/ipython/trunk/debian/tests/cython-magic.py
packages/ipython/trunk/debian/tests/cython-magic2
packages/ipython/trunk/debian/tests/cython-magic3
packages/ipython/trunk/debian/tests/tools
packages/ipython/trunk/debian/tests/tools2
packages/ipython/trunk/debian/tests/tools3
Modified:
packages/ipython/trunk/debian/changelog
packages/ipython/trunk/debian/tests/control
Modified: packages/ipython/trunk/debian/changelog
===================================================================
--- packages/ipython/trunk/debian/changelog 2013-03-20 14:14:05 UTC (rev 23738)
+++ packages/ipython/trunk/debian/changelog 2013-03-20 18:59:01 UTC (rev 23739)
@@ -15,6 +15,7 @@
* linenoless-traceback.patch:
fix crash on tracebacks without line numbers (Closes: #701597)
* add tkinter package to debianize-error-messages.patch (Closes: #701707)
+ * add more autopkgtests testing profile creation and cython magics
-- Julian Taylor <jtaylor.debian at googlemail.com> Sat, 02 Feb 2013 11:14:27 +0100
Modified: packages/ipython/trunk/debian/tests/control
===================================================================
--- packages/ipython/trunk/debian/tests/control 2013-03-20 14:14:05 UTC (rev 23738)
+++ packages/ipython/trunk/debian/tests/control 2013-03-20 18:59:01 UTC (rev 23739)
@@ -44,3 +44,15 @@
python3-zmq,
xauth,
xvfb
+
+Tests: cython-magic2
+Depends: ipython, cython, python-dev, python-pexpect
+
+Tests: cython-magic3
+Depends: ipython3, cython3, python3-dev, python-pexpect
+
+Tests: tools2
+Depends: ipython
+
+Tests: tools3
+Depends: ipython3
Added: packages/ipython/trunk/debian/tests/cython-magic.py
===================================================================
--- packages/ipython/trunk/debian/tests/cython-magic.py (rev 0)
+++ packages/ipython/trunk/debian/tests/cython-magic.py 2013-03-20 18:59:01 UTC (rev 23739)
@@ -0,0 +1,26 @@
+import pexpect
+import sys
+c = pexpect.spawn(sys.argv[1])
+c.expect(".*")
+c.sendline("%load_ext cythonmagic")
+c.sendline("%%cython")
+c.sendline("cimport cython")
+c.sendline("def f():")
+c.sendline(" return 'RESULT STRING'")
+c.sendline("")
+c.expect(".*")
+c.sendline("f()")
+try:
+ c.expect("RESULT STRING")
+except:
+ c.sendeof()
+ c.sendeof()
+ print c.before, c.after
+ raise
+
+c.sendeof()
+c.sendeof()
+import time
+time.sleep(1)
+if c.isalive():
+ c.kill(0)
Added: packages/ipython/trunk/debian/tests/cython-magic2
===================================================================
--- packages/ipython/trunk/debian/tests/cython-magic2 (rev 0)
+++ packages/ipython/trunk/debian/tests/cython-magic2 2013-03-20 18:59:01 UTC (rev 23739)
@@ -0,0 +1,5 @@
+#!/bin/sh
+set -efu
+export HOME=$ADTTMP
+
+python $PWD/debian/tests/interactive.py ipython
Property changes on: packages/ipython/trunk/debian/tests/cython-magic2
___________________________________________________________________
Added: svn:executable
+ *
Added: packages/ipython/trunk/debian/tests/cython-magic3
===================================================================
--- packages/ipython/trunk/debian/tests/cython-magic3 (rev 0)
+++ packages/ipython/trunk/debian/tests/cython-magic3 2013-03-20 18:59:01 UTC (rev 23739)
@@ -0,0 +1,5 @@
+#!/bin/sh
+set -efu
+export HOME=$ADTTMP
+
+python $PWD/debian/tests/interactive.py ipython3
Property changes on: packages/ipython/trunk/debian/tests/cython-magic3
___________________________________________________________________
Added: svn:executable
+ *
Added: packages/ipython/trunk/debian/tests/tools
===================================================================
--- packages/ipython/trunk/debian/tests/tools (rev 0)
+++ packages/ipython/trunk/debian/tests/tools 2013-03-20 18:59:01 UTC (rev 23739)
@@ -0,0 +1,5 @@
+#!/bin/sh
+set -efu
+
+export HOME=$ADTTMP
+$1 profile create 2>&1
Property changes on: packages/ipython/trunk/debian/tests/tools
___________________________________________________________________
Added: svn:executable
+ *
Added: packages/ipython/trunk/debian/tests/tools2
===================================================================
--- packages/ipython/trunk/debian/tests/tools2 (rev 0)
+++ packages/ipython/trunk/debian/tests/tools2 2013-03-20 18:59:01 UTC (rev 23739)
@@ -0,0 +1,4 @@
+#!/bin/sh
+set -efu
+
+$PWD/debian/tests/tools ipython
Property changes on: packages/ipython/trunk/debian/tests/tools2
___________________________________________________________________
Added: svn:executable
+ *
Added: packages/ipython/trunk/debian/tests/tools3
===================================================================
--- packages/ipython/trunk/debian/tests/tools3 (rev 0)
+++ packages/ipython/trunk/debian/tests/tools3 2013-03-20 18:59:01 UTC (rev 23739)
@@ -0,0 +1,4 @@
+#!/bin/sh
+set -efu
+
+$PWD/debian/tests/tools ipython3
Property changes on: packages/ipython/trunk/debian/tests/tools3
___________________________________________________________________
Added: svn:executable
+ *
More information about the Python-modules-commits
mailing list