~ubuntu-branches/ubuntu/trusty/maradns/trusty-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Dariusz Dwornikowski
  • Date: 2014-02-16 19:36:04 UTC
  • mfrom: (1.2.11) (21.1.11 experimental)
  • Revision ID: package-import@ubuntu.com-20140216193604-xtmcopn9pilzszae
Tags: 2.0.09-1
* New maintainer (Closes: #739084)
* New upstream release to unstable
* Several security bugs (Closes: #739755)
   - security bugfix for CVE-2011-5055, CVE-2011-5056, CVE-2012-0024,
   CVE-2012-1570
   - security bugfix agains blind spoofing attack (no CVE number)
   - security bugfix for packet of death attack (no CVE number)
* Bump standards to 3.9.5
* Updated d/postinst to no longer modify conffiles (Closes: #710903)
* Init script fixed (Closes: #709826)
* --reinstall no longer kills the process (Closes: #701657)
* Updated old d/changelog entries, added information when the CVEs were
  fixed: 2.0.06-1, 2.0.04-1, 1.4.11-1, 1.2.12.06-1, 1.2.12.05-1, 1.0.28-1

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
cache_file="cache/dw_cache"
 
33
filter_rfc1918 = 0
 
34
EOF
 
35
 
 
36
mkdir cache
 
37
chown nobody:nobody cache # You're using CentOS 5 to test this, of course.
 
38
../../src/Deadwood -f dwood2rc > /dev/null &
 
39
#../../src/Deadwood -f dwood2rc &
 
40
sleep 1
 
41
askmara Awww1.example.com. 127.0.0.1 > /dev/null
 
42
#askmara Awww1.example.com. 127.0.0.1 
 
43
sleep 1
 
44
killall maradns
 
45
killall Deadwood
 
46
sleep 1
 
47
rm mararc
 
48
rm db.example.com
 
49
rm dwood2rc
 
50
ls cache
 
51
rm -fr cache