]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add dnstap prerequisite for dnstap system test
authorTom Krizek <tkrizek@isc.org>
Thu, 1 Dec 2022 09:52:56 +0000 (10:52 +0100)
committerTom Krizek <tkrizek@isc.org>
Fri, 2 Dec 2022 09:23:52 +0000 (10:23 +0100)
bin/tests/system/dnstap/prereq.sh [new file with mode: 0644]

diff --git a/bin/tests/system/dnstap/prereq.sh b/bin/tests/system/dnstap/prereq.sh
new file mode 100644 (file)
index 0000000..f0748f3
--- /dev/null
@@ -0,0 +1,20 @@
+#!/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
+
+$FEATURETEST --enable-dnstap || {
+       echo_i "This test requires dnstap support." >&2
+       exit 255
+}
+exit 0