| 1 |
#!/bin/bash |
| 2 |
set -e |
| 3 |
|
| 4 |
pkg=covtobed |
| 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/examples/* "${AUTOPKGTEST_TMP}" |
| 16 |
|
| 17 |
cd "${AUTOPKGTEST_TMP}" |
| 18 |
|
| 19 |
find . -name "*.gz" -exec gunzip {\} \; |
| 20 |
|
| 21 |
bash test.sh |