]> git.ipfire.org Git - thirdparty/pdns.git/blame - regression-tests.nobackend/edns1/command
profile.rst: Remove GOST
[thirdparty/pdns.git] / regression-tests.nobackend / edns1 / command
CommitLineData
69b6f0aa
AT
1#!/usr/bin/env bash
2
3# run PowerDNS using random backend
4
5port=5501
6rm -f pdns*.pid
7
8bindwait ()
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
30bindwait
31
32timeout 5 ./edns1/test-edns.py
33
34kill $(cat pdns*.pid)
35rm pdns*.pid