Skip to content
Commits on Source (2)
Notes on how this package can be tested.
────────────────────────────────────────
This package can be tested by running the provided test:
sh run-unit-test
in order to confirm its integrity
Tests: run-unit-test
Depends: libc6,
libsprng2
Recommends: tree-puzzle-doc
Suggests: phylip,
treetool
Restritions: allow-stderr
\ No newline at end of file
#!/bin/bash
set -e
pkg=tree-puzzle
if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
# Double quote below to expand the temporary directory variable now versus
# later is on purpose.
# shellcheck disable=SC2064
trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
fi
cp -a /usr/share/doc/${pkg}/examples/* "${AUTOPKGTEST_TMP}"
cd "${AUTOPKGTEST_TMP}"
#do_stuff_to_test_package#
# tree-puzzle intallation check
if hash puzzle 2>/dev/null; then
echo Success
else
echo Fail
fi