Port package sanity unit tests to audits (#32405)

This commit is contained in:
Massimiliano Culpo
2022-09-01 08:21:12 +02:00
committed by GitHub
parent c4647a9c1f
commit 0df0b9a505
6 changed files with 222 additions and 318 deletions

View File

@@ -7,13 +7,15 @@
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")

View File

@@ -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")