File: run-unit-test

package info (click to toggle)
python-biopython 1.64%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 44,416 kB
  • ctags: 12,472
  • sloc: python: 153,759; xml: 67,286; ansic: 9,003; sql: 1,488; makefile: 144; sh: 59
file content (30 lines) | stat: -rw-r--r-- 1,049 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh -e

if [ "$ADTTMP" = "" ] ; then
  ADTTMP=`mktemp -d /tmp/python-biopython-test.XXXXXX`
fi
cd $ADTTMP
cp -a /usr/share/doc/python-biopython-doc/Tests $ADTTMP
mkdir -p Doc
cp -a /usr/share/doc/python-biopython-doc/Doc/Tutorial.tex* Doc
find . -name "*.gz" -exec gunzip \{\} \;
cd Tests
# we really need this gzipped duplicate of the example.fastq file to pass the BGZF compression test
gzip --keep Quality/example.fastq

# bwa is only available on amd64
BUILDARCH=
if [ "$(dpkg-architecture -qDEB_BUILD_ARCH)" != "amd64" ]; then
    rm -f test_BWA_tool.py
fi

# execute tests
################################################################################
# in the Debian package dialign it is not needed to set DIALIGN2_DIR but the
# test is verifying this dir to run the EMBOSS test
# test_Emboss also requires to have the environment variable EMBOSS_ROOT set

for pi in $(pyversions -i) $(py3versions -i); do
    LC_ALL=C.UTF-8 DIALIGN2_DIR=/usr/share/dialign EMBOSS_ROOT=/usr/lib/emboss HOME=$ADTTMP ${pi} run_tests.py --offline
done