]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add libnghttp2 prerequisite for doth system test
authorTom Krizek <tkrizek@isc.org>
Wed, 30 Nov 2022 16:44:27 +0000 (17:44 +0100)
committerTom Krizek <tkrizek@isc.org>
Fri, 2 Dec 2022 09:23:52 +0000 (10:23 +0100)
While some of these tests are for DoT which doesn't require nghttp2,
the server configs won't allow the server to start without nghttp2
support during compile time.

It might be possible to split these tests into DoT and DoH and only
require nghttp2 for DoH tests, but since almost all of our CI jobs are
compiled with nghttp2, we wouldn't gain a lot of coverage, so it's
probably not worth the effort.

bin/tests/system/doth/prereq.sh [new file with mode: 0644]

diff --git a/bin/tests/system/doth/prereq.sh b/bin/tests/system/doth/prereq.sh
new file mode 100644 (file)
index 0000000..36a8e37
--- /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 --with-libnghttp2 || {
+       echo_i "This test requires libnghttp2 support." >&2
+       exit 255
+}
+exit 0