Пример #1
0
 def testMakePackageNameBySonameSimple(self):
   soname = "libfoo.so.0"
   expected = (
       ["CSWlibfoo0"],
       ["libfoo0"],
   )
   self.assertEqual(expected, su.MakePackageNameBySoname(soname))
Пример #2
0
 def testMakePackageNameBySonameMinorVersion(self):
   soname = "libfoo.so.0.1"
   expected = (
       ["CSWlibfoo0-1"],
       ["libfoo0_1"],
   )
   self.assertEqual(expected, su.MakePackageNameBySoname(soname))
Пример #3
0
 def testMakePackageNameBySonameDot(self):
   soname = "libbabl-0.1.so.0"
   expected = (
       ['CSWlibbabl0-1-0'],
       ['libbabl0_1_0']
   )
   self.assertEqual(expected,
                    su.MakePackageNameBySoname(soname))
Пример #4
0
 def testMakePackageNameBySonameApr(self):
   soname = "libapr-1.so.0"
   expected = (
       ['CSWlibapr1-0'],
       ['libapr1_0']
   )
   self.assertEqual(expected,
                    su.MakePackageNameBySoname(soname))
Пример #5
0
 def testMakePackageNameDashesNoDashesPython(self):
   soname = "libpython3.1.so.1.0"
   expected = (
      ['CSWlibpython3-1-1-0'],
      ['libpython3_1_1_0'],
   )
   self.assertEqual(expected,
                    su.MakePackageNameBySoname(soname))
Пример #6
0
 def testMakePackageNameBySonameComplexApr(self):
   soname = "libapr-1.so.10.0.0"
   expected = (
      ['CSWlibapr1-10-0-0'],
      ['libapr1_10_0_0']
   )
   self.assertEqual(expected,
                    su.MakePackageNameBySoname(soname))
Пример #7
0
 def testMakePackageNameDashesNoDashes(self):
   soname = "libpyglib-2.0-python.so.0"
   expected = (
      ['CSWlibpyglib2-0python0'],
      ['libpyglib2_0python0'],
   )
   self.assertEqual(expected,
                    su.MakePackageNameBySoname(soname))
Пример #8
0
 def testMakePackageNameUppercase(self):
   soname = "libUpperCase.so.1"
   expected = (
      ['CSWlibuppercase1'],
      ['libuppercase1']
   )
   self.assertEqual(expected,
                    su.MakePackageNameBySoname(soname))
Пример #9
0
 def testMakePackageNameBySonameNoVersion(self):
   soname = "libdnet.1"
   expected = (
      ['CSWlibdnet1'],
      ['libdnet1']
   )
   self.assertEqual(expected,
                    su.MakePackageNameBySoname(soname))
Пример #10
0
 def testMakePackageNameBySonamePlus(self):
   soname = "libstdc++.so.6"
   expected = (
      ['CSWlibstdc++6'],
      ['libstdc++6']
   )
   self.assertEqual(expected,
                    su.MakePackageNameBySoname(soname))
Пример #11
0
 def testMakePackageNameBySonameMoreDot(self):
   soname = "libgettextlib-0.14.1.so"
   expected = (
       ['CSWlibgettextlib0-14-1'],
       ['libgettextlib0_14_1'],
   )
   self.assertEqual(expected,
                    su.MakePackageNameBySoname(soname))