[med-svn] r16769 - trunk/packages/python-biopython/trunk/debian/tests

Andreas Tille tille at moszumanska.debian.org
Thu Apr 24 09:18:04 UTC 2014


Author: tille
Date: 2014-04-24 09:18:04 +0000 (Thu, 24 Apr 2014)
New Revision: 16769

Modified:
   trunk/packages/python-biopython/trunk/debian/tests/upstream
Log:
Make sure test suite will at least run in autopkgtest; need to check why it triggers more failures than at package build time


Modified: trunk/packages/python-biopython/trunk/debian/tests/upstream
===================================================================
--- trunk/packages/python-biopython/trunk/debian/tests/upstream	2014-04-24 08:53:32 UTC (rev 16768)
+++ trunk/packages/python-biopython/trunk/debian/tests/upstream	2014-04-24 09:18:04 UTC (rev 16769)
@@ -1,5 +1,13 @@
-#! /bin/sh
+#!/bin/sh -e
 
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/python-biopython-test.XXXXXX`
+fi
+cd $ADTTMP
+cp -a /usr/share/doc/python-biopython-doc/Tests/* $ADTTMP
+gunzip -r *.gz
+
+
 ################################################################################
 # 1. avoid some tests which need online access
 # 2. avoid tests needing a ready setup database server (MySQL and PostgreSQL)
@@ -53,12 +61,12 @@
 # test is verifying this dir to run the EMBOSS test
 # test_Emboss also requires to have the environment variable EMBOSS_ROOT set
 
-for python in $(pyversions -i) $(py3versions -i); do
-    DIALIGN2_DIR=/usr/share/dialign EMBOSS_ROOT=/usr/lib/emboss PYTHONPATH={build_dir} python setup.py test
+for pi in $(pyversions -i) $(py3versions -i); do
+    DIALIGN2_DIR=/usr/share/dialign EMBOSS_ROOT=/usr/lib/emboss ${pi} run_tests.py
 done
 
 # restore test directory
 ################################################################################
 
-mv Tests_avoid/* Tests
-rmdir Tests_avoid
+#mv Tests_avoid/* Tests
+#rmdir Tests_avoid




More information about the debian-med-commit mailing list