Commit a617ecf3 authored by Petr Špaček's avatar Petr Špaček

Fix *_run.sh scripts to work from any working directory

parent 8c877394
......@@ -75,5 +75,5 @@ ADDITIONAL="-C getdns.conf"
export TESTS DAEMON TEMPLATE CONFIG ADDITIONAL
make
MAKEDIR="$(dirname "$(readlink -f "$0")")"
make -C "${MAKEDIR}"
......@@ -19,4 +19,5 @@ ADDITIONAL="-c ./knotd.conf"
export TESTS DAEMON TEMPLATE CONFIG ADDITIONAL
echo 'INFO: Tests require Knot compiled with ./configure --enable-recvmmsg=no'
make
MAKEDIR="$(dirname "$(readlink -f "$0")")"
make -C "${MAKEDIR}"
......@@ -19,4 +19,5 @@ ADDITIONAL="-c ./knotd.conf"
export TESTS DAEMON TEMPLATE CONFIG ADDITIONAL
echo 'INFO: Tests require Knot compiled with ./configure --enable-recvmmsg=no'
make
MAKEDIR="$(dirname "$(readlink -f "$0")")"
make -C "${MAKEDIR}"
......@@ -14,9 +14,10 @@ CONFIG=config
export TESTS DAEMON TEMPLATE CONFIG
MAKEDIR="$(dirname "$(readlink -f "$0")")"
echo '=== Testing WITHOUT query minimization ==='
export NO_MINIMIZE="true"
make
make -C "${MAKEDIR}"
echo '=== Testing WITH query minimization ==='
export NO_MINIMIZE="false"
make
make -C "${MAKEDIR}"
......@@ -5,7 +5,7 @@ TESTS=sets/resolver
# Path to daemon
DAEMON=$HOME/src/PowerDNS/pdns/pdns/recursordist/pdns_recursor
# Template file name
TEMPLATE=template/recursor.j2:template/hints_pdns.j2:template/dnssec_pdns.j2
......@@ -18,5 +18,5 @@ ADDITIONAL=--config-dir=./
export TESTS DAEMON TEMPLATE CONFIG ADDITIONAL
make
MAKEDIR="$(dirname "$(readlink -f "$0")")"
make -C "${MAKEDIR}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment