]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
The kasp system test requires Python
authorMatthijs Mekking <matthijs@isc.org>
Wed, 7 Oct 2020 11:37:13 +0000 (13:37 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Wed, 7 Oct 2020 12:14:14 +0000 (14:14 +0200)
Only run the "kasp" system test if the path to the Python interpreter is
set.

bin/tests/system/kasp/prereq.sh [new file with mode: 0644]
util/copyrights

diff --git a/bin/tests/system/kasp/prereq.sh b/bin/tests/system/kasp/prereq.sh
new file mode 100644 (file)
index 0000000..a1f6264
--- /dev/null
@@ -0,0 +1,19 @@
+#!/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 https://mozilla.org/MPL/2.0/.
+#
+# See the COPYRIGHT file distributed with this work for additional
+# information regarding copyright ownership.
+
+SYSTEMTESTTOP=..
+. $SYSTEMTESTTOP/conf.sh
+
+if ! test -n "$PYTHON"; then
+       echo_i "This test requires Python."
+       exit 1
+fi
+exit 0
index b69620c0bd238bffc230f4b1c19c4a853b78b3f5..4810da53e16476546fab724fa60a11ab4a7f382b 100644 (file)
 ./bin/tests/system/kasp/ns5/setup.sh           SH      2019,2020
 ./bin/tests/system/kasp/ns6/setup.sh           SH      2020
 ./bin/tests/system/kasp/ns7/setup.sh           SH      2020
+./bin/tests/system/kasp/prereq.sh              SH      2020
 ./bin/tests/system/kasp/setup.sh               SH      2019,2020
 ./bin/tests/system/kasp/tests.sh               SH      2019,2020
 ./bin/tests/system/keepalive/clean.sh          SH      2017,2018,2019,2020