pdns_run.sh 704 Bytes
Newer Older
1
#!/bin/bash
2
set -o errexit -o nounset
3 4

# Path to scenario files
5
TESTS=${TESTS:-"sets/resolver"}
6 7

# Path to daemon
8
DAEMON=${DAEMON:-"pdns_recursor"}
9

10
# Template file name
11
TEMPLATE=${TEMPLATE:-"template/pdns_recursor.j2:template/hints_zone.j2:template/pdns_dnssec.j2"}
12 13

# Config file name
14
CONFIG=${CONFIG:-"recursor.conf:hints.pdns:dnssec.lua"}
15 16 17

# Additional parameter for pdns_recursor
# it means configuration file can be found in working directory
18
ADDITIONAL=${ADDITIONAL:-"--config-dir=./"}
19

20 21 22 23
# SIGTERM leads to return code -15 instead of clean 0 so we have to ignore it
IGNORE_EXIT_CODE=1

export TESTS DAEMON TEMPLATE CONFIG ADDITIONAL IGNORE_EXIT_CODE
24

25
MAKEDIR="$(dirname "$0")"
26
make -C "${MAKEDIR}"