xref: /netbsd-src/external/mpl/bind/dist/bin/tests/system/nsupdate/prereq.sh (revision eceb233b9bd0dfebb902ed73b531ae6964fa3f9b)
1#!/bin/sh
2#
3# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
4#
5# This Source Code Form is subject to the terms of the Mozilla Public
6# License, v. 2.0. If a copy of the MPL was not distributed with this
7# file, You can obtain one at http://mozilla.org/MPL/2.0/.
8#
9# See the COPYRIGHT file distributed with this work for additional
10# information regarding copyright ownership.
11
12SYSTEMTESTTOP=..
13. $SYSTEMTESTTOP/conf.sh
14
15if $PERL -e 'use Net::DNS;' 2>/dev/null
16then
17    if $PERL -e 'use Net::DNS; die if ($Net::DNS::VERSION >= 0.69 && $Net::DNS::VERSION <= 0.70);' 2>/dev/null
18    then
19        :
20    else
21        echo_i "Net::DNS versions 0.69 to 0.70 have bugs that cause this test to fail: please update." >&2
22        exit 1
23    fi
24fi
25
26exit 0
27