Skip to content

Commit

Permalink
test: Extra possible-dependencies coverage check (spack#11988)
Browse files Browse the repository at this point in the history
  • Loading branch information
tldahlgren authored and scheibelp committed Jul 12, 2019
1 parent 1427133 commit 05b6a5e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/spack/spack/test/package_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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')
Expand Down

0 comments on commit 05b6a5e

Please sign in to comment.