From 5a0d5c6e6ffe3019c6968a8d527de5a9efb03c52 Mon Sep 17 00:00:00 2001 From: Tom Krizek Date: Wed, 30 Nov 2022 17:44:27 +0100 Subject: [PATCH] Add libnghttp2 prerequisite for doth system test 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. (cherry picked from commit f5146046131ba1431be423343ff4721403914906) --- bin/tests/system/doth/prereq.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 bin/tests/system/doth/prereq.sh diff --git a/bin/tests/system/doth/prereq.sh b/bin/tests/system/doth/prereq.sh new file mode 100644 index 0000000000..36a8e3704b --- /dev/null +++ b/bin/tests/system/doth/prereq.sh @@ -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