echo "I:killing ns4 with SIGTERM"
cd ns4
-kill -TERM `cat named.pid`
+$KILL -TERM `cat named.pid`
rm -f named.pid
cd ..
echo "I:killing ns4 with SIGTERM"
cd ns4
-kill -TERM `cat named.pid`
+$KILL -TERM `cat named.pid`
rm -f named.pid
cd ..
echo "I:killing ns4 with SIGTERM"
cd ns4
-kill -TERM `cat named.pid`
+$KILL -TERM `cat named.pid`
rm -f named.pid
cd ..
echo "I:killing ns4 with SIGTERM"
cd ns4
-kill -TERM `cat named.pid`
+$KILL -TERM `cat named.pid`
rm -f named.pid
cd ..
+trusted-key=ns3/trusted-future.key > dig.out.ns3.test$n &
pid=$!
sleep 1
- kill -9 $pid 2> /dev/null
+ $KILL -9 $pid 2> /dev/null
wait $pid
grep ";; No DNSKEY is valid to check the RRSIG of the RRset: FAILED" dig.out.ns3.test$n > /dev/null || ret=1
if [ $ret != 0 ]; then echo "I:failed"; fi
echo "I:test of master file RFC1035 TTL and \$TTL semantics ($n)"
$DIG +nostats +nocmd ttl2. axfr @10.53.0.1 -p 5300 >>dig.out.$n
-diff dig.out.$n knowngood.dig.out || status=1
+$DIFF dig.out.$n knowngood.dig.out || status=1
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
n=`expr $n + 1`
echo "I:test owner inheritence after "'$INCLUDE'" ($n)"
$CHECKZONE -Dq example zone/inheritownerafterinclude.db > checkzone.out$n
-diff checkzone.out$n zone/inheritownerafterinclude.good || ret=1
+$DIFF checkzone.out$n zone/inheritownerafterinclude.good || ret=1
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
standby=`sed 's/^K'${czone}'.+005+0*\([0-9]\)/\1/' < standby.key`
zsk=`sed 's/^K'${czone}'.+005+0*\([0-9]\)/\1/' < zsk.key`
-../../../tools/genrandom 400 $RANDFILE
+$GENRANDOM 400 $RANDFILE
echo "I:signing zones"
$SIGNER -Sg -o $czone $cfile > /dev/null 2>&1
chmod 644 `cat oldstyle.key`.private
$SETTIME -P none `cat oldstyle.key` > tmp.out 2>&1 || ret=1
grep "warning" tmp.out > /dev/null 2>&1 || ret=1
+cat tmp.out
$SETTIME -P none `cat oldstyle.key` > tmp.out 2>&1 || ret=1
grep "warning" tmp.out > /dev/null 2>&1 && ret=1
+cat tmp.out
n=`expr $n + 1`
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
sleep 1 # make sure filesystem time stamp is newer for reload.
rm -f ns2/example.db
cp -f ns2/example2.db ns2/example.db
-kill -HUP `cat ns2/named.pid`
+$KILL -HUP `cat ns2/named.pid`
try=0
while test $try -lt 45
do
echo "I:SIGKILL and restart server ns1"
cd ns1
-kill -KILL `cat named.pid`
+$KILL -KILL `cat named.pid`
rm named.pid
cd ..
sleep 10
sleep 5
echo "I:SIGHUP slave"
-kill -HUP `cat ns2/named.pid`
+$KILL -HUP `cat ns2/named.pid`
sleep 5
sleep 5
echo "I:SIGHUP slave again"
-kill -HUP `cat ns2/named.pid`
+$KILL -HUP `cat ns2/named.pid`
sleep 5
PID=`cat ns$1/named.pid 2>/dev/null`
if test -n "$PID"; then
echo "I:killing ns$1 server $PID"
- kill -9 $PID
+ $KILL -9 $PID
fi
fi
fi
$DIG $DIGOPTS @10.53.0.2 -p 5300 www.test.example.org CNAME > dig.out.${t}
sleep 1
echo "I:suspending authority server"
-kill -TSTP `cat ns1/named.pid`
+$KILL -TSTP `cat ns1/named.pid`
echo "I:adding an NSDNAME policy"
cp ns2/db.6a.00.policy.local ns2/saved.policy.local
cp ns2/db.6b.00.policy.local ns2/db.6a.00.policy.local
$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 6a.00.policy.local 2>&1 | sed 's/^/I:ns2 /'
sleep 1
echo "I:resuming authority server"
-kill -CONT `cat ns1/named.pid`
+$KILL -CONT `cat ns1/named.pid`
for n in 1 2 3 4 5 6 7 8 9; do
sleep 1
[ -s dig.out.${t} ] || continue
$DIG $DIGOPTS @10.53.0.2 -p 5300 www.test.example.org CNAME > dig.out.${t}
sleep 1
echo "I:suspending authority server"
-kill -TSTP `cat ns1/named.pid`
+$KILL -TSTP `cat ns1/named.pid`
echo "I:adding an NSDNAME policy"
cp ns2/db.6b.00.policy.local ns2/db.6a.00.policy.local
$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 6a.00.policy.local 2>&1 | sed 's/^/I:ns2 /'
$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reconfig 2>&1 | sed 's/^/I:ns2 /'
sleep 1
echo "I:resuming authority server"
-kill -CONT `cat ns1/named.pid`
+$KILL -CONT `cat ns1/named.pid`
for n in 1 2 3 4 5 6 7 8 9; do
sleep 1
[ -s dig.out.${t} ] || continue
grep "min-table-size 1" broken.out > /dev/null || setret "I: min-table-size 0 was not changed to 1"
if [ -f named.pid ]; then
- kill `cat named.pid`
+ $KILL `cat named.pid`
setret "I: named should not have started, but did"
fi
(cd ns2; $NAMED -c named-alt1.conf -D ns2-extra-1 -X other.lock -m record,size,mctx -d 99 -g -U 4 >> named2.run 2>&1 & )
sleep 2
grep "unable to listen on any configured interface" ns2/named2.run > /dev/null || ret=1
-[ -s ns2/named2.pid ] && kill -15 `cat ns2/named2.pid`
+[ -s ns2/named2.pid ] && $KILL -15 `cat ns2/named2.pid`
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
(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 & )
sleep 2
grep "another named process" ns2/named3.run > /dev/null || ret=1
-[ -s ns2/named3.pid ] && kill -15 `cat ns2/named3.pid`
+[ -s ns2/named3.pid ] && $KILL -15 `cat ns2/named3.pid`
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
(cd ns2; $NAMED -c named-alt3.conf -D 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
-[ -s ns2/named4.pid ] && kill -15 `cat ns2/named4.pid`
+[ -s ns2/named4.pid ] && $KILL -15 `cat ns2/named4.pid`
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
$DIG $DIGOPTS example. @10.53.0.8 axfr -p 5300 \
-y key1.:1234abcd8765 > dig.out.msgsize || status=1
+$DOS2UNIX dig.out.msgsize >/dev/null
+
bytes=`wc -c < dig.out.msgsize`
if [ $bytes -ne 459357 ]; then
echo "I:failed axfr size check"
if [ $ticks = 1 ]; then
echo "I:Changing test zone..."
cp -f ns1/changing2.db ns1/changing.db
- kill -HUP `cat ns1/named.pid`
+ $KILL -HUP `cat ns1/named.pid`
fi
sleep 1
ticks=`expr $ticks + 1`