From 0df0b9a505d3731088a462c7fafadf6e162b1cc6 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Thu, 1 Sep 2022 08:21:12 +0200 Subject: Port package sanity unit tests to audits (#32405) --- var/spack/repos/builtin.mock/packages/mpileaks/package.py | 10 ++++++---- .../builtin.mock/packages/unconstrainable-conflict/package.py | 7 +++---- 2 files changed, 9 insertions(+), 8 deletions(-) (limited to 'var') diff --git a/var/spack/repos/builtin.mock/packages/mpileaks/package.py b/var/spack/repos/builtin.mock/packages/mpileaks/package.py index 2cb2e376a9..f720d82832 100644 --- a/var/spack/repos/builtin.mock/packages/mpileaks/package.py +++ b/var/spack/repos/builtin.mock/packages/mpileaks/package.py @@ -7,13 +7,15 @@ from spack.package import * class Mpileaks(Package): + """Mpileaks is a mock package that passes audits""" + homepage = "http://www.llnl.gov" url = "http://www.llnl.gov/mpileaks-1.0.tar.gz" - version(1.0, "0123456789abcdef0123456789abcdef") - version(2.1, "0123456789abcdef0123456789abcdef") - version(2.2, "0123456789abcdef0123456789abcdef") - version(2.3, "0123456789abcdef0123456789abcdef") + version("2.3", sha256="2e34cc4505556d1c1f085758e26f2f8eea0972db9382f051b2dcfb1d7d9e1825") + version("2.2", sha256="2e34cc4505556d1c1f085758e26f2f8eea0972db9382f051b2dcfb1d7d9e1825") + version("2.1", sha256="2e34cc4505556d1c1f085758e26f2f8eea0972db9382f051b2dcfb1d7d9e1825") + version("1.0", sha256="2e34cc4505556d1c1f085758e26f2f8eea0972db9382f051b2dcfb1d7d9e1825") variant("debug", default=False, description="Debug variant") variant("opt", default=False, description="Optimized variant") diff --git a/var/spack/repos/builtin.mock/packages/unconstrainable-conflict/package.py b/var/spack/repos/builtin.mock/packages/unconstrainable-conflict/package.py index 8e17c75868..661bcf15e1 100644 --- a/var/spack/repos/builtin.mock/packages/unconstrainable-conflict/package.py +++ b/var/spack/repos/builtin.mock/packages/unconstrainable-conflict/package.py @@ -2,17 +2,16 @@ # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) - from spack.package import * class UnconstrainableConflict(Package): """Package with a conflict whose trigger cannot constrain its constraint.""" - homepage = "http://www.example.com" - url = "http://www.example.com/unconstrainable-conflict-1.0.tar.gz" + homepage = "http://www.realurl.com" + url = "http://www.realurl.com/unconstrainable-conflict-1.0.tar.gz" - version("1.0", "0123456789abcdef0123456789abcdef") + version("1.0", sha256="2e34cc4505556d1c1f085758e26f2f8eea0972db9382f051b2dcfb1d7d9e1825") # Two conflicts so there's always one that is not the current platform conflicts("target=x86_64", when="platform=darwin") -- cgit v1.2.3-70-g09d2