def test_arch_many(self): dep_map = { 'abc': ['wd/def.o', 'wd/ghi.a'], 'def': ['wd/def.o', 'wd/jkl.a'] } deps = ['abc', 'def', 'def.o'] self.assertEqual({'wd/def.o', 'wd/ghi.a', 'wd/jkl.a'}, library_deps(deps, 'wd', self.mkquery(dep_map)))
def test_arch_many(self): dep_map = {'abc': ['wd/def.o', 'wd/ghi.a'], 'def': ['wd/def.o', 'wd/jkl.a']} deps = ['abc', 'def', 'def.o'] self.assertEqual({'wd/def.o', 'wd/ghi.a', 'wd/jkl.a'}, library_deps(deps, 'wd', self.mkquery(dep_map)))
def test_nonarch(self): deps = ['abc.a', 'def.o', 'abc.a'] self.assertEqual({'wd/abc.a', 'wd/def.o'}, library_deps(deps, 'wd', self.mkquery({})))
def test_empty(self): self.assertEqual(set(), library_deps([], 'wd', self.mkquery({})))