]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
also add -D options for transient named processes started in tests.sh
authorEvan Hunt <each@isc.org>
Tue, 29 Jan 2019 02:11:57 +0000 (18:11 -0800)
committerEvan Hunt <each@isc.org>
Tue, 29 Jan 2019 05:22:13 +0000 (21:22 -0800)
(cherry picked from commit dd45831acc06b15e5814b7ce3eec903d2db23904)

bin/tests/system/logfileconfig/tests.sh
bin/tests/system/rrl/tests.sh
bin/tests/system/runtime/tests.sh

index 1ab61324251fdad5f9f0a0cf594ca9df95b6f417..3f690b3d4a54752ef09e37fe6557601118135e63 100644 (file)
@@ -30,7 +30,7 @@ DLFILE="named_deflog"
 
 PIDFILE="${THISDIR}/${CONFDIR}/named.pid"
 myRNDC="$RNDC -c ${THISDIR}/${CONFDIR}/rndc.conf"
-myNAMED="$NAMED -c ${THISDIR}/${CONFDIR}/named.conf -m record,size,mctx -T clienttest -T nosyslog -d 99 -X named.lock -U 4"
+myNAMED="$NAMED -c ${THISDIR}/${CONFDIR}/named.conf -m record,size,mctx -T clienttest -T nosyslog -d 99 -D logfileconfig-ns1 -X named.lock -U 4"
 
 # Test given condition.  If true, test again after a second.  Used for testing
 # filesystem-dependent conditions in order to prevent false negatives caused by
index 942cbbf1b492084703a33ac59cb59a69ddcd19cd..977950f713c8c1c528ce632bb0a5686c71734e91 100644 (file)
@@ -273,7 +273,7 @@ $DIG $DIGOPTS @$ns4 A a7.tld4 > /dev/null 2>&1
 grep "would limit" ns4/named.run >/dev/null 2>&1 ||
 setret "\"would limit\" not found in log file."
 
-$NAMED -gc broken.conf > broken.out 2>&1 & 
+$NAMED -D rrl-ns5 -gc broken.conf > broken.out 2>&1 &
 sleep 2
 grep "min-table-size 1" broken.out > /dev/null || setret "min-table-size 0 was not changed to 1"
 
index abb603cb0cc2286a9d6212a5889d9758fc1313c3..e515f2ac454adba56b4902b80b3e6ae1c4002603 100644 (file)
@@ -49,7 +49,7 @@ fi
 n=`expr $n + 1`
 echo_i "verifying that named checks for conflicting named processes ($n)"
 ret=0
-(cd ns2; $NAMED -c named-alt2.conf -D ns2-extra-2 -X named.lock -m record,size,mctx -d 99 -g -U 4 >> named3.run 2>&1 & )
+(cd ns2; $NAMED -c named-alt2.conf -D runtime-ns2-extra-2 -X named.lock -m record,size,mctx -d 99 -g -U 4 >> named3.run 2>&1 & )
 sleep 2
 grep "another named process" ns2/named3.run > /dev/null || ret=1
 pid=`cat ns2/named3.pid 2>/dev/null`
@@ -60,7 +60,7 @@ status=`expr $status + $ret`
 n=`expr $n + 1`
 echo_i "verifying that 'lock-file none' disables process check ($n)"
 ret=0
-(cd ns2; $NAMED -c named-alt3.conf -D ns2-extra-3 -m record,size,mctx -d 99 -g -U 4 >> named4.run 2>&1 & )
+(cd ns2; $NAMED -c named-alt3.conf -D runtime-ns2-extra-3 -m record,size,mctx -d 99 -g -U 4 >> named4.run 2>&1 & )
 sleep 2
 grep "another named process" ns2/named4.run > /dev/null && ret=1
 pid=`cat ns2/named4.pid 2>/dev/null`
@@ -114,7 +114,7 @@ n=`expr $n + 1`
 echo_i "checking that named refuses to start if managed-keys-directory is set and not writable ($n)"
 ret=0
 cd ns2
-$NAMED -c named-alt4.conf -d 99 -g > named4.run 2>&1 &
+$NAMED -c named-alt4.conf -D runtime-ns2-extra-4 -d 99 -g > named4.run 2>&1 &
 sleep 2
 grep "exiting (due to fatal error)" named4.run > /dev/null || ret=1
 pid=`cat named4.pid 2>/dev/null`
@@ -127,7 +127,7 @@ n=`expr $n + 1`
 echo_i "checking that named refuses to start if managed-keys-directory is unset and working directory is not writable ($n)"
 ret=0
 cd ns2
-$NAMED -c named-alt5.conf -d 99 -g > named5.run 2>&1 &
+$NAMED -c named-alt5.conf -D runtime-ns2-extra-5 -d 99 -g > named5.run 2>&1 &
 sleep 2
 grep "exiting (due to fatal error)" named5.run > /dev/null || ret=1
 pid=`cat named5.pid 2>/dev/null`
@@ -140,7 +140,7 @@ n=`expr $n + 1`
 echo_i "checking that named starts if managed-keys-directory is writable and working directory is not writable ($n)"
 ret=0
 cd ns2
-$NAMED -c named-alt6.conf -d 99 -g > named6.run 2>&1 &
+$NAMED -c named-alt6.conf -D runtime-ns2-extra-6 -d 99 -g > named6.run 2>&1 &
 sleep 2
 grep "exiting (due to fatal error)" named6.run > /dev/null || ret=1
 pid=`cat named6.pid 2>/dev/null`