[csw-devel] SF.net SVN: gar:[11223] csw/mgar/gar/v2/lib/python/sharedlib_utils_test.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Sun Oct 10 22:37:57 CEST 2010
Revision: 11223
http://gar.svn.sourceforge.net/gar/?rev=11223&view=rev
Author: wahwah
Date: 2010-10-10 20:37:57 +0000 (Sun, 10 Oct 2010)
Log Message:
-----------
mGAR v2: checkpkg, small changes in unit tests.
Modified Paths:
--------------
csw/mgar/gar/v2/lib/python/sharedlib_utils_test.py
Modified: csw/mgar/gar/v2/lib/python/sharedlib_utils_test.py
===================================================================
--- csw/mgar/gar/v2/lib/python/sharedlib_utils_test.py 2010-10-10 20:37:31 UTC (rev 11222)
+++ csw/mgar/gar/v2/lib/python/sharedlib_utils_test.py 2010-10-10 20:37:57 UTC (rev 11223)
@@ -1,6 +1,18 @@
#!/usr/bin/env python2.6
# $Id$
+"""Tests for the shared library utilities.
+
+TODO: Implement infering library names in context, for example:
+
+opt/csw/lib/libboinc.so.6.7.4
+opt/csw/lib/libboinc_api.so.6.7.4
+opt/csw/lib/libboinc_graphics2.so.6.7.4
+opt/csw/lib/libboinc_zip.so.6.7.4
+"""
+
+__author__ = "Maciej Blizinski <maciej at opencsw.org>"
+
import re
import unittest
import mox
@@ -52,6 +64,9 @@
"opt/csw/share/Adobe/Reader8/Reader/sparcsolaris/lib"
"/libcrypto.so.0.9.6"))
+
+class MakePackageNameBySonameUnitTest(unittest.TestCase):
+
def testMakePackageNameBySonameSimple(self):
soname = "libfoo.so.0"
expected = (
@@ -131,6 +146,9 @@
self.assertEqual(expected,
su.MakePackageNameBySoname(soname))
+
+class MakePackageNameBySonameUnitTest(unittest.TestCase):
+
def testSanitizeWithChar(self):
self.assertEqual("foo_0", su.SanitizeWithChar("foo-0", "_"))
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list