summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>2019-07-11 17:15:21 -0700
committerPeter Scheibel <scheibel1@llnl.gov>2019-07-11 17:15:21 -0700
commit05b6a5e53dc655b98fc5c300094764b7a3b6b470 (patch)
tree32de83a69cfb7addedc2c1561f2d0fb498de426a
parent14271331f9376b8f42d6a29a5b5b98d0f24f964d (diff)
downloadspack-05b6a5e53dc655b98fc5c300094764b7a3b6b470.tar.gz
spack-05b6a5e53dc655b98fc5c300094764b7a3b6b470.tar.bz2
spack-05b6a5e53dc655b98fc5c300094764b7a3b6b470.tar.xz
spack-05b6a5e53dc655b98fc5c300094764b7a3b6b470.zip
test: Extra possible-dependencies coverage check (#11988)
-rw-r--r--lib/spack/spack/test/package_class.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/spack/spack/test/package_class.py b/lib/spack/spack/test/package_class.py
index 7ae5c64ec7..9502be08c9 100644
--- a/lib/spack/spack/test/package_class.py
+++ b/lib/spack/spack/test/package_class.py
@@ -17,7 +17,7 @@ def test_possible_dependencies(mock_packages):
mpileaks = spack.repo.get('mpileaks')
mpi_names = [spec.name for spec in spack.repo.path.providers_for('mpi')]
- assert mpileaks.possible_dependencies() == {
+ assert mpileaks.possible_dependencies(expand_virtuals=True) == {
'callpath': set(['dyninst'] + mpi_names),
'dyninst': set(['libdwarf', 'libelf']),
'fake': set(),
@@ -30,6 +30,15 @@ def test_possible_dependencies(mock_packages):
'zmpi': set(['fake']),
}
+ assert mpileaks.possible_dependencies(expand_virtuals=False) == {
+ 'callpath': set(['dyninst']),
+ 'dyninst': set(['libdwarf', 'libelf']),
+ 'libdwarf': set(['libelf']),
+ 'libelf': set(),
+ 'mpi': set(),
+ 'mpileaks': set(['callpath']),
+ }
+
def test_possible_dependencies_with_deptypes(mock_packages):
dtbuild1 = spack.repo.get('dtbuild1')