Debian Codegraph @

debian/tests/run-unit-tests

raw
1 #!/bin/bash
2 set -e
3
4 pkg=dnaclust
5
6 if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
7 AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
8 # Double quote below to expand the temporary directory variable now versus
9 # later is on purpose.
10 # shellcheck disable=SC2064
11 trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
12 fi
13
14 cp /usr/share/doc/${pkg}/examples/* -a "${AUTOPKGTEST_TMP}"
15
16 cd "${AUTOPKGTEST_TMP}"
17 gunzip -r *
18
19 # Test a fasta
20 ${pkg} ebola.fasta -l -s 1.4 -k 3 > clusters