diff --git a/buildout/tests/assertSoftware.py b/buildout/tests/assertSoftware.py index cc6a1f0f067e009b9c53cbeb823d9680b4bd3d5b..4b941aed9ece7a899394b7ac3aade1dd2286649e 100644 --- a/buildout/tests/assertSoftware.py +++ b/buildout/tests/assertSoftware.py @@ -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 = {}