def testMakePackageNameBySonameCollectionMultipleSo(self): sonames = ["libfoo1.so", "libfoo1.so"] expected = ( ["CSWlibfoo1"], ["libfoo1"], ) self.assertEqual(expected, su.MakePackageNameBySonameCollection(sonames))
def testMakePackageNameBySonameCollectionBdb(self): sonames = ["libfoo.so.0", "libfoo_util.so.0"] expected = ( ["CSWlibfoo0"], ["libfoo0"], ) self.assertEqual(expected, su.MakePackageNameBySonameCollection(sonames))
def testMakePackageNameBySonameCollectionMultipleSoGlib2(self): sonames = [ "libgio-2.0.so.0", "libglib-2.0.so.0", "libgmodule-2.0.so.0", "libgobject-2.0.so.0", "libgthread-2.0.so.0", ] self.assertEqual(None, su.MakePackageNameBySonameCollection(sonames))
def testMakePackageNameBySonameCollectionNoCommonVersion(self): sonames = ["libfoo.so.0", "libfoo_util.so.1"] self.assertEqual(None, su.MakePackageNameBySonameCollection(sonames))