From 7de7f803b7ac58573d82b9dd8c3c9af362296431 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Fri, 29 Aug 2014 23:09:45 +0200 Subject: Add simple autopkgtest check script to verify that the server is working and the client can submit to it. --- debian/control | 1 + debian/tests/control | 3 +++ debian/tests/test-server-client | 25 +++++++++++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 debian/tests/control create mode 100644 debian/tests/test-server-client 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 , Alexander Alemayhu 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 -- cgit v1.2.3