Commit 5337a9e5 authored by Andreas Gustafsson's avatar Andreas Gustafsson
Browse files

added regression test for RT #482 (which will fail

until the bug is fixed)
parent a6dbd6b6
......@@ -15,7 +15,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
# $Id: tests.sh,v 1.15 2000/11/21 23:41:25 mws Exp $
# $Id: tests.sh,v 1.16 2000/11/22 18:26:30 gson Exp $
SYSTEMTESTTOP=..
. $SYSTEMTESTTOP/conf.sh
......@@ -93,5 +93,46 @@ $DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd example.nil.\
echo "I:comparing zones"
$PERL ../digcomp.pl dig.out.ns1 dig.out.ns1.after || status=1
echo "I:begin RT #482 regression test"
echo "I:update master"
$NSUPDATE <<END > /dev/null || status=1
server 10.53.0.1 5300
update add updated2.example.nil. 600 A 10.10.10.2
update add updated2.example.nil. 600 TXT Bar
update delete c.example.nil.
send
END
sleep 5
echo "I:SIGHUP slave"
kill -HUP `cat ns2/named.pid`
sleep 5
echo "I:update master again"
$NSUPDATE <<END > /dev/null || status=1
server 10.53.0.1 5300
update add updated3.example.nil. 600 A 10.10.10.3
update add updated3.example.nil. 600 TXT Zap
update delete d.example.nil.
send
END
sleep 5
echo "I:SIGHUP slave again"
kill -HUP `cat ns2/named.pid`
sleep 5
if grep "out of sync" ns2/named.run
then
status=1
fi
echo "I:end RT #482 regression test"
echo "I:exit status: $status"
exit $status
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment