diff options
-rw-r--r-- | lib/spack/spack/test/package_class.py | 11 |
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') |