From 2bfd1c8724f0bcea1bad9d6d92681ae34a5bbc45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com> Date: Tue, 23 Nov 2010 11:06:49 +0000 Subject: [PATCH] - start asserting python2.6 git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40532 20353a03-c40f-0410-a6d1-a30d3c3de9de --- buildout/tests/assertSoftware.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/buildout/tests/assertSoftware.py b/buildout/tests/assertSoftware.py index 056869e390..ad9242257f 100644 --- a/buildout/tests/assertSoftware.py +++ b/buildout/tests/assertSoftware.py @@ -1630,6 +1630,29 @@ class AssertCyrusSasl(AssertSoftwareMixin): ]] self.assertEqual(sorted(expected_rpath_list), elf_dict['runpath_list']) +class AssertPython26(AssertSoftwareMixin): + def test_ld_dyn_locale(self): + elf_dict = readElfAsDict('parts/python2.6/lib/python2.6/lib-dynload/_locale.so') + self.assertEqual(sorted([ + 'libc', + 'libintl', + 'libpthread', + ]), + 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 [ + 'bzip2', + 'gdbm', + 'gettext', + 'libdb', + 'ncurses', + 'openssl', + 'readline', + 'sqlite3', + 'zlib', + ]] + self.assertEqual(sorted(expected_rpath_list), elf_dict['runpath_list']) class AssertElfLinkedInternally(AssertSoftwareMixin): def test(self): -- 2.30.9