Debian Codegraph @

debian/tests/run-unit-test

raw symbols SCIP
1 #!/bin/bash
2 set -e
3
4 pkg=bbmap
5
6 export LC_ALL=C.UTF-8
7 if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
8 AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
9 # Double quote below to expand the temporary directory variable now versus
10 # later is on purpose.
11 # shellcheck disable=SC2064
12 trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
13 fi
14
15 if ! dpkg-query -s python-biopython-doc | grep -q '^Status: install' >/dev/null
16 then
17 cat <<-END
18 Notice: Please install the python-biopython-doc package to get the
19 dataset in use by the present test suite.
20 END
21 fi
22
23 cp -a /usr/share/doc/python-biopython-doc/Tests/Quality/* "${AUTOPKGTEST_TMP}"
24
25 cd "${AUTOPKGTEST_TMP}"
26
27 set -v
28
29 # bbmap
30 bbmap.sh --version
31 bbmap.sh --help
32 bbmap.sh ref=example.fasta
33 test -d ref
34 bbmap.sh in=misc_dna_as_sanger.fastq out=out.sam
35 test -r out.sam
36 bbmap.sh ref=example.fasta in=example.fastq out=out2.sam nodisk
37 test -r out2.sam
38
39 # bbduk
40 bbduk.sh --version
41 bbduk.sh --help
42 bbduk.sh in1=misc_dna_as_illumina.fastq in2=misc_rna_as_illumina.fastq \
43 qtrim=rl trimq=15 minlen=75 out=out.fastq.gz
44 test -r out.fastq.gz
45
46 # bbnorm
47 bbnorm.sh --version
48 bbnorm.sh --help
49 bbnorm.sh in=sanger_full_range_original_sanger.fastq qin=33 \
50 out=out3.fastq outt=outt.fastq hist=hist.plt
51 test -r out3.fastq
52 test -r outt.fastq
53 test -r hist.plt
54 bbnorm.sh in=illumina_full_range_original_illumina.fastq qin=64 \
55 out=out4.fastq outt=outt2.fastq hist=hist2.plt
56 test -r out4.fastq
57 test -r outt2.fastq
58 test -r hist2.plt