| 1 | #!/bin/bash |
| 2 | set -e |
| 3 | |
| 4 | pkg=ataqv |
| 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 | cp -a /usr/share/doc/${pkg}/examples/* "${AUTOPKGTEST_TMP}" |
| 16 | |
| 17 | cd "${AUTOPKGTEST_TMP}"/testdata |
| 18 | |
| 19 | /usr/lib/ataqv/run_ataqv_tests -i |