예제 #1
0
 def test_get_compiler_duplicates(self):
     # In this case there is only one instance of the specified compiler in
     # the test configuration (so it is not actually a duplicate), but the
     # method behaves the same.
     cfg_file_to_duplicates = compilers.get_compiler_duplicates(
         '[email protected]', spack.spec.ArchSpec('cray-CNL-xeon'))
     assert len(cfg_file_to_duplicates) == 1
     cfg_file, duplicates = next(iteritems(cfg_file_to_duplicates))
     assert len(duplicates) == 1
예제 #2
0
 def test_get_compiler_duplicates(self):
     # In this case there is only one instance of the specified compiler in
     # the test configuration (so it is not actually a duplicate), but the
     # method behaves the same.
     cfg_file_to_duplicates = compilers.get_compiler_duplicates(
         '[email protected]', spack.spec.ArchSpec('cray-CNL-xeon'))
     assert len(cfg_file_to_duplicates) == 1
     cfg_file, duplicates = next(iteritems(cfg_file_to_duplicates))
     assert len(duplicates) == 1