From: Andreas Tille Date: Wed, 15 Jul 2015 11:43:26 +0000 (+0200) Subject: For the moment do some dirty tricks in test run script X-Git-Tag: archive/raspbian/0.22.0+ds-1+rpi1~1^2^2~289^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=961595c9c757f71d9b20e9f8f7afdb4eb5628b77;p=python-pysam.git For the moment do some dirty tricks in test run script --- 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 +