[Erp5-report] r40504 luke - /erp5/trunk/buildout/tests/assertSoftware.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Nov 22 18:18:17 CET 2010
Author: luke
Date: Mon Nov 22 18:18:17 2010
New Revision: 40504
URL: http://svn.erp5.org?rev=40504&view=rev
Log:
- check that sasl is correctly linked
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=40504&r1=40503&r2=40504&view=diff
==============================================================================
--- erp5/trunk/buildout/tests/assertSoftware.py [utf8] (original)
+++ erp5/trunk/buildout/tests/assertSoftware.py [utf8] Mon Nov 22 18:18:17 2010
@@ -1534,6 +1534,92 @@ class AssertCyrusSasl(AssertSoftwareMixi
]]
self.assertEqual(sorted(expected_rpath_list), elf_dict['runpath_list'])
+ def test_ld_sasl2_libanonymous(self):
+ elf_dict = readElfAsDict('parts/cyrus-sasl/lib/sasl2/libanonymous.so')
+ self.assertEqual(sorted([
+ 'libc',
+ 'libresolv',
+ ]),
+ 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 [
+ ]]
+ self.assertEqual(sorted(expected_rpath_list), elf_dict['runpath_list'])
+
+ def test_ld_sasl2_libcrammd5(self):
+ elf_dict = readElfAsDict('parts/cyrus-sasl/lib/sasl2/libcrammd5.so')
+ self.assertEqual(sorted([
+ 'libc',
+ 'libresolv',
+ ]),
+ 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 [
+ ]]
+ self.assertEqual(sorted(expected_rpath_list), elf_dict['runpath_list'])
+
+ def test_ld_sasl2_libdigestmd5(self):
+ elf_dict = readElfAsDict('parts/cyrus-sasl/lib/sasl2/libdigestmd5.so')
+ self.assertEqual(sorted([
+ 'libc',
+ 'libcrypto',
+ 'libresolv',
+ ]),
+ 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 [
+ 'openssl',
+ ]]
+ self.assertEqual(sorted(expected_rpath_list), elf_dict['runpath_list'])
+
+ def test_ld_sasl2_libotp(self):
+ elf_dict = readElfAsDict('parts/cyrus-sasl/lib/sasl2/libotp.so')
+ self.assertEqual(sorted([
+ 'libc',
+ 'libcrypto',
+ 'libresolv',
+ ]),
+ 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 [
+ 'openssl',
+ ]]
+ self.assertEqual(sorted(expected_rpath_list), elf_dict['runpath_list'])
+
+ def test_ld_sasl2_libplain(self):
+ elf_dict = readElfAsDict('parts/cyrus-sasl/lib/sasl2/libplain.so')
+ self.assertEqual(sorted([
+ 'libc',
+ 'libcrypt',
+ 'libresolv',
+ ]),
+ 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 [
+ ]]
+ self.assertEqual(sorted(expected_rpath_list), elf_dict['runpath_list'])
+
+ def test_ld_sasl2_libsasldb(self):
+ elf_dict = readElfAsDict('parts/cyrus-sasl/lib/sasl2/libsasldb.so')
+ self.assertEqual(sorted([
+ 'libc',
+ 'libdb-4.5',
+ 'libresolv',
+ ]),
+ 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 [
+ 'libdb',
+ ]]
+ 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