~ubuntu-branches/ubuntu/raring/maradns/raring

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Kai Hendry
  • Date: 2010-01-24 12:17:40 UTC
  • mfrom: (1.1.13 upstream) (10.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100124121740-a4e1fjobwaouz443
Tags: 1.4.02-1
New upstream release

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
EOF
 
19
 
 
20
../../src/Deadwood -f dwood2rc > /dev/null &
 
21
sleep 1
 
22
echo
 
23
echo $VALUE
 
24
netstat -nap | grep Deadwood | perl -pe 's/[0-9]+\/Deadwood//;s/\s*//g'
 
25
echo
 
26
sleep 1
 
27
killall Deadwood > /dev/null 2>&1
 
28
sleep 1
 
29
 
 
30
done
 
31
 
 
32
rm dwood2rc