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

« back to all changes in this revision

Viewing changes to deadwood-2.4.10/sqa/dwood2rc_n_upstream_port/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
# This is a basic Deadwood test to make sure it works
 
4
 
 
5
killall maradns > /dev/null 2>&1 # Don't run this test on Solaris
 
6
sleep 2
 
7
 
 
8
cat > db.example.com << EOF
 
9
*.% A 10.1.2.3
 
10
EOF
 
11
 
 
12
# Now, make sure Deadwood works
 
13
 
 
14
for PORT in 53 5300 ; do
 
15
 
 
16
cat > mararc << EOF
 
17
chroot_dir="$( pwd )"
 
18
ipv4_bind_addresses="127.0.0.2"
 
19
csv2 = {}
 
20
csv2["example.com."] = "db.example.com"
 
21
dns_port=${PORT}
 
22
EOF
 
23
 
 
24
../../../server/maradns -f mararc > /dev/null 2>&1 &
 
25
sleep
 
26
 
 
27
cat > dwood2rc << EOF
 
28
chroot_dir="$( pwd )"
 
29
ipv4_bind_addresses="127.0.0.1"
 
30
upstream_servers = {}
 
31
upstream_servers["."]="127.0.0.2"
 
32
recursive_acl="127.0.0.1/16"
 
33
upstream_port=${PORT}
 
34
EOF
 
35
 
 
36
../../src/Deadwood -f dwood2rc > /dev/null &
 
37
sleep 1
 
38
askmara Awww.example.com.
 
39
 
 
40
sleep 1
 
41
killall Deadwood
 
42
killall maradns
 
43
sleep 1
 
44
 
 
45
done
 
46
 
 
47
rm mararc
 
48
rm db.example.com
 
49
rm dwood2rc