]> git.ipfire.org Git - thirdparty/pdns.git/blob - builder-support/debian/authoritative/debian-buster/tests-source/smoke-lmdb
updated KSK and ZSK Rollover procedures, small fixes in Algorithm Rollover procedure
[thirdparty/pdns.git] / builder-support / debian / authoritative / debian-buster / tests-source / smoke-lmdb
1 #!/bin/bash
2 exec 2>&1
3 set -ex
4
5 CONFDIR="$PWD"
6
7 TMPFILE=$(mktemp)
8 cleanup() {
9 rm -f "$TMPFILE"
10 rm -f pdns.lmdb pdns.lmdb-lock
11 kill $(cat pdns.pid) || true
12 rm -f pdns.conf pdns.pid pdns.controlsocket
13 }
14 trap cleanup EXIT
15
16 cat <<EOF >pdns.conf
17 module-dir=../../modules/lmdbbackend/.libs/
18 launch=lmdb
19 lmdb-filename=./pdns.lmdb
20 EOF
21
22 ../../pdns/pdnsutil --config-dir=. create-zone smoke.lmdb.example.org
23
24 ./launch-pdns
25
26 dig -p 5301 @127.0.0.1 smoke.lmdb.example.org SOA 2>&1 | tee "$TMPFILE"
27
28 if grep -c 'a.misconfigured' "$TMPFILE"; then
29 echo success
30 else
31 echo smoke could not be resolved
32 exit 1
33 fi
34