1a8002871e54091b20072459c55633b7c73142cfBrian Wellington#!/bin/sh
1a8002871e54091b20072459c55633b7c73142cfBrian Wellington#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Copyright (C) 2000-2002, 2004, 2006, 2007, 2009, 2012, 2014-2016 Internet Systems Consortium, Inc. ("ISC")
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# This Source Code Form is subject to the terms of the Mozilla Public
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# License, v. 2.0. If a copy of the MPL was not distributed with this
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# file, You can obtain one at http://mozilla.org/MPL/2.0/.
1a8002871e54091b20072459c55633b7c73142cfBrian Wellington
60988462e5d6db53205851d056e3482a29239be9Evan HuntSYSTEMTESTTOP=..
60988462e5d6db53205851d056e3482a29239be9Evan Hunt. $SYSTEMTESTTOP/conf.sh
60988462e5d6db53205851d056e3482a29239be9Evan Hunt
a0d411c05f12c36b298d811af3b4f2c9f08e86d4Mark Andrewsif $PERL -e 'use Net::DNS;' 2>/dev/null
a0d411c05f12c36b298d811af3b4f2c9f08e86d4Mark Andrewsthen
a0d411c05f12c36b298d811af3b4f2c9f08e86d4Mark Andrews if $PERL -e 'use Net::DNS; die if ($Net::DNS::VERSION >= 0.69 && $Net::DNS::VERSION <= 0.70);' 2>/dev/null
a0d411c05f12c36b298d811af3b4f2c9f08e86d4Mark Andrews then
a0d411c05f12c36b298d811af3b4f2c9f08e86d4Mark Andrews :
a0d411c05f12c36b298d811af3b4f2c9f08e86d4Mark Andrews else
a0d411c05f12c36b298d811af3b4f2c9f08e86d4Mark Andrews echo "I:Net::DNS versions 0.69 to 0.70 have bugs that cause this test to fail: please update." >&2
a0d411c05f12c36b298d811af3b4f2c9f08e86d4Mark Andrews exit 1
a0d411c05f12c36b298d811af3b4f2c9f08e86d4Mark Andrews fi
a0d411c05f12c36b298d811af3b4f2c9f08e86d4Mark Andrewsfi
a0d411c05f12c36b298d811af3b4f2c9f08e86d4Mark Andrews
60988462e5d6db53205851d056e3482a29239be9Evan Huntexec $SHELL ../testcrypto.sh