Ejemplo n.º 1
0
 def test_src_file(self):
     expected = file_types.WholeArchive(
         file_types.StaticLibrary(Path('static', Root.srcdir),
                                  self.env.target_platform.object_format,
                                  'c'))
     self.assertSameFile(link.whole_archive(self.builtin_dict, 'static'),
                         expected)
Ejemplo n.º 2
0
 def test_src_file(self):
     result = link.whole_archive(self.builtin_dict, 'static')
     self.assertEqual(
         result,
         file_types.WholeArchive(
             file_types.StaticLibrary(Path('static', Root.srcdir), None)))