]> git.ipfire.org Git - thirdparty/pdns.git/blob - regression-tests.nobackend/distributor/command
updated KSK and ZSK Rollover procedures, small fixes in Algorithm Rollover procedure
[thirdparty/pdns.git] / regression-tests.nobackend / distributor / command
1 #!/usr/bin/env bash
2 set -e
3
4 if [ "${PDNS_DEBUG}" = "YES" ]; then
5 set -x
6 fi
7
8 port=5600
9
10 rm -f pdns*.pid
11
12 $PDNS --daemon=no --local-address=127.0.0.1,::1 \
13 --local-port=$port --socket-dir=./ --no-shuffle --launch=pipe --no-config \
14 --module-dir=../regression-tests/modules --pipe-command=$(pwd)/distributor/slow.pl \
15 --pipe-abi-version=5 \
16 --overload-queue-length=10 --log-dns-queries --loglevel=9 \
17 --pipe-timeout=1500 --zone-cache-refresh-interval=0 &
18
19 sleep 2
20
21 for a in {1..15}
22 do $SDIG 127.0.0.1 $port $a.example.com A >&2 >/dev/null &
23 done
24
25 sleep 10
26
27 if [ $($PDNSCONTROL --config-name= --no-config --socket-dir=./ show overload-drops) -gt 0 ]
28 then
29 echo had non-zero drops
30 fi
31
32 sleep 5
33
34 $SDIG 127.0.0.1 $port example.com A
35
36 kill $(cat pdns*.pid)
37 rm pdns*.pid