+++ /dev/null
-#!/bin/sh -e
-
-# 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.
-
-set -e
-
-. ../conf.sh
-
-if [ $ED25519_SUPPORTED = 0 ] && [ $ED448_SUPPORTED = 0 ]; then
- exit 1
-fi
import pytest
-pytestmark = pytest.mark.extra_artifacts(
+import isctest.mark
+
+EXTRA_ARTIFACTS = pytest.mark.extra_artifacts(
[
"dig.out.*",
"ns*/*.signed",
]
)
+pytestmark = [
+ isctest.mark.with_eddsa,
+ EXTRA_ARTIFACTS,
+]
+
def test_eddsa(run_tests_sh):
run_tests_sh()
return pytest.mark.skipif(os.getenv(key) != "1", reason=f"{name} is not supported")
+with_eddsa = pytest.mark.skipif(
+ os.getenv("ED25519_SUPPORTED") != "1" and os.getenv("ED448_SUPPORTED") != "1",
+ reason="EdDSA (ED25519 or ED448) is not supported",
+)
+
+
with_developer = pytest.mark.skipif(
os.getenv("FEATURE_DEVELOPER") != "1",
reason="developer mode disabled in the build",