From 8c929bd7c5058a264076ed069efe6acc428c9a16 Mon Sep 17 00:00:00 2001 From: Curtis Blackburn Date: Thu, 7 Feb 2019 11:46:58 -0800 Subject: [PATCH] added prereq.sh to forward test to detect perl Net::DNS --- bin/tests/system/forward/prereq.sh | 21 +++++++++++++++++++++ util/copyrights | 1 + 2 files changed, 22 insertions(+) create mode 100644 bin/tests/system/forward/prereq.sh diff --git a/bin/tests/system/forward/prereq.sh b/bin/tests/system/forward/prereq.sh new file mode 100644 index 0000000000..0e299f4db8 --- /dev/null +++ b/bin/tests/system/forward/prereq.sh @@ -0,0 +1,21 @@ +#!/bin/sh +# +# Copyright (C) Internet Systems Consortium, Inc. ("ISC") +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# +# See the COPYRIGHT file distributed with this work for additional +# information regarding copyright ownership. + +SYSTEMTESTTOP=.. +. $SYSTEMTESTTOP/conf.sh + +if $PERL -e 'use Net::DNS;' 2>/dev/null +then + : +else + echo_i "This test requires the Net::DNS library." >&2 + exit 1 +fi diff --git a/util/copyrights b/util/copyrights index c9e900b82d..3725ce19f5 100644 --- a/util/copyrights +++ b/util/copyrights @@ -647,6 +647,7 @@ ./bin/tests/system/forward/clean.sh SH 2000,2001,2004,2007,2012,2014,2015,2016,2018,2019 ./bin/tests/system/forward/ns1/example.db X 2000,2001,2018 ./bin/tests/system/forward/ns2/example.db X 2000,2001,2018 +./bin/tests/system/forward/prereq.sh SH 2019 ./bin/tests/system/forward/setup.sh SH 2018,2019 ./bin/tests/system/forward/tests.sh SH 2000,2001,2004,2007,2011,2012,2013,2014,2016,2018,2019 ./bin/tests/system/genzone.sh SH 2001,2002,2003,2004,2007,2009,2011,2012,2013,2014,2015,2016,2017,2018,2019 -- GitLab