From: Ruben d'Arco Date: Mon, 3 Dec 2012 05:52:23 +0000 (+0100) Subject: Actually use cachettl in start-test-stop X-Git-Tag: rec-3.6.0-rc1~556^2~3^2~97 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=30b2cf342c8b86a56f90ad86018c51378b750cfd;p=thirdparty%2Fpdns.git Actually use cachettl in start-test-stop --- diff --git a/regression-tests/start-test-stop b/regression-tests/start-test-stop index 61709e7753..5b6edc94c9 100755 --- a/regression-tests/start-test-stop +++ b/regression-tests/start-test-stop @@ -123,7 +123,7 @@ case $context in --no-shuffle --launch=bind --bind-config=./named.conf \ --send-root-referral \ --allow-2136-from=127.0.0.0/8 --disable-rfc2136=no \ - --cache-ttl=0 --no-config & + --cache-ttl=$cachettl --no-config & skipreasons=nodnssec bindwait ;; @@ -164,7 +164,7 @@ case $context in --bind-dnssec-db=./dnssec.sqlite3 \ --send-root-referral \ --allow-2136-from=127.0.0.0/8 --disable-rfc2136=no \ - --cache-ttl=0 --no-config & + --cache-ttl=$cachettl --no-config & bindwait ;; @@ -200,7 +200,7 @@ __EOF__ --no-shuffle --launch=gmysql \ --master --send-root-referral \ --allow-2136-from=127.0.0.0/8 --disable-rfc2136=no \ - --cache-ttl=0 --no-config \ + --cache-ttl=$cachettl --no-config \ --gmysql-dbname="$GMYSQLDB" \ --gmysql-user="$GMYSQLUSER" \ --gmysql-host="$GMYSQLHOST" \ @@ -286,7 +286,7 @@ __EOF__ --no-shuffle --launch=random,gmysql --gmysql-dnssec \ --send-root-referral \ --allow-2136-from=127.0.0.0/8 --disable-rfc2136=no \ - --cache-ttl=0 --no-config \ + --cache-ttl=$cachettl --no-config \ --gmysql-dbname="$GMYSQLDB" \ --gmysql-user="$GMYSQLUSER" \ --gmysql-host="$GMYSQLHOST" \ @@ -339,7 +339,7 @@ __EOF__ --no-shuffle --launch=gpgsql --gpgsql-dnssec \ --send-root-referral \ --allow-2136-from=127.0.0.0/8 --disable-rfc2136=no \ - --cache-ttl=0 --no-config \ + --cache-ttl=$cachettl --no-config \ --gpgsql-dbname="$GPGSQLDB" \ --gpgsql-user="$GPGSQLUSER" & if [ $context = gpgsql-nsec3 ] @@ -381,7 +381,7 @@ __EOF__ --no-shuffle --launch=gpgsql \ --send-root-referral \ --allow-2136-from=127.0.0.0/8 --disable-rfc2136=no \ - --cache-ttl=0 --no-config \ + --cache-ttl=$cachettl --no-config \ --gpgsql-dbname="$GPGSQLDB" \ --gpgsql-user="$GPGSQLUSER" & skipreasons=nodnssec @@ -406,7 +406,7 @@ __EOF__ $RUNWRAPPER $PDNS --daemon=no --local-port=$port --socket-dir=./ \ --no-shuffle --launch=gsqlite3 \ --send-root-referral \ - --cache-ttl=0 --no-config \ + --cache-ttl=$cachettl --no-config \ --gsqlite3-database=pdns.sqlite3 & skipreasons=nodnssec @@ -423,7 +423,7 @@ __EOF__ --no-shuffle --launch=opendbx \ --send-root-referral \ --allow-2136-from=127.0.0.0/8 --disable-rfc2136=no \ - --cache-ttl=0 --no-config \ + --cache-ttl=$cachettl --no-config \ --opendbx-backend=sqlite3 --opendbx-host-read=./ --opendbx-host-write=./ \ --opendbx-database=pdns-opendbx.sqlite3 & skipreasons="nodnssec noent" @@ -455,7 +455,7 @@ __EOF__ --no-shuffle --launch=gsqlite3 --gsqlite3-dnssec \ --send-root-referral \ --allow-2136-from=127.0.0.0/8 --disable-rfc2136=no \ - --cache-ttl=0 --no-config \ + --cache-ttl=$cachettl --no-config \ --gsqlite3-database=pdns.sqlite3 & if [ $context = gsqlite3-nsec3 ] then @@ -470,7 +470,7 @@ __EOF__ tinydns) $RUNWRAPPER $PDNS --daemon=no --local-port=$port --socket-dir=./ \ --no-shuffle --launch=tinydns \ - --cache-ttl=0 --no-config \ + --cache-ttl=$cachettl --no-config \ --send-root-referral \ --allow-2136-from=127.0.0.0/8 --disable-rfc2136=no \ --tinydns-dbfile=../modules/tinydnsbackend/data.cdb & @@ -544,7 +544,7 @@ EOF $RUNWRAPPER $PDNS --daemon=no --local-port=$port --socket-dir=./ \ --no-shuffle --launch=remote \ - --query-logging --loglevel=9 --cache-ttl=0 --no-config \ + --query-logging --loglevel=9 --cache-ttl=$cachettl --no-config \ --send-root-referral \ --allow-2136-from=127.0.0.0/8 --disable-rfc2136=no \ --remote-connection-string="$connstr" $remote_add_param & @@ -623,7 +623,7 @@ then --no-shuffle --launch=gmysql --gmysql-dnssec \ --send-root-referral \ --allow-2136-from=127.0.0.0/8 --disable-rfc2136=no \ - --cache-ttl=0 --query-cache-ttl=0 --no-config --slave --retrieval-threads=1 \ + --cache-ttl=$cachettl --query-cache-ttl=$cachettl --no-config --slave --retrieval-threads=1 \ --gmysql-dbname="$GMYSQL2DB" \ --gmysql-user="$GMYSQL2USER" \ --gmysql-host="$GMYSQL2HOST" \ @@ -691,7 +691,7 @@ then --no-shuffle --launch=bind --bind-config=./named-slave.conf --slave \ --send-root-referral --retrieval-threads=1 --config-name=bind-slave \ --allow-2136-from=127.0.0.0/8 --disable-rfc2136=no \ - --cache-ttl=0 --no-config --bind-dnssec-db=./dnssec-slave.sqlite3 & + --cache-ttl=$cachettl --no-config --bind-dnssec-db=./dnssec-slave.sqlite3 & echo 'waiting for zones to be loaded' bindwait bind-slave fi