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 31 32 33 34
|
#!/bin/sh -e
if [ "$ADTTMP" = "" ] ; then
ADTTMP=`mktemp -d /tmp/python-biopython-test.XXXXXX`
trap "rm -rf $ADTTMP" 0 INT QUIT ABRT PIPE TERM
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
cp -a /usr/share/doc/python-biopython-doc/Doc/Tutorial Doc
cp -a /usr/share/doc/python-biopython-doc/Doc/examples Doc
find . -name "*.gz" -exec gunzip \{\} \;
cd Tests
# we really need this gzipped duplicate of the example.fastq and E3MFGYR02_random_10_reads.sff files to pass the BGZF compression test
gzip --keep Quality/example.fastq
gzip --keep Roche/E3MFGYR02_random_10_reads.sff
# 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
|