Package: varnish Version: 3.0.3-1 Severity: wishlist Tags: patch User: yolanda.ro...@canonical.com Usertags: origin-ubuntu ubuntu-patch
debian/tests: added autopkgtests *** /tmp/tmpEPFPGR/bug_body In Ubuntu, the attached patch was applied to achieve the following: Added autopkgtests to improve QA * d/tests: added dep-8-tests Thanks for considering the patch. -- System Information: Debian Release: wheezy/sid APT prefers saucy-updates APT policy: (500, 'saucy-updates'), (500, 'saucy-security'), (500, 'saucy') Architecture: amd64 (x86_64) Kernel: Linux 3.8.0-14-generic (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
=== modified file 'debian/changelog' === modified file 'debian/control' --- debian/control 2013-05-05 15:53:14 +0000 +++ debian/control 2013-05-27 12:49:51 +0000 @@ -1,7 +1,8 @@ Source: varnish Section: web Priority: optional -Maintainer: Varnish Package Maintainers <pkg-varnish-de...@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-disc...@lists.ubuntu.com> +XSBC-Original-Maintainer: Varnish Package Maintainers <pkg-varnish-de...@lists.alioth.debian.org> Uploaders: Jan Wagner <w...@cyconet.org>, Lars Bahner <bah...@debian.org>, @@ -24,6 +25,7 @@ Vcs-Git: git://git.debian.org/pkg-varnish/pkg-varnish.git Homepage: http://varnish-cache.org/ Standards-Version: 3.9.3 +XS-Testsuite: autopkgtest Package: varnish Architecture: any === added directory 'debian/tests' === added file 'debian/tests/control' --- debian/tests/control 1970-01-01 00:00:00 +0000 +++ debian/tests/control 2013-05-27 12:36:19 +0000 @@ -0,0 +1,3 @@ +Tests: daemon ncsa +Depends: varnish +Restrictions: needs-root === added file 'debian/tests/daemon' --- debian/tests/daemon 1970-01-01 00:00:00 +0000 +++ debian/tests/daemon 2013-05-27 12:36:19 +0000 @@ -0,0 +1,13 @@ +#!/bin/bash +#---------------- +# Testing varnish +#---------------- +set -e +DAEMON=varnishd + +if pidof -x $DAEMON > /dev/null; then + echo "OK" +else + echo "ERROR: ${DAEMON} IS NOT RUNNING" + exit 1 +fi === added file 'debian/tests/ncsa' --- debian/tests/ncsa 1970-01-01 00:00:00 +0000 +++ debian/tests/ncsa 2013-05-27 12:36:19 +0000 @@ -0,0 +1,18 @@ +#!/bin/bash +#-------------------- +# Testing varnishncsa +#-------------------- +set -e + +# modify varnishncsa file +CONFIG_FILE=/etc/default/varnishncsa +DAEMON=varnishncsa +sed -i -e "s/# VARNISHNCSA_ENABLED=1/VARNISHNCSA_ENABLED=1/g" $CONFIG_FILE +/etc/init.d/${DAEMON} restart + +if pidof -x $DAEMON > /dev/null; then + echo "OK" +else + echo "ERROR: ${DAEMON} IS NOT RUNNING" + exit 1 +fi