tests.sh revision dc9c461b27df798ba7c3d9ba1446840c5f85553b
#
# Copyright (C) 2000 Internet Software Consortium.
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
# ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
# OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
# CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
# DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
# PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
# SOFTWARE.
# $Id: tests.sh,v 1.7 2000/07/25 00:44:18 mws Exp $
#
# Perform tests
#
status=0
echo "I:fetching first copy of zone before update"
echo "I:fetching second copy of zone before update"
echo "I:comparing pre-update copies to known good data"
echo "I:updating zone"
# nsupdate will print a ">" prompt to stdout as it gets each input line.
echo "I:sleeping 15 seconds for server to incorporate changes"
sleep 15
echo "I:fetching first copy of zone after update"
echo "I:fetching second copy of zone after update"
echo "I:comparing post-update copies to known good data"
then
echo "I:running update.pl test"
else
echo "I:The second part of this test requires the Net::DNS library." >&2
fi
echo "I:fetching first copy of test zone"
echo "I:fetching second copy of test zone"
echo "I:comparing zones"
echo "I:SIGKILL and restart server ns1"
cd ns1
sleep 2
cd ..
echo "I:fetching ns1 after hard restart"
echo "I:comparing zones"
echo "I:exit status: $status"
exit $status