For the moment do some dirty tricks in test run script
authorAndreas Tille <tille@debian.org>
Wed, 15 Jul 2015 11:43:26 +0000 (13:43 +0200)
committerAndreas Tille <tille@debian.org>
Wed, 15 Jul 2015 11:43:26 +0000 (13:43 +0200)
debian/tests/run-nose-tests

index d517f26f6db963459f4be3880b6a2ac05f5873d0..75c3ba60a26f66701acdf2297bd4b07487a45e9f 100755 (executable)
@@ -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
+