From e0ae60edc4ee7dafc5ab99d756d9c63624c281d5 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Sun, 1 Nov 2020 20:42:14 +0100 Subject: Added unit tests to for regressions on open concretizer bugs --- .../variant-on-dependency-condition-a/package.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 var/spack/repos/builtin.mock/packages/variant-on-dependency-condition-a/package.py (limited to 'var/spack/repos/builtin.mock/packages/variant-on-dependency-condition-a/package.py') diff --git a/var/spack/repos/builtin.mock/packages/variant-on-dependency-condition-a/package.py b/var/spack/repos/builtin.mock/packages/variant-on-dependency-condition-a/package.py new file mode 100644 index 0000000000..f2687d6043 --- /dev/null +++ b/var/spack/repos/builtin.mock/packages/variant-on-dependency-condition-a/package.py @@ -0,0 +1,18 @@ +# Copyright 2013-2020 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) +class VariantOnDependencyConditionA(Package): + """Test that dependencies that are conditional on the state of + other dependencies are added correctly, for instance: + + depends_on('A') + depends_on('B', when='^A+x') + """ + + homepage = 'https://www.example.org' + url = 'https://example.org/files/v3.4/cmake-3.4.3.tar.gz' + + version('1.0', '4cb3ff35b2472aae70f542116d616e63') + + variant('x', default=True, description='?') -- cgit v1.2.3-60-g2f50