]>
Commit | Line | Data |
---|---|---|
69b6f0aa AT |
1 | #!/usr/bin/env bash |
2 | ||
3 | # run PowerDNS using random backend | |
4 | ||
5 | port=5501 | |
6 | rm -f pdns*.pid | |
7 | ||
8 | bindwait () | |
9 | { | |
10 | configname=$1 | |
11 | domcount=1 | |
12 | loopcount=0 | |
13 | while [ $loopcount -lt 20 ]; do | |
14 | sleep 1 | |
d9c6538e | 15 | done=$( ($PDNSCONTROL --config-name=$configname --socket-dir=. --no-config bind-domain-status || true) | grep -c 'parsed into memory' || true ) |
69b6f0aa AT |
16 | if [ $done = $domcount ] |
17 | then | |
18 | return | |
19 | fi | |
20 | let loopcount=loopcount+1 | |
21 | done | |
22 | if [ $done != $domcount ]; then | |
23 | echo "Domain parsing failed" >> failed_tests | |
24 | fi | |
25 | } | |
26 | ||
d9c6538e | 27 | $RUNWRAPPER $PDNS --daemon=no --local-port=$port --socket-dir=./ \ |
69b6f0aa | 28 | --no-shuffle --launch=bind --bind-config=edns-packet-cache/named.conf \ |
40fc506f | 29 | --cache-ttl=60 --no-config --module-dir=../regression-tests/modules & |
69b6f0aa AT |
30 | bindwait |
31 | ||
32 | timeout 5 ./edns1/test-edns.py | |
33 | ||
34 | kill $(cat pdns*.pid) | |
35 | rm pdns*.pid |