[Python-modules-commits] r25352 - in packages/pycxx/trunk/debian (5 files)

jtaylor-guest at users.alioth.debian.org jtaylor-guest at users.alioth.debian.org
Fri Aug 2 17:25:43 UTC 2013


    Date: Friday, August 2, 2013 @ 17:25:42
  Author: jtaylor-guest
Revision: 25352

add autopkgtest testing compilation

Added:
  packages/pycxx/trunk/debian/tests/
  packages/pycxx/trunk/debian/tests/buildtest
  packages/pycxx/trunk/debian/tests/control
Modified:
  packages/pycxx/trunk/debian/changelog
  packages/pycxx/trunk/debian/control

Modified: packages/pycxx/trunk/debian/changelog
===================================================================
--- packages/pycxx/trunk/debian/changelog	2013-08-02 17:25:38 UTC (rev 25351)
+++ packages/pycxx/trunk/debian/changelog	2013-08-02 17:25:42 UTC (rev 25352)
@@ -8,8 +8,9 @@
   * Bump standard version to 3.9.4, no changes required
   * drop obsolete transitional python{3,}-cxx
   * don't compress examples and fix their permissions
+  * add autopkgtest testing compilation
 
- -- Julian Taylor <jtaylor.debian at googlemail.com>  Mon, 15 Jul 2013 20:42:17 +0200
+ -- Julian Taylor <jtaylor.debian at googlemail.com>  Fri, 02 Aug 2013 18:53:51 +0200
 
 pycxx (6.2.4-3) unstable; urgency=low
 

Modified: packages/pycxx/trunk/debian/control
===================================================================
--- packages/pycxx/trunk/debian/control	2013-08-02 17:25:38 UTC (rev 25351)
+++ packages/pycxx/trunk/debian/control	2013-08-02 17:25:42 UTC (rev 25352)
@@ -7,11 +7,13 @@
                python-all (>= 2.6.6-3~),
                python3-all-dbg,
                python3-all-dev (>= 3.1.2-10~)
-XS-Python-Version: all
+X-Python-Version: >= 2.4
+X-Python3-Version: >= 3.0
 Standards-Version: 3.9.4
 Homepage: http://cxx.sourceforge.net
 Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/pycxx/trunk/
 Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/pycxx/trunk/
+XS-Testsuite: autopkgtest
 
 Package: python-cxx-dev
 Architecture: all

Added: packages/pycxx/trunk/debian/tests/buildtest
===================================================================
--- packages/pycxx/trunk/debian/tests/buildtest	                        (rev 0)
+++ packages/pycxx/trunk/debian/tests/buildtest	2013-08-02 17:25:42 UTC (rev 25352)
@@ -0,0 +1,35 @@
+#!/bin/sh
+set -efu
+SRC=$PWD
+pys=$(pyversions -r)
+py3s=$(py3versions -r)
+
+cd $ADTTMP
+
+cp -r /usr/share/doc/python-cxx-dev/examples/ .
+cd examples
+
+for py in $pys; do
+  export PYTHONPATH=$PWD/local/lib/$py/site-packages/CXX
+  $py setup.py build 2>&1
+  $py setup.py install --prefix=$PWD/local 2>&1
+  $py test_example.py
+  $py-dbg setup.py build 2>&1
+  $py-dbg setup.py install --prefix=$PWD/local 2>&1
+  $py-dbg test_example.py 2>&1
+done
+cd ..
+
+cp -r /usr/share/doc/python3-cxx-dev/examples/ .
+cd examples
+
+for py in $py3s; do
+  export PYTHONPATH=$PWD/local/lib/$py/site-packages/CXX
+  $py setup.py build  2>&1
+  $py setup.py install --prefix=$PWD/local 2>&1
+  $py test_example.py
+  $py-dbg setup.py build 2>&1
+  $py-dbg setup.py install --prefix=$PWD/local 2>&1
+  $py-dbg test_example.py 2>&1
+done
+


Property changes on: packages/pycxx/trunk/debian/tests/buildtest
___________________________________________________________________
Added: svn:executable
   + *

Added: packages/pycxx/trunk/debian/tests/control
===================================================================
--- packages/pycxx/trunk/debian/tests/control	                        (rev 0)
+++ packages/pycxx/trunk/debian/tests/control	2013-08-02 17:25:42 UTC (rev 25352)
@@ -0,0 +1,2 @@
+Tests: buildtest
+Depends: python-cxx-dev, python3-cxx-dev, g++, python-all-dev, python3-all-dev, python-all-dbg, python3-all-dbg




More information about the Python-modules-commits mailing list