~samiam/MaraDNS

ref: 3.5.0021 MaraDNS/deadwood-github/sqa/dwood2rc_n_verbose_level/do.test -rwxr-xr-x 428 bytes
ca00f282 — Sam Trenholme MaraDNS release 3.5.0021 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

# Lets make sure Deadwood can write the cache to a file

# Now, make sure Deadwood works

for VALUE in 0 4 ; do

cat > dwood2rc << EOF
chroot_dir="$( pwd )"
ipv4_bind_addresses="127.0.0.1"
upstream_servers = {}
upstream_servers["."]="127.0.0.2"
recursive_acl="127.0.0.1/16"
verbose_level=${VALUE}
filter_rfc1918 = 0
EOF

../../src/Deadwood -f dwood2rc | grep -i verbose_ &
sleep 1
killall Deadwood
rm dwood2rc

done