diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2014-08-29 23:09:45 +0200 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2014-08-29 23:11:37 +0200 |
commit | 7de7f803b7ac58573d82b9dd8c3c9af362296431 (patch) | |
tree | c38343dbb0c235cb7c39ba3b7f2ca97db1054271 | |
parent | 0e6f5e1cf53ae20ef6f6166c537c7cfff8796133 (diff) | |
download | sitesummary-7de7f803b7ac58573d82b9dd8c3c9af362296431.tar.gz sitesummary-7de7f803b7ac58573d82b9dd8c3c9af362296431.tar.bz2 sitesummary-7de7f803b7ac58573d82b9dd8c3c9af362296431.tar.xz |
Add simple autopkgtest check script to verify that the server is working and the client can submit to it.
-rw-r--r-- | debian/control | 1 | ||||
-rw-r--r-- | debian/tests/control | 3 | ||||
-rw-r--r-- | debian/tests/test-server-client | 25 |
3 files changed, 29 insertions, 0 deletions
diff --git a/debian/control b/debian/control index 85c50c6..0e4985d 100644 --- a/debian/control +++ b/debian/control @@ -7,6 +7,7 @@ Uploaders: Petter Reinholdtsen <pere@debian.org> , Alexander Alemayhu <alexander@bitraf.no> Build-Depends: debhelper (>= 9), cdbs Standards-Version: 3.9.5 +XS-Testsuite: autopkgtest Homepage: http://wiki.debian.org/DebianEdu/HowTo/SiteSummary Vcs-Git: git://anonscm.debian.org/debian-edu/upstream/sitesummary.git Vcs-Browser: http://anonscm.debian.org/cgit/debian-edu/upstream/sitesummary.git diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..7f7309b --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,3 @@ +Tests: test-server-client +Depends: @ +Restrictions: needs-root isolation-container needs-recommends diff --git a/debian/tests/test-server-client b/debian/tests/test-server-client new file mode 100644 index 0000000..4f44cf5 --- /dev/null +++ b/debian/tests/test-server-client @@ -0,0 +1,25 @@ +#!/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 + +chroot_test() { +} + +# 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. + +sitesummary-client + +find /var/lib/sitesummary |