tests.sh revision bf8267aa453e5d2a735ed732a043b77a0b355b20
# Copyright (C) 2012 Internet Systems Consortium, Inc. ("ISC")
#
# 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$
echo "I:failed";
status=1;
}
n=0
status=0
do
n=`expr $n + 1`
echo "I:checking supposedly good zone: $zone ($n)"
ret=0
*) only=;;
esac
done
do
n=`expr $n + 1`
echo "I:checking supposedly bad zone: $zone ($n)"
ret=0
dumpit=0
*) only=;;
esac
*.dnskeyonly)
expect1="DNSKEY is not signed"
;;
*.expired)
expect1="signature has expired"
expect2="No self-signed .*DNSKEY found"
;;
expect1="signature has expired"
expect2="No self-signed .*DNSKEY found"
;;
expect1="unexpected NSEC RRset at"
;;
expect1="Bad record NSEC record for.*, next name mismatch"
;;
expect1="bit map mismatch"
;;
expect1="Missing NSEC3 record for";
;;
unsigned)
expect1="Zone contains no DNSSEC keys"
;;
expect1="Expected and found NSEC3 chains not equal";
;;
*)
dumpit=1
;;
esac
done
exit $status