Package: radvd
Version: 1:1.9.1-1
Severity: wishlist
Tags: patch
User: yolanda.ro...@canonical.com
Usertags: origin-ubuntu  ubuntu-patch

Added autopkgtests


*** /tmp/tmpcy9XTe/bug_body

In Ubuntu, the attached patch was applied to achieve the following:

Improve QA of packages


  * 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-07-01 10:51:22 +0000
+++ debian/control	2013-05-28 15:49:58 +0000
@@ -1,11 +1,13 @@
 Source: radvd
 Section: net
 Priority: optional
-Maintainer: Ghe Rivero <g...@debian.org>
+Maintainer: Ubuntu Developers <ubuntu-devel-disc...@lists.ubuntu.com>
+XSBC-Original-Maintainer: Ghe Rivero <g...@debian.org>
 Standards-Version: 3.9.3
 Build-Depends: autotools-dev, debhelper (>= 7.0.50~), flex, bison,
  pkg-config,
  libdaemon-dev
+XS-Testsuite: autopkgtest
 
 Package: radvd
 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-28 15:45:59 +0000
@@ -0,0 +1,3 @@
+Tests: daemons
+Depends: @
+Restrictions: needs-root

=== added file 'debian/tests/daemons'
--- debian/tests/daemons	1970-01-01 00:00:00 +0000
+++ debian/tests/daemons	2013-05-28 15:45:59 +0000
@@ -0,0 +1,19 @@
+#!/bin/bash
+#--------------
+# Testing radvd
+#--------------
+set -e
+DAEMON=radvd
+
+# copy default config file
+cp /usr/share/doc/radvd/examples/simple-radvd.conf /etc/radvd.conf
+
+# add ipv6 forwarding, restart daemon
+sysctl -w net.ipv6.conf.all.forwarding=1
+/etc/init.d/${DAEMON} restart > /dev/null 2>&1
+if pidof -x $DAEMON > /dev/null; then
+    echo "OK"
+else
+    echo "ERROR: ${DAEMON} IS NOT RUNNING"
+    exit 1
+fi

Reply via email to