os.getenv("FEATURE_GSSAPI") != "1", reason="GSS-API support disabled in the build"
)
+with_libxml2_or_json_c = pytest.mark.skipif(
+ os.getenv("FEATURE_LIBXML2") != "1" and os.getenv("FEATURE_JSON_C") != "1",
+ reason="libxml2 or json-c support is required",
+)
+
with_fips_dh = pytest.mark.skipif(
os.getenv("FEATURE_FIPS_DH") != "1", reason="FIPS mode Diffie-Hellman is required"
)
+++ /dev/null
-#!/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
-
-if ! ${PERL} -MNet::DNS -e ''; then
- echo_i "perl Net::DNS module is required"
- exit 1
-fi
-
-if ! ${PERL} -MFile::Fetch -e ''; then
- echo_i "perl File::Fetch module is required"
- exit 1
-fi
-
-if ! $FEATURETEST --have-libxml2 && ! $FEATURETEST --have-json-c; then
- echo_i "skip: one or both of --with-libxml2 and --with-json-c required"
- exit 255
-fi
-
-exit 0
import pytest
-pytestmark = pytest.mark.extra_artifacts(
+import isctest.mark
+
+EXTRA_ARTIFACTS = pytest.mark.extra_artifacts(
[
"K*",
"ans5/ans.run",
]
)
+pytestmark = [
+ isctest.mark.with_libxml2_or_json_c,
+ EXTRA_ARTIFACTS,
+]
+
def test_statschannel(run_tests_sh):
run_tests_sh()