[med-svn] r17700 - in trunk/packages/pynast/trunk/debian: . tests

Andreas Tille tille at moszumanska.debian.org
Tue Aug 12 11:33:07 UTC 2014


Author: tille
Date: 2014-08-12 11:33:07 +0000 (Tue, 12 Aug 2014)
New Revision: 17700

Added:
   trunk/packages/pynast/trunk/debian/README.test
   trunk/packages/pynast/trunk/debian/tests/
   trunk/packages/pynast/trunk/debian/tests/control
   trunk/packages/pynast/trunk/debian/tests/run-unit-test
Modified:
   trunk/packages/pynast/trunk/debian/changelog
   trunk/packages/pynast/trunk/debian/docs
Log:
Add autopkgtest


Added: trunk/packages/pynast/trunk/debian/README.test
===================================================================
--- trunk/packages/pynast/trunk/debian/README.test	                        (rev 0)
+++ trunk/packages/pynast/trunk/debian/README.test	2014-08-12 11:33:07 UTC (rev 17700)
@@ -0,0 +1,20 @@
+Notes on how this package can be tested.
+────────────────────────────────────────
+
+To run the unit tests provided by the package you can do
+
+   sh  run-unit-test
+
+in this directory.
+
+Attention: Several tests are making use of uclust
+
+  http://www.drive5.com/uclust/downloads1_2_22q.html
+
+which is non-free and thus can not be packaged for Debian.  So the original
+test suite was patched heavily.  If you want to install uclust on your own
+you might like to fetch the original unit tests from the original tarball
+of PyNAST.
+
+
+ -- Andreas Tille <tille at debian.org>  Mon, 11 Aug 2014 16:33:56 +0200

Modified: trunk/packages/pynast/trunk/debian/changelog
===================================================================
--- trunk/packages/pynast/trunk/debian/changelog	2014-08-12 11:20:40 UTC (rev 17699)
+++ trunk/packages/pynast/trunk/debian/changelog	2014-08-12 11:33:07 UTC (rev 17700)
@@ -1,4 +1,4 @@
-pynast (1.2.2-1) UNRELEASED; urgency=medium
+pynast (1.2.2-1) unstable; urgency=medium
 
   * New upsteam version now on Github (adapted d/watch)
   * rename source package from python-pynast to pynast
@@ -11,6 +11,7 @@
      - Recommends: python-mpi4py
   * debian/patches/avoid_python-mpi4py_missing_warning.patch: Circumvent
     missing python-mpi4py at build time
+  * Add autopkgtest
 
  -- Andreas Tille <tille at debian.org>  Mon, 11 Aug 2014 16:33:56 +0200
 

Modified: trunk/packages/pynast/trunk/debian/docs
===================================================================
--- trunk/packages/pynast/trunk/debian/docs	2014-08-12 11:20:40 UTC (rev 17699)
+++ trunk/packages/pynast/trunk/debian/docs	2014-08-12 11:33:07 UTC (rev 17700)
@@ -1,3 +1,5 @@
 README.md
 doc/_build/html
 tests
+debian/README.test
+debian/tests/run-unit-test

Added: trunk/packages/pynast/trunk/debian/tests/control
===================================================================
--- trunk/packages/pynast/trunk/debian/tests/control	                        (rev 0)
+++ trunk/packages/pynast/trunk/debian/tests/control	2014-08-12 11:33:07 UTC (rev 17700)
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @, @builddeps@
+Restrictions: allow-stderr

Added: trunk/packages/pynast/trunk/debian/tests/run-unit-test
===================================================================
--- trunk/packages/pynast/trunk/debian/tests/run-unit-test	                        (rev 0)
+++ trunk/packages/pynast/trunk/debian/tests/run-unit-test	2014-08-12 11:33:07 UTC (rev 17700)
@@ -0,0 +1,13 @@
+#!/bin/sh -e
+
+pkg=pynast
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp -a /usr/share/doc/${pkg}/tests $ADTTMP
+find . -name "*.gz" -exec gunzip \{\} \;
+cd tests
+LC_ALL=C.UTF-8 python all_tests.py
+rm -rf *
+




More information about the debian-med-commit mailing list