File: run-unit-test

package info (click to toggle)
tmexpand 0.1.2.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 500 kB
  • sloc: sh: 189; makefile: 161
file content (28 lines) | stat: -rw-r--r-- 445 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
set -e

pkg=tmexpand

if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
  AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
  trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
fi

cp -a /usr/share/doc/${pkg}/examples/ "${AUTOPKGTEST_TMP}"

cd "${AUTOPKGTEST_TMP}"/examples

# Make help
make distclean
make

[ -s help.hlp ] || exit 1

cd web
make distclean
make

[ -s index.html ] || exit 1
[ -s other.html ] || exit 1

echo "PASS"