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

« back to all changes in this revision

Viewing changes to deadwood-2.4.10/sqa/dwood2rc_n_maradns_uid/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
# Lets make sure Deadwood can write the cache to a file
 
4
 
 
5
killall maradns > /dev/null 2>&1 # Don't run this test on Solaris
 
6
sleep 2
 
7
 
 
8
cat > mararc << EOF
 
9
chroot_dir="$( pwd )"
 
10
ipv4_bind_addresses="127.0.0.2"
 
11
csv2 = {}
 
12
csv2["example.com."] = "db.example.com"
 
13
EOF
 
14
 
 
15
cat > db.example.com << EOF
 
16
*.% A 10.1.2.3
 
17
EOF
 
18
 
 
19
# OK, test the server
 
20
../../../server/maradns -f mararc > /dev/null 2>&1 &
 
21
#../../../server/maradns -f mararc &
 
22
sleep 1
 
23
 
 
24
# Now, make sure Deadwood works
 
25
 
 
26
cat > dwood2rc << EOF
 
27
chroot_dir="$( pwd )"
 
28
ipv4_bind_addresses="127.0.0.1"
 
29
upstream_servers = {}
 
30
upstream_servers["."]="127.0.0.2"
 
31
recursive_acl="127.0.0.1/16"
 
32
maradns_uid=3011
 
33
EOF
 
34
 
 
35
../../src/Deadwood -f dwood2rc > /dev/null &
 
36
sleep 1
 
37
ps -eo '%c %U' | grep Deadwood
 
38
sleep 1
 
39
killall maradns
 
40
killall Deadwood
 
41
rm mararc
 
42
rm db.example.com
 
43
rm dwood2rc