From 961595c9c757f71d9b20e9f8f7afdb4eb5628b77 Mon Sep 17 00:00:00 2001 From: Andreas Tille Date: Wed, 15 Jul 2015 13:43:26 +0200 Subject: [PATCH] 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 + -- 2.30.2