]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Make Perl interpreter required for system tests
authorTom Krizek <tkrizek@isc.org>
Tue, 8 Nov 2022 13:54:14 +0000 (14:54 +0100)
committerTom Krizek <tkrizek@isc.org>
Wed, 21 Dec 2022 09:49:33 +0000 (10:49 +0100)
This change has no practical impact, as Perl was already required for
all system tests, this check only makes it more explicit.

(cherry picked from commit 084d72d1d5ea38f4ccc600fd04d61fed1c3124c3)

bin/tests/system/conf.sh.in

index 8d4a55c21c58ccd38f3fdd4fd79b4938bb44ca80..98a6e3d69ea15ba020db8269ad3b1b93ebf3d738 100644 (file)
@@ -81,7 +81,11 @@ export PYTEST=@PYTEST@
 #
 # Interpreters for system tests detected by configure
 #
-export PERL=$(command -v "@PERL@")
+export PERL=$(command -v "@PERL@" || true)
+if ! test -x "$PERL"; then
+    echo "Perl interpreter is required for system tests."
+    exit 77
+fi
 export PYTHON=$(command -v "@PYTHON@" || true)
 
 # Load common values