Package: memcached Version: 1.4.13-0.1 Severity: wishlist Tags: patch User: yolanda.ro...@canonical.com Usertags: origin-ubuntu ubuntu-patch
debian/tests: added autopkgtests *** /tmp/tmp3DPP7t/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 2012-05-28 15:21:53 +0000 +++ debian/control 2013-05-27 14:02:54 +0000 @@ -7,6 +7,7 @@ dpkg-dev (>= 1.15.7) Homepage: http://www.danga.com/memcached/ Standards-Version: 3.8.4 +XS-Testsuite: autopkgtest Package: memcached 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-23 13:46:11 +0000 @@ -0,0 +1,3 @@ +Tests: daemon +Depends: memcached +Restrictions: needs-root === added file 'debian/tests/daemon' --- debian/tests/daemon 1970-01-01 00:00:00 +0000 +++ debian/tests/daemon 2013-05-23 13:46:11 +0000 @@ -0,0 +1,13 @@ +#!/bin/bash +#------------------ +# Testing memcached +#------------------ +set -e +DAEMON=memcached + +if pidof -x $DAEMON > /dev/null; then + echo "OK" +else + echo "ERROR: ${DAEMON} IS NOT RUNNING" + exit 1 +fi