Merge lp:~yolanda.robla/ubuntu/saucy/quagga/dep-8-tests into lp:ubuntu/saucy/quagga

Proposed by Yolanda Robla
Status: Merged
Merge reported by: Martin Pitt
Merged at revision: not available
Proposed branch: lp:~yolanda.robla/ubuntu/saucy/quagga/dep-8-tests
Merge into: lp:ubuntu/saucy/quagga
Diff against target: 69 lines (+40/-0)
4 files modified
debian/changelog (+6/-0)
debian/control (+1/-0)
debian/tests/control (+3/-0)
debian/tests/daemons (+30/-0)
To merge this branch: bzr merge lp:~yolanda.robla/ubuntu/saucy/quagga/dep-8-tests
Reviewer Review Type Date Requested Status
Martin Pitt Approve
Review via email: mp+164395@code.launchpad.net

Description of the change

Added dep-8-tests

To post a comment you must log in.
Revision history for this message
Martin Pitt (pitti) wrote :

Verified on current saucy with "run-adt-test -sS lp:~yolanda.robla/ubuntu/saucy/quagga/dep-8-tests quagga".

Applied patch manually to current saucy package, as UDD branch is out of date. Closing MP manually.

Please forward this to Debian, to avoid this new Ubuntu delta in the future.

Thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2012-03-16 22:14:05 +0000
3+++ debian/changelog 2013-05-17 13:23:23 +0000
4@@ -1,3 +1,9 @@
5+quagga (0.99.20.1-1ubuntu1) saucy; urgency=low
6+
7+ * d/tests: added dep-8-tests
8+
9+ -- Yolanda <yolanda.robla@canonical.com> Fri, 17 May 2013 13:02:20 +0200
10+
11 quagga (0.99.20.1-1) unstable; urgency=high
12
13 * SECURITY:
14
15=== modified file 'debian/control'
16--- debian/control 2012-03-16 22:14:05 +0000
17+++ debian/control 2013-05-17 13:23:23 +0000
18@@ -6,6 +6,7 @@
19 Build-Depends: debhelper (>= 7.0.50~), libncurses5-dev, libreadline-dev, texlive-latex-base, texlive-generic-recommended, libpam0g-dev | libpam-dev, libcap-dev, texinfo (>= 4.7), imagemagick, ghostscript, groff, po-debconf, autotools-dev, hardening-wrapper, libpcre3-dev, gawk, chrpath
20 Standards-Version: 3.9.3
21 Homepage: http://www.quagga.net/
22+XS-Testsuite: autopkgtest
23
24 Package: quagga
25 Architecture: any
26
27=== added directory 'debian/tests'
28=== added file 'debian/tests/control'
29--- debian/tests/control 1970-01-01 00:00:00 +0000
30+++ debian/tests/control 2013-05-17 13:23:23 +0000
31@@ -0,0 +1,3 @@
32+Tests: daemons
33+Depends: quagga
34+Restrictions: needs-root
35
36=== added file 'debian/tests/daemons'
37--- debian/tests/daemons 1970-01-01 00:00:00 +0000
38+++ debian/tests/daemons 2013-05-17 13:23:23 +0000
39@@ -0,0 +1,30 @@
40+#!/bin/bash
41+#---------------
42+# Testing quagga
43+#---------------
44+set -e
45+
46+# modify config file to enable all daemons and copy config files
47+CONFIG_FILE=/etc/quagga/daemons
48+DAEMONS=("zebra" "bgpd" "ospfd" "ospf6d" "ripd" "ripngd" "isisd" "babeld")
49+
50+for daemon in "${DAEMONS[@]}"
51+do
52+ sed -i -e "s/${daemon}=no/${daemon}=yes/g" $CONFIG_FILE
53+ cp /usr/share/doc/quagga/examples/${daemon}.conf.sample /etc/quagga/${daemon}.conf
54+done
55+
56+# reload quagga
57+/etc/init.d/quagga restart > /dev/null 2>&1
58+
59+# check daemons
60+for daemon in "${DAEMONS[@]}"
61+do
62+ echo -n "check $daemon - "
63+ if pidof -x $daemon > /dev/null; then
64+ echo "${daemon} OK"
65+ else
66+ echo "ERROR: ${daemon} IS NOT RUNNING"
67+ exit 1
68+ fi
69+done

Subscribers

People subscribed via source and target branches

to all changes: