3066. [func] The DLZ "dlopen" driver is now built by default,
no longer requiring a configure option. To
disable it, use "configure --without-dlopen".
Driver also supported on win32. [RT #23467]
This commit is contained in:
@@ -13,32 +13,43 @@ test_update() {
|
||||
type="$2"
|
||||
cmd="$3"
|
||||
digout="$4"
|
||||
should_fail="$5"
|
||||
|
||||
cat <<EOF > ns1/update.txt
|
||||
server 10.53.0.1 5300
|
||||
update add $host $cmd
|
||||
send
|
||||
EOF
|
||||
echo "I:testing update for $host $type $cmd"
|
||||
$NSUPDATE -k ns1/ddns.key ns1/update.txt || {
|
||||
echo "I:update failed for $host $type $cmd"
|
||||
|
||||
echo "I:testing update for $host $type $cmd $comment"
|
||||
$NSUPDATE -k ns1/ddns.key ns1/update.txt > /dev/null 2>&1 || {
|
||||
[ "$should_fail" ] || \
|
||||
echo "I:update failed for $host $type $cmd"
|
||||
return 1
|
||||
}
|
||||
|
||||
out=`$DIG $DIGOPTS -t $type -q $host | egrep ^$host`
|
||||
out=`$DIG $DIGOPTS -t $type -q $host | egrep "^$host"`
|
||||
lines=`echo "$out" | grep "$digout" | wc -l`
|
||||
[ $lines -eq 1 ] || {
|
||||
echo "I:dig output incorrect for $host $type $cmd: $out"
|
||||
[ "$should_fail" ] || \
|
||||
echo "I:dig output incorrect for $host $type $cmd: $out"
|
||||
return 1
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
test_update testdc1.example.nil. A "86400 A 10.53.0.10" "10.53.0.10" || status=1
|
||||
test_update testdc2.example.nil. A "86400 A 10.53.0.11" "10.53.0.11" || status=1
|
||||
test_update testdc3.example.nil. A "86400 A 10.53.0.10" "10.53.0.10" || status=1
|
||||
test_update deny.example.nil. TXT "86400 TXT helloworld" "helloworld" && status=1
|
||||
ret=0
|
||||
|
||||
[ $status -eq 0 ] && echo "I:dlzexternal tests all OK"
|
||||
test_update testdc1.example.nil. A "86400 A 10.53.0.10" "10.53.0.10" || ret=1
|
||||
status=`expr $status + $ret`
|
||||
|
||||
test_update testdc2.example.nil. A "86400 A 10.53.0.11" "10.53.0.11" || ret=1
|
||||
status=`expr $status + $ret`
|
||||
|
||||
test_update testdc3.example.nil. A "86400 A 10.53.0.10" "10.53.0.10" || ret=1
|
||||
status=`expr $status + $ret`
|
||||
|
||||
test_update deny.example.nil. TXT "86400 TXT helloworld" "helloworld" should_fail && ret=1
|
||||
status=`expr $status + $ret`
|
||||
|
||||
exit $status
|
||||
|
||||
Reference in New Issue
Block a user