Commit 6dbac2c3 authored by Łukasz Nowak's avatar Łukasz Nowak

- check that sasl is correctly linked


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40504 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6be3423c
......@@ -1534,6 +1534,92 @@ class AssertCyrusSasl(AssertSoftwareMixin):
]]
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 = {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment