File: run-nose-tests

package info (click to toggle)
python-pysam 0.10.0+ds-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 14,196 kB
  • ctags: 10,087
  • sloc: ansic: 79,627; python: 8,569; sh: 282; makefile: 215; perl: 41
file content (21 lines) | stat: -rwxr-xr-x 565 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh -e

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
find . -name "*.gz" -exec gunzip -f \{\} \;

nosetests --nocapture -v
cd
# rm -rf $ADTTMP