[Erp5-report] r40594 kazuhiko - /erp5/trunk/buildout/tests/assertSoftware.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Nov 24 14:16:09 CET 2010


Author: kazuhiko
Date: Wed Nov 24 14:16:09 2010
New Revision: 40594

URL: http://svn.erp5.org?rev=40594&view=rev
Log:
add assertions for libxslt and w3m.

Modified:
    erp5/trunk/buildout/tests/assertSoftware.py

Modified: erp5/trunk/buildout/tests/assertSoftware.py
URL: http://svn.erp5.org/erp5/trunk/buildout/tests/assertSoftware.py?rev=40594&r1=40593&r2=40594&view=diff
==============================================================================
--- erp5/trunk/buildout/tests/assertSoftware.py [utf8] (original)
+++ erp5/trunk/buildout/tests/assertSoftware.py [utf8] Wed Nov 24 14:16:09 2010
@@ -1777,6 +1777,53 @@ class AssertGettext(AssertSoftwareMixin)
           ]]
     self.assertEqual(sorted(expected_rpath_list), elf_dict['runpath_list'])
 
+class AssertLibxslt(AssertSoftwareMixin):
+  def test_ld_libintl(self):
+    elf_dict = readElfAsDict('parts/libxslt/bin/xsltproc')
+    self.assertEqual(sorted([
+      'libc',
+      'libdl',
+      'libexslt',
+      'libm',
+      'libxml2',
+      'libxslt',
+      'libz',
+      ]),
+        elf_dict['library_list'])
+    soft_dir = os.path.join(os.path.abspath(os.curdir), 'parts')
+    expected_rpath_list = [os.path.join(soft_dir, software, 'lib') for
+        software in [
+          'libxml2',
+          'libxslt',
+          'zlib',
+          ]]
+    self.assertEqual(sorted(expected_rpath_list), elf_dict['runpath_list'])
+
+class AssertW3m(AssertSoftwareMixin):
+  def test_ld_libintl(self):
+    elf_dict = readElfAsDict('parts/w3m/bin/w3m')
+    self.assertEqual(sorted([
+      'libc',
+      'libdl',
+      'libcrypto',
+      'libgc',
+      'libm',
+      'libncurses',
+      'libnsl',
+      'libpthread',
+      'libssl',
+      ]),
+        elf_dict['library_list'])
+    soft_dir = os.path.join(os.path.abspath(os.curdir), 'parts')
+    expected_rpath_list = [os.path.join(soft_dir, software, 'lib') for
+        software in [
+          'garbage-collector',
+          'ncurses',
+          'openssl',
+          'zlib',
+          ]]
+    self.assertEqual(sorted(expected_rpath_list), elf_dict['runpath_list'])
+
 class AssertElfLinkedInternally(AssertSoftwareMixin):
   def test(self):
     result_dict = {}




More information about the Erp5-report mailing list