summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2020-11-26 08:55:17 +0100
committerTamara Dahlgren <dahlgren1@llnl.gov>2021-02-17 17:07:16 -0800
commit0ae49821e2e1ccb6fd179b1b020e263c1d9db8f2 (patch)
tree0fe82d180567d7e0f3217d15c7ab9a2bb3c4f6e9 /var
parent8e1b5f734f816fbe2ef52b653cc3e0df38142ef8 (diff)
downloadspack-0ae49821e2e1ccb6fd179b1b020e263c1d9db8f2.tar.gz
spack-0ae49821e2e1ccb6fd179b1b020e263c1d9db8f2.tar.bz2
spack-0ae49821e2e1ccb6fd179b1b020e263c1d9db8f2.tar.xz
spack-0ae49821e2e1ccb6fd179b1b020e263c1d9db8f2.zip
concretizer: allow a bool to be passed as argument for tests dependencies (#20082)
refers #20079 Added docstrings to 'concretize' and 'concretized' to document the format for tests. Added tests for the activation of test dependencies.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin.mock/packages/a/package.py1
-rw-r--r--var/spack/repos/builtin.mock/packages/b/package.py2
-rw-r--r--var/spack/repos/builtin.mock/packages/test-dependency/package.py12
3 files changed, 15 insertions, 0 deletions
diff --git a/var/spack/repos/builtin.mock/packages/a/package.py b/var/spack/repos/builtin.mock/packages/a/package.py
index 04e69dcd91..a603940b8b 100644
--- a/var/spack/repos/builtin.mock/packages/a/package.py
+++ b/var/spack/repos/builtin.mock/packages/a/package.py
@@ -31,6 +31,7 @@ class A(AutotoolsPackage):
variant('bvv', default=True, description='The good old BV variant')
depends_on('b', when='foobar=bar')
+ depends_on('test-dependency', type='test')
parallel = False
diff --git a/var/spack/repos/builtin.mock/packages/b/package.py b/var/spack/repos/builtin.mock/packages/b/package.py
index 0dd6556e82..8cf5674219 100644
--- a/var/spack/repos/builtin.mock/packages/b/package.py
+++ b/var/spack/repos/builtin.mock/packages/b/package.py
@@ -13,3 +13,5 @@ class B(Package):
url = "http://www.example.com/b-1.0.tar.gz"
version('1.0', '0123456789abcdef0123456789abcdef')
+
+ depends_on('test-dependency', type='test')
diff --git a/var/spack/repos/builtin.mock/packages/test-dependency/package.py b/var/spack/repos/builtin.mock/packages/test-dependency/package.py
new file mode 100644
index 0000000000..70302debd8
--- /dev/null
+++ b/var/spack/repos/builtin.mock/packages/test-dependency/package.py
@@ -0,0 +1,12 @@
+# 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 TestDependency(Package):
+ """Represent a dependency that is pulled-in to allow testing other
+ packages.
+ """
+ homepage = "http://www.example.com"
+ url = "http://www.example.com/tdep-1.0.tar.gz"
+
+ version('1.0', '0123456789abcdef0123456789abcdef')