[med-svn] [python-pysam] 01/01: For the moment do some dirty tricks in test run script

Andreas Tille tille at debian.org
Wed Jul 15 12:15:03 UTC 2015


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch separate-tests-package
in repository python-pysam.

commit 961595c9c757f71d9b20e9f8f7afdb4eb5628b77
Author: Andreas Tille <tille at debian.org>
Date:   Wed Jul 15 13:43:26 2015 +0200

    For the moment do some dirty tricks in test run script
---
 debian/tests/run-nose-tests | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/debian/tests/run-nose-tests b/debian/tests/run-nose-tests
index d517f26..75c3ba6 100755
--- a/debian/tests/run-nose-tests
+++ b/debian/tests/run-nose-tests
@@ -3,8 +3,19 @@
 if [ "$ADTTMP" = "" ] ; then
   ADTTMP=`mktemp -d /tmp/python-pysam-test.XXXXXX`
 fi
+cp -ra /usr/share/doc/python-pysam/data/* $ADTTMP
+
+# FIXME!!
+# That's a pretty strange hack but without it the dynamic libraries are not found
+# Need to be tracked down before uploading
+cd /usr/lib/python2.7/dist-packages/pysam
+gnutype=`dpkg-architecture -qDEB_TARGET_GNU_TYPE`
+for so in *.${gnutype}.so ; do sudo ln -sf $so `basename $so .${gnutype}.so`.so ; done
+
 cd $ADTTMP
-cp -ra /usr/share/doc/python-pysam/tests/* $ADTTMP
-nosetests --nocapture
+find . -name "*.gz" -exec gunzip -f \{\} \;
+
+nosetests --nocapture -v
 cd
-rm -rf $ADTTMP
+# rm -rf $ADTTMP
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-pysam.git



More information about the debian-med-commit mailing list