Merge lp:~jtaylor/ubuntu/raring/python-numpy/autopkgtest into lp:ubuntu/raring/python-numpy

Proposed by Julian Taylor
Status: Merged
Merged at revision: 34
Proposed branch: lp:~jtaylor/ubuntu/raring/python-numpy/autopkgtest
Merge into: lp:ubuntu/raring/python-numpy
Diff against target: 148 lines (+86/-0)
9 files modified
debian/changelog (+7/-0)
debian/control (+1/-0)
debian/python3-numpy-dbg.install (+1/-0)
debian/python3-numpy.install (+1/-0)
debian/tests/control (+18/-0)
debian/tests/f2py (+23/-0)
debian/tests/openblas (+11/-0)
debian/tests/python2 (+12/-0)
debian/tests/python3 (+12/-0)
To merge this branch: bzr merge lp:~jtaylor/ubuntu/raring/python-numpy/autopkgtest
Reviewer Review Type Date Requested Status
Iain Lane Approve
Ubuntu branches Pending
Review via email: mp+139946@code.launchpad.net

Description of the change

I'm unsure about the openblas test
it fails in (auto-package-test) virtual machines as they lie about their cpu but works fine on real hardware

To post a comment you must log in.
Revision history for this message
Julian Taylor (jtaylor) wrote :

I fixed two issues in openblas concerning the VM's:
https://github.com/xianyi/OpenBLAS/pull/169
https://github.com/xianyi/OpenBLAS/pull/170

so it should in principle be VM safe now

but this issue remains, but its not related to our autotest infrastructure
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=696000

32. By Julian Taylor

redirect python-dbg stderr to stdout

33. By Julian Taylor

only redirect python-dbg

34. By Julian Taylor

clarify comment for needs-root restriction

Revision history for this message
Iain Lane (laney) wrote :

Uploaded, thank you.

It'd be nice if you could send these to Debian.

review: Approve
Revision history for this message
Julian Taylor (jtaylor) wrote :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2012-11-06 22:47:07 +0000
3+++ debian/changelog 2012-12-18 17:56:20 +0000
4@@ -1,3 +1,10 @@
5+python-numpy (1:1.7.0~b2-1ubuntu6) raring; urgency=low
6+
7+ * fix installation f2py3
8+ * add autopkgtests
9+
10+ -- Julian Taylor <jtaylor@ubuntu.com> Fri, 14 Dec 2012 12:46:11 +0100
11+
12 python-numpy (1:1.7.0~b2-1ubuntu5) raring; urgency=low
13
14 * Drop python3.2.
15
16=== modified file 'debian/control'
17--- debian/control 2012-10-26 12:33:51 +0000
18+++ debian/control 2012-12-18 17:56:20 +0000
19@@ -11,6 +11,7 @@
20 Vcs-Svn: svn://svn.debian.org/python-modules/packages/numpy/trunk
21 Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/numpy/trunk/
22 Homepage: http://numpy.scipy.org/
23+XS-Testsuite: autopkgtest
24
25 Package: python-numpy
26 Architecture: any
27
28=== modified file 'debian/python3-numpy-dbg.install'
29--- debian/python3-numpy-dbg.install 2012-03-19 19:38:13 +0000
30+++ debian/python3-numpy-dbg.install 2012-12-18 17:56:20 +0000
31@@ -1,2 +1,3 @@
32+usr/bin/f2py3-dbg
33 usr/bin/f2py3.?-dbg
34 usr/lib/python3*/*-packages/*/*/*.cpython-*d*.so
35
36=== modified file 'debian/python3-numpy.install'
37--- debian/python3-numpy.install 2012-06-02 18:44:16 +0000
38+++ debian/python3-numpy.install 2012-12-18 17:56:20 +0000
39@@ -1,4 +1,5 @@
40 debian/dh_numpy3 usr/bin
41+usr/bin/f2py3
42 usr/bin/f2py3.?
43 usr/lib/python3*/*-packages/*/*/*.cpython-3?[!d]*.so
44 usr/lib/python3*/*-packages/*/*/*/libnpymath.a
45
46=== added directory 'debian/tests'
47=== added symlink 'debian/tests/atlas'
48=== target is u'openblas'
49=== added file 'debian/tests/control'
50--- debian/tests/control 1970-01-01 00:00:00 +0000
51+++ debian/tests/control 2012-12-18 17:56:20 +0000
52@@ -0,0 +1,18 @@
53+Tests: python2
54+Depends: python-numpy, python-all, python-nose, python-tz
55+
56+Tests: python3
57+Depends: python3-numpy, python3-all, python3-nose, python3-tz
58+
59+#needs root for update-alternatives
60+Tests: openblas
61+Restrictions: needs-root
62+Depends: python-numpy, python-all, python-nose, python-tz, libopenblas-base
63+
64+#needs root for update-alternatives
65+Tests: atlas
66+Restrictions: needs-root
67+Depends: python-numpy, python-all, python-nose, python-tz, libatlas3-base
68+
69+Tests: f2py
70+Depends: gcc, gfortran, python-numpy, python-numpy-dbg, python-all, python-all-dbg, python-all-dev, python3-numpy, python3-numpy-dbg, python3-all, python3-all-dbg, python3-all-dev
71
72=== added file 'debian/tests/f2py'
73--- debian/tests/f2py 1970-01-01 00:00:00 +0000
74+++ debian/tests/f2py 2012-12-18 17:56:20 +0000
75@@ -0,0 +1,23 @@
76+#!/bin/sh
77+set -efu
78+
79+PYS=$(pyversions -rv 2>/dev/null)" "$(py3versions -rv 2>/dev/null)
80+
81+cd "$ADTTMP"
82+
83+cat << EOF > hello.f
84+C File hello.f
85+ integer function foo (a)
86+ integer a
87+ foo = a + 1
88+ end
89+EOF
90+
91+for py in " " 3 $PYS; do
92+ [ "$py" = " " ] && py=""
93+ echo "=== f2py$py ==="
94+ f2py$py -c -m hello hello.f 2>&1
95+ python$py -c 'import hello; assert hello.foo(4) == 5'
96+ f2py$py-dbg -c -m hello hello.f 2>&1
97+ python$py-dbg -c 'import hello; assert hello.foo(4) == 5' 2>&1
98+done
99
100=== added file 'debian/tests/openblas'
101--- debian/tests/openblas 1970-01-01 00:00:00 +0000
102+++ debian/tests/openblas 2012-12-18 17:56:20 +0000
103@@ -0,0 +1,11 @@
104+#!/bin/sh
105+set -efu
106+blaslib=$(update-alternatives --list libblas.so.3 | grep $(basename $0))
107+update-alternatives --set libblas.so.3 $blaslib
108+
109+# one python is enough
110+PYS=${PYS:-"$(pyversions -d 2>/dev/null)"}
111+
112+#test only modules that link against libblas
113+PYS=$PYS TESTPKG=numpy.core debian/tests/python2
114+PYS=$PYS TESTPKG=numpy.linalg debian/tests/python2
115
116=== added file 'debian/tests/python2'
117--- debian/tests/python2 1970-01-01 00:00:00 +0000
118+++ debian/tests/python2 2012-12-18 17:56:20 +0000
119@@ -0,0 +1,12 @@
120+#!/bin/sh
121+set -efu
122+
123+PYS=${PYS:-"$(pyversions -r 2>/dev/null)"}
124+TESTPKG=${TESTPKG:-numpy}
125+
126+cd "$ADTTMP"
127+
128+for py in $PYS; do
129+ echo "=== $py ==="
130+ $py -c "import $TESTPKG; $TESTPKG.test(verbose=2)" 2>&1
131+done
132
133=== added file 'debian/tests/python3'
134--- debian/tests/python3 1970-01-01 00:00:00 +0000
135+++ debian/tests/python3 2012-12-18 17:56:20 +0000
136@@ -0,0 +1,12 @@
137+#!/bin/sh
138+set -efu
139+
140+PYS=${PYS:-"$(py3versions -r 2>/dev/null)"}
141+TESTPKG=${TESTPKG:-numpy}
142+
143+cd "$ADTTMP"
144+
145+for py in $PYS; do
146+ echo "=== $py ==="
147+ $py -c "import $TESTPKG; $TESTPKG.test(verbose=2)" 2>&1
148+done

Subscribers

People subscribed via source and target branches

to all changes: