[Python-modules-commits] r23408 - in packages/scipy/trunk/debian (8 files)

jtaylor-guest at users.alioth.debian.org jtaylor-guest at users.alioth.debian.org
Sun Jan 27 16:53:36 UTC 2013


    Date: Sunday, January 27, 2013 @ 16:53:34
  Author: jtaylor-guest
Revision: 23408

add autopkgtests

Added:
  packages/scipy/trunk/debian/tests/
  packages/scipy/trunk/debian/tests/atlas
  packages/scipy/trunk/debian/tests/control
  packages/scipy/trunk/debian/tests/openblas
  packages/scipy/trunk/debian/tests/python2
  packages/scipy/trunk/debian/tests/python3
Modified:
  packages/scipy/trunk/debian/changelog
  packages/scipy/trunk/debian/control

Modified: packages/scipy/trunk/debian/changelog
===================================================================
--- packages/scipy/trunk/debian/changelog	2013-01-27 16:53:27 UTC (rev 23407)
+++ packages/scipy/trunk/debian/changelog	2013-01-27 16:53:34 UTC (rev 23408)
@@ -13,6 +13,7 @@
       - BUG-fix-dependency-on-dict-ordering-in-test.patch
       - fix-test_basic.py-cephes_vs_amos_mass_te.patch
       - python3.3-incdir.diff
+  * add autopkgtests
 
  -- Julian Taylor <jtaylor.debian at googlemail.com>  Fri, 25 Jan 2013 23:54:43 +0100
 

Modified: packages/scipy/trunk/debian/control
===================================================================
--- packages/scipy/trunk/debian/control	2013-01-27 16:53:27 UTC (rev 23407)
+++ packages/scipy/trunk/debian/control	2013-01-27 16:53:34 UTC (rev 23408)
@@ -30,6 +30,7 @@
 Vcs-Svn: svn://svn.debian.org/python-modules/packages/scipy/trunk
 Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/scipy/trunk/
 XS-DM-Upload-Allowed: yes
+XS-Testsuite: autopkgtest
 
 Package: python-scipy
 Architecture: any

Added: packages/scipy/trunk/debian/tests/atlas
===================================================================
--- packages/scipy/trunk/debian/tests/atlas	                        (rev 0)
+++ packages/scipy/trunk/debian/tests/atlas	2013-01-27 16:53:34 UTC (rev 23408)
@@ -0,0 +1 @@
+link openblas
\ No newline at end of file


Property changes on: packages/scipy/trunk/debian/tests/atlas
___________________________________________________________________
Added: svn:special
   + *

Added: packages/scipy/trunk/debian/tests/control
===================================================================
--- packages/scipy/trunk/debian/tests/control	                        (rev 0)
+++ packages/scipy/trunk/debian/tests/control	2013-01-27 16:53:34 UTC (rev 23408)
@@ -0,0 +1,15 @@
+Tests: python2
+Depends: python-scipy, python-nose, python-all, python-all-dev, python-mpmath, python-imaging
+
+Tests: python3
+Depends: python3-scipy, python3-nose, python3-all, python3-all-dev
+
+#needs root for update-alternatives
+Tests: openblas
+Restrictions: needs-root
+Depends: python-scipy, python-nose, python, libopenblas-base
+
+#needs root for update-alternatives
+Tests: atlas
+Restrictions: needs-root
+Depends: python-scipy, python-nose, python, libatlas3-base

Added: packages/scipy/trunk/debian/tests/openblas
===================================================================
--- packages/scipy/trunk/debian/tests/openblas	                        (rev 0)
+++ packages/scipy/trunk/debian/tests/openblas	2013-01-27 16:53:34 UTC (rev 23408)
@@ -0,0 +1,19 @@
+#!/bin/sh
+set -efu
+blaslib=$(update-alternatives --list libblas.so.3 | grep $(basename $0))
+update-alternatives --set libblas.so.3 $blaslib
+
+echo "=== testing "$(basename $0)" ==="
+
+# one python is enough
+PYS=${PYS:-"$(pyversions -d 2>/dev/null)"}
+
+#test only modules that link against libblas
+PYS=$PYS TESTPKG=scipy.odr debian/tests/python2
+PYS=$PYS TESTPKG=scipy.optimize debian/tests/python2
+PYS=$PYS TESTPKG=scipy.spatial debian/tests/python2
+PYS=$PYS TESTPKG=scipy.lib.lapack debian/tests/python2
+PYS=$PYS TESTPKG=scipy.lib.blas debian/tests/python2
+PYS=$PYS TESTPKG=scipy.special debian/tests/python2
+PYS=$PYS TESTPKG=scipy.integrate debian/tests/python2
+PYS=$PYS TESTPKG=scipy.linalg debian/tests/python2


Property changes on: packages/scipy/trunk/debian/tests/openblas
___________________________________________________________________
Added: svn:executable
   + *

Added: packages/scipy/trunk/debian/tests/python2
===================================================================
--- packages/scipy/trunk/debian/tests/python2	                        (rev 0)
+++ packages/scipy/trunk/debian/tests/python2	2013-01-27 16:53:34 UTC (rev 23408)
@@ -0,0 +1,41 @@
+#!/bin/sh
+set -efu
+
+PYS=${PYS:-"$(pyversions -r 2>/dev/null)"}
+TESTMODE=${TESTMODE:-full}
+TESTPKG=${TESTPKG:-scipy}
+
+cd "$ADTTMP"
+#nosetest does not handle knowfailures
+cat << EOF > runtest.py
+import $TESTPKG
+import re
+skip = [
+# numpy 1.7 failures
+# http://mail.scipy.org/pipermail/scipy-user/2012-September/033254.html
+'test_kdtree.test_random_ball_vectorized',
+'test_kdtree.test_vectorization.test_vectorized_query_multiple_neighbors',
+'test_kdtree.test_vectorization.test_vectorized_query_all_neighbors',
+'test_kdtree.test_vectorization.test_vectorized_query',
+'test_ndgriddata.TestGriddata.test_1d_unsorted',
+'test_ndgriddata.TestGriddata.test_1d',
+'test_interpolate.TestInterp1D.test_nd',
+'test_interpolate.TestInterp1D.test_cubic',
+'test_interpolate.TestInterp1D.test_complex',
+'test_interpolate.TestInterp1D.test_bounds',
+]
+r = $TESTPKG.test(label='$TESTMODE', verbose=2);
+errors = []
+for e in r.errors:
+    if not any(re.search(s, e[0].id()) for s in skip):
+        print e[0].id()
+        errors.append(e)
+print "#errors: %d" % len(errors)
+assert len(errors) == 0
+EOF
+
+
+for py in $PYS; do
+    echo "=== $py ==="
+    $py runtest.py 2>&1
+done


Property changes on: packages/scipy/trunk/debian/tests/python2
___________________________________________________________________
Added: svn:executable
   + *

Added: packages/scipy/trunk/debian/tests/python3
===================================================================
--- packages/scipy/trunk/debian/tests/python3	                        (rev 0)
+++ packages/scipy/trunk/debian/tests/python3	2013-01-27 16:53:34 UTC (rev 23408)
@@ -0,0 +1,41 @@
+#!/bin/sh
+set -efu
+
+PYS=${PYS:-"$(py3versions -r 2>/dev/null)"}
+TESTMODE=${TESTMODE:-full}
+TESTPKG=${TESTPKG:-scipy}
+
+cd "$ADTTMP"
+#nosetest does not handle knowfailures
+cat << EOF > runtest.py
+import $TESTPKG
+import re
+skip = [
+# numpy 1.7 failures
+# http://mail.scipy.org/pipermail/scipy-user/2012-September/033254.html
+'test_kdtree.test_random_ball_vectorized',
+'test_kdtree.test_vectorization.test_vectorized_query_multiple_neighbors',
+'test_kdtree.test_vectorization.test_vectorized_query_all_neighbors',
+'test_kdtree.test_vectorization.test_vectorized_query',
+'test_ndgriddata.TestGriddata.test_1d_unsorted',
+'test_ndgriddata.TestGriddata.test_1d',
+'test_interpolate.TestInterp1D.test_nd',
+'test_interpolate.TestInterp1D.test_cubic',
+'test_interpolate.TestInterp1D.test_complex',
+'test_interpolate.TestInterp1D.test_bounds',
+]
+r = $TESTPKG.test(label='$TESTMODE', verbose=2);
+errors = []
+for e in r.errors:
+    if not any(re.search(s, e[0].id()) for s in skip):
+        print(e[0].id())
+        errors.append(e)
+print("#errors: %d" % len(errors))
+assert len(errors) == 0
+EOF
+
+
+for py in $PYS; do
+    echo "=== $py ==="
+    $py runtest.py 2>&1
+done


Property changes on: packages/scipy/trunk/debian/tests/python3
___________________________________________________________________
Added: svn:executable
   + *




More information about the Python-modules-commits mailing list