]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Actually use cachettl in start-test-stop
authorRuben d'Arco <cyclops@prof-x.net>
Mon, 3 Dec 2012 05:52:23 +0000 (06:52 +0100)
committermind04 <mind04@monshouwer.org>
Fri, 12 Jul 2013 15:17:25 +0000 (17:17 +0200)
regression-tests/start-test-stop

index 61709e77534b7e525efa76eeb1a0d8dfa83f8a79..5b6edc94c96afcf7e6556f5b3956700698de0043 100755 (executable)
@@ -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