From: Pieter Lexis Date: Wed, 21 Oct 2015 10:28:16 +0000 (+0200) Subject: Add an initial recursor test script X-Git-Tag: dnsdist-1.0.0-alpha1~252^2~20^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ffb198deacdad0eb3e54ca72af7c99c9977dbbef;p=pdns Add an initial recursor test script --- diff --git a/build-scripts/test-recursor b/build-scripts/test-recursor index c02f34550..c96cb738b 100755 --- a/build-scripts/test-recursor +++ b/build-scripts/test-recursor @@ -1,5 +1,10 @@ #!/bin/sh +export PDNSRECURSOR=/usr/sbin/pdns_recursor +export SDIG=/usr/bin/sdig +export NSEC3DIG=/usr/bin/nsec3dig +export SAXFR=/usr/bin/saxfr + if [ "$0" != "./build-scripts/test-recursor" ]; then echo "Please run me from the root checkout dir" exit 1 @@ -7,6 +12,19 @@ fi set -x -cd regression-tests +cd regression-tests.recursor +cp vars.sample vars +sed -i 's!PREFIX=.*!PREFIX=127.0.0!' vars + +EXIT=0 + +./config.sh +./start.sh +sleep 3 +svstat configs/* +./runtests || EXIT=1 +./stop.sh +sleep 3 +./clean.sh -./runtests recursor +exit $EXIT