示例#1
0
 def testMakePackageNameBySonameCollectionMultipleSo(self):
   sonames = ["libfoo1.so", "libfoo1.so"]
   expected = (
       ["CSWlibfoo1"],
       ["libfoo1"],
   )
   self.assertEqual(expected, su.MakePackageNameBySonameCollection(sonames))
示例#2
0
 def testMakePackageNameBySonameCollectionBdb(self):
   sonames = ["libfoo.so.0", "libfoo_util.so.0"]
   expected = (
       ["CSWlibfoo0"],
       ["libfoo0"],
   )
   self.assertEqual(expected, su.MakePackageNameBySonameCollection(sonames))
示例#3
0
 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))
示例#4
0
 def testMakePackageNameBySonameCollectionNoCommonVersion(self):
   sonames = ["libfoo.so.0", "libfoo_util.so.1"]
   self.assertEqual(None, su.MakePackageNameBySonameCollection(sonames))