]> granicus.if.org Git - pdns/commitdiff
Add an initial recursor test script
authorPieter Lexis <pieter.lexis@powerdns.com>
Wed, 21 Oct 2015 10:28:16 +0000 (12:28 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Wed, 21 Oct 2015 10:28:16 +0000 (12:28 +0200)
build-scripts/test-recursor

index c02f34550c88618ba9ffa4a40193c2a2b8e6de0e..c96cb738b30bf023a3305fb664adc343a234f1e3 100755 (executable)
@@ -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