]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Use prereq.sh for serve-stale system test
authorTom Krizek <tkrizek@isc.org>
Mon, 4 Sep 2023 13:56:14 +0000 (15:56 +0200)
committerTom Krizek <tkrizek@isc.org>
Tue, 19 Sep 2023 12:47:48 +0000 (14:47 +0200)
bin/tests/system/Makefile.am
bin/tests/system/serve-stale/prereq.sh [new file with mode: 0644]
configure.ac

index fbf12f0af6b94974aab4a3f2eb1d2de4dffa5c9f..f61001a6cc6fbd60499fb1eeba3086dd873bd38a 100644 (file)
@@ -72,10 +72,6 @@ rpz_dnsrps_LDADD =           \
 
 TESTS =
 
-if HAVE_PERLMOD_TIME_HIRES
-TESTS += serve-stale
-endif HAVE_PERLMOD_TIME_HIRES
-
 if HAVE_PERLMOD_NET_DNS
 TESTS +=               \
        rpzrecurse
@@ -163,6 +159,7 @@ TESTS +=                    \
        rrsetorder              \
        rsabigexponent          \
        runtime                 \
+       serve-stale             \
        sfcache                 \
        shutdown                \
        smartsign               \
diff --git a/bin/tests/system/serve-stale/prereq.sh b/bin/tests/system/serve-stale/prereq.sh
new file mode 100644 (file)
index 0000000..01ac7e3
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
+#
+# SPDX-License-Identifier: MPL-2.0
+#
+# 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 https://mozilla.org/MPL/2.0/.
+#
+# See the COPYRIGHT file distributed with this work for additional
+# information regarding copyright ownership.
+
+. ../conf.sh
+
+if ! ${PERL} -MTime::HiRes -e ''
+then
+       echo_i "perl Time::HiRes module is required"
+       exit 1
+fi
+
+exit 0
index b9182b0e32d1c4a15e7d6d6637d9e55d193a71d6..5e7288a106234d6e62210bac45a6283838fa7532 100644 (file)
@@ -315,10 +315,6 @@ AX_PERL_MODULE([Net::DNS])
 AM_CONDITIONAL([HAVE_PERLMOD_NET_DNS],
               [test "$HAVE_PERLMOD_NET__DNS" = "yes"])
 
-AX_PERL_MODULE([Time::HiRes])
-AM_CONDITIONAL([HAVE_PERLMOD_TIME_HIRES],
-              [test "$HAVE_PERLMOD_TIME__HIRES" = "yes"])
-
 #
 # Python is optional, it is used only by some of the system test scripts.
 #