~ubuntu-branches/ubuntu/utopic/maradns/utopic-proposed

« back to all changes in this revision

Viewing changes to deadwood-3.0.05/sqa/dwood2rc_s_bind_address/do.test

  • Committer: Package Import Robot
  • Author(s): Nicholas Bamber
  • Date: 2012-03-14 08:45:48 UTC
  • mfrom: (1.2.9)
  • Revision ID: package-import@ubuntu.com-20120314084548-6slw035p8443a19q
Tags: 1.4.11-1
* New upstream release
* Removed changelog patch
* Added to docs rules to fix missing faq.txt
* Raised standards version to 3.9.3
  - Updated debian/copyright format
  - Removed lintian override
  - Changed working directories from /var/run to /run

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
# Make sure Deadwood works
4
 
# NOTE: No startup of MaraDNS because we're just looking at the address
5
 
#       deadwood binds to
6
 
 
7
 
for VALUE in 127.0.0.1 127.0.0.2 ; do
8
 
 
9
 
cat > dwood2rc << EOF
10
 
chroot_dir="$( pwd )"
11
 
bind_address="${VALUE}"
12
 
upstream_servers = {}
13
 
upstream_servers["."]="127.0.0.3"
14
 
recursive_acl="127.0.0.1/16"
15
 
maxprocs=8
16
 
timeout_seconds=20
17
 
tcp_listen =1
18
 
filter_rfc1918 = 0
19
 
EOF
20
 
 
21
 
../../src/Deadwood -f dwood2rc > /dev/null &
22
 
sleep 1
23
 
echo
24
 
echo $VALUE
25
 
netstat -nap | grep Deadwood | perl -pe 's/[0-9]+\/Deadwood//;s/\s*//g'
26
 
echo
27
 
sleep 1
28
 
killall Deadwood > /dev/null 2>&1
29
 
sleep 1
30
 
 
31
 
done
32
 
 
33
 
rm dwood2rc