From: Peter van Dijk Date: Fri, 30 Aug 2013 06:59:08 +0000 (+0200) Subject: add some runtime configurability to the recursor bulktest X-Git-Tag: rec-3.6.0-rc1~495 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=923c8ad1b632086fb48cb5ef82c6d32dd2148104;p=thirdparty%2Fpdns.git add some runtime configurability to the recursor bulktest --- diff --git a/regression-tests/recursor-test b/regression-tests/recursor-test index 79a1d8710b..488a6b4c6e 100755 --- a/regression-tests/recursor-test +++ b/regression-tests/recursor-test @@ -4,9 +4,21 @@ port=$1 limit=$2 [ -z "$limit" ] && limit=100000 -../pdns/pdns_recursor --daemon=no --local-port=$port --socket-dir=./ --trace=fail --config-dir=. --query-local-address6=:: > recursor.log 2>&1 & +: ${RECURSOR:="../pdns/pdns_recursor"} +: ${CSV:="top-1m.csv"} +: ${IPv6:="1"} + +if [ $IPv6 = 1 ] +then + QLA6="::" +else + QLA6="" +fi + +rm -f recursor.pid pdns_recursor.pid +time ${RECURSOR} --daemon=no --local-port=$port --socket-dir=./ --trace=fail --config-dir=. --query-local-address6="${QLA6}" > recursor.log 2>&1 & sleep 3 -../pdns/dnsbulktest -qe 127.0.0.1 $port $limit < top-1m.csv > bulktest.results +../pdns/dnsbulktest -qe 127.0.0.1 $port $limit < ${CSV} > bulktest.results kill $(cat pdns_recursor.pid) . ./bulktest.results