aboutsummaryrefslogtreecommitdiffstats
path: root/debian/tests/test-server-client
blob: d796d43a7946424d772a6241d5bd2344fdfbe67c (plain)
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
29
30
31
#!/bin/sh
#
# More on tests available from
# http://anonscm.debian.org/cgit/autopkgtest/autopkgtest.git/tree/doc/README.package-tests.rst
set -e

at_exit() {
    echo "info: terminating script"
}

trap at_exit INT TERM EXIT

# Use predictable language setting.
LC_ALL=C
export LC_ALL

# Installing the binaries should set up apache on localhost and the cgi script
# for the sitesummary collector.

systemctl restart apache2

sitesummary-client

find /var/lib/sitesummary

if find /var/lib/sitesummary | grep ether- ; then
    echo success: found entry
else
    echo error: did not find entry
    exit 1
fi