Debian Codegraph @

debian/tests/run-unit-test

raw
1 #!/bin/sh
2 set -e
3
4 pkg="clearcut"
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 -a /usr/share/doc/${pkg}/examples/* "${AUTOPKGTEST_TMP}"
15
16 cd "${AUTOPKGTEST_TMP}"
17
18 # Compute tree by supplying alignment of DNA sequences from a file
19 clearcut --alignment --DNA --in=alignment1.dist --out=treefile.tre
20 # Compute tree from matrix
21 clearcut --distance --in=symmetric.dist --out=symmtree.tre
22 # Run clearcut with properly formatted stdin input
23 cat lower_diag.dist | clearcut
24
25 echo "test pass"