tests.sh revision ec5347e2c775f027573ce5648b910361aa926c01
#
# Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
# Copyright (C) 2000, 2001 Internet Software Consortium.
#
# 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 ISC DISCLAIMS ALL WARRANTIES WITH
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
# AND FITNESS. IN NO EVENT SHALL ISC 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 2007/06/18 23:47:30 tbox Exp $
status=0
echo "I:test 2-element sortlist statement"
cat <<EOF >test1.good
a.example. 300 IN A 192.168.3.1
a.example. 300 IN A 192.168.1.1
a.example. 300 IN A 1.1.1.5
a.example. 300 IN A 1.1.1.1
a.example. 300 IN A 1.1.1.3
a.example. 300 IN A 1.1.1.2
a.example. 300 IN A 1.1.1.4
EOF
# Note that this can't use digcomp.pl because here, the ordering of the
# result RRs is significant.
echo "I:test 1-element sortlist statement and undocumented BIND 8 features"
do
cat <<EOF >test2.good
b.example. 300 IN A 10.53.0.$n
EOF
b.example. \
done
echo "I:exit status: $status"
exit $status