~ubuntu-branches/ubuntu/wily/maradns/wily-proposed

« back to all changes in this revision

Viewing changes to deadwood-3.2.05/sqa/sqa_cname_chain/do.test

  • Committer: Package Import Robot
  • Author(s): Dariusz Dwornikowski, Tomasz Buchert, Dariusz Dwornikowski
  • Date: 2015-03-27 18:34:08 UTC
  • mfrom: (1.2.12)
  • Revision ID: package-import@ubuntu.com-20150327183408-wnfachdkdjt96yu6
Tags: 2.0.11-1
[ Tomasz Buchert ]
* Imported Upstream version 2.0.11

[ Dariusz Dwornikowski ]
* d/patches: 
  - refreshed all patches for new deadwood version
  - removed generating of random prime on build (Closes: #785536) 
* d/rules: date taken from changelog (Closes: #785535)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
killall maradns > /dev/null 2>&1 # Don't run this test on Solaris
4
 
sleep 2
5
 
 
6
 
for IP in 127.0.0.2 ; do
7
 
cat > mararc-${IP} << EOF
8
 
chroot_dir="$( pwd )"
9
 
ipv4_bind_addresses="${IP}"
10
 
csv2 = {}
11
 
csv2["example.com."] = "db.example.com"
12
 
EOF
13
 
 
14
 
cat > db.example.com << EOF
15
 
www1.% CNAME foo.%
16
 
www2.% CNAME foo.%
17
 
foo.% +60 10.1.2.3
18
 
EOF
19
 
 
20
 
# OK, test the server
21
 
../../../server/maradns -f mararc-${IP} > /dev/null 2>&1 &
22
 
#../../../server/maradns -f mararc-${IP} &
23
 
sleep 1
24
 
 
25
 
done
26
 
 
27
 
# Now, make sure Deadwood works
28
 
 
29
 
cat > dwood2rc << EOF
30
 
chroot_dir="$( pwd )"
31
 
ipv4_bind_addresses="127.0.0.1"
32
 
upstream_servers = {}
33
 
upstream_servers["."]="127.0.0.2"
34
 
recursive_acl="127.0.0.1/16"
35
 
resurrections = 0
36
 
filter_rfc1918 = 0
37
 
EOF
38
 
 
39
 
../../src/Deadwood -f dwood2rc > /dev/null &
40
 
sleep 1
41
 
askmara Awww1.example.com. 127.0.0.1
42
 
echo
43
 
askmara Awww1.example.com. 127.0.0.1
44
 
echo
45
 
askmara Awww2.example.com. 127.0.0.1
46
 
 
47
 
killall maradns
48
 
# Make sure that CNAME stays in the cache for only 60 seconds
49
 
sleep 70
50
 
echo
51
 
askmara Awww1.example.com. 127.0.0.1
52
 
 
53
 
killall Deadwood
54
 
rm mararc-*
55
 
rm db.example.com
56
 
rm dwood2rc