]>
Commit | Line | Data |
---|---|---|
48b10621 PL |
1 | #!/usr/bin/env bash |
2 | set -e | |
9091cf89 PL |
3 | if [ "${PDNS_DEBUG}" = "YES" ]; then |
4 | set -x | |
5 | fi | |
48b10621 PL |
6 | |
7 | port=5501 | |
8 | rm -f pdns*.pid | |
9 | ||
411869d9 | 10 | PYTHONUNBUFFERED=1 $PDNS --daemon=no --local-port=$port --socket-dir=./ \ |
48b10621 PL |
11 | --no-shuffle --launch=bind,pipe --bind-config=negcache-tests-dotted-cname/named.conf \ |
12 | --pipe-command=negcache-tests-dotted-cname/pipe.py \ | |
40fc506f | 13 | --cache-ttl=60 --no-config --module-dir=../regression-tests/modules & |
48b10621 PL |
14 | |
15 | sleep 3 | |
16 | ||
17 | $SDIG 127.0.0.1 5501 cname.example2.com A | LC_ALL=C sort | |
18 | ||
19 | # check if we didn't neg-cache .com | |
20 | $SDIG 127.0.0.1 5501 www.example.com A | LC_ALL=C sort | |
21 | ||
22 | kill $(cat pdns*.pid) | |
23 | rm pdns*.pid |