File: run-nose-tests

package info (click to toggle)
python-pysam 0.9.1.4%2Bds-1~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 14,312 kB
  • sloc: ansic: 79,627; python: 8,368; sh: 291; makefile: 206; perl: 41
file content (21 lines) | stat: -rwxr-xr-x 565 bytes parent folder | download | duplicates (5)
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