示例#1
0
 def test_concretize_with_provides_when(self):
     """Make sure insufficient versions of MPI are not in providers list when
     we ask for some advanced version.
     """
     repo = spack.repo.path
     assert not any(
         s.satisfies('mpich2@:1.0') for s in repo.providers_for('[email protected]'))
     assert not any(
         s.satisfies('mpich2@:1.1') for s in repo.providers_for('[email protected]'))
     assert not any(
         s.satisfies('mpich@:1') for s in repo.providers_for('mpi@2'))
     assert not any(
         s.satisfies('mpich@:1') for s in repo.providers_for('mpi@3'))
     assert not any(
         s.satisfies('mpich2') for s in repo.providers_for('mpi@3'))
示例#2
0
文件: concretize.py 项目: LLNL/spack
 def test_concretize_with_provides_when(self):
     """Make sure insufficient versions of MPI are not in providers list when
     we ask for some advanced version.
     """
     repo = spack.repo.path
     assert not any(
         s.satisfies('mpich2@:1.0') for s in repo.providers_for('[email protected]')
     )
     assert not any(
         s.satisfies('mpich2@:1.1') for s in repo.providers_for('[email protected]')
     )
     assert not any(
         s.satisfies('mpich@:1') for s in repo.providers_for('mpi@2')
     )
     assert not any(
         s.satisfies('mpich@:1') for s in repo.providers_for('mpi@3')
     )
     assert not any(
         s.satisfies('mpich2') for s in repo.providers_for('mpi@3')
     )