diff --git a/lib/spack/spack/test/audit.py b/lib/spack/spack/test/audit.py index 18994fa88be..35029ab9449 100644 --- a/lib/spack/spack/test/audit.py +++ b/lib/spack/spack/test/audit.py @@ -114,7 +114,7 @@ def test_package_audits(packages, expected_errors, mock_packages): ), ], ) -def test_config_audits(config_section, data, failing_check): +def test_config_audits(config_section, data, failing_check, mock_packages): with spack.config.override(config_section, data): reports = spack.audit.run_group("configs") assert any((check == failing_check) and errors for check, errors in reports) diff --git a/var/spack/repos/builtin.mock/packages/openssl/package.py b/var/spack/repos/builtin.mock/packages/openssl/package.py new file mode 100644 index 00000000000..509b93d7feb --- /dev/null +++ b/var/spack/repos/builtin.mock/packages/openssl/package.py @@ -0,0 +1,15 @@ +# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack.package import * + + +class Openssl(Package): + version("3.4.0") + + #variant("internal-hwloc", default=False) + #variant("fabrics", values=any_combination_of("psm", "mxm")) + + #depends_on("hwloc", when="~internal-hwloc")