From 718315c4ce95bd2be39ef5697611e96758346c82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com> Date: Tue, 9 Nov 2010 16:08:18 +0000 Subject: [PATCH] - check the most critical libraries git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40126 20353a03-c40f-0410-a6d1-a30d3c3de9de --- buildout/tests/assertSoftware.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/buildout/tests/assertSoftware.py b/buildout/tests/assertSoftware.py index 078e1aad70..64eec47e56 100644 --- a/buildout/tests/assertSoftware.py +++ b/buildout/tests/assertSoftware.py @@ -197,6 +197,30 @@ class AssertMysql50Tritonn(unittest.TestCase): self.assertEqual(sorted(expected_rpath_list), elf_dict['rpath_list']) self.assertEqual(sorted(expected_rpath_list), elf_dict['runpath_list']) + def test_ld_mysqladmin(self): + elf_dict = readElfAsDict('parts/mysql-tritonn-5.0/bin/mysqladmin') + self.assertEqual(sorted(['libc', 'libcrypt', 'libcrypto', 'libgcc_s', 'libm', + 'libmysqlclient', 'libnsl', 'libssl', 'libstdc++', '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 ['ncurses', 'zlib', 'readline', 'openssl']] + expected_rpath_list.append(os.path.join(os.path.abspath(os.curdir), + 'parts', 'mysql-tritonn-5.0', 'lib', 'mysql')) + self.assertEqual(sorted(expected_rpath_list), elf_dict['rpath_list']) + self.assertEqual(sorted(expected_rpath_list), elf_dict['runpath_list']) + + def test_ld_mysqldump(self): + elf_dict = readElfAsDict('parts/mysql-tritonn-5.0/bin/mysqldump') + self.assertEqual(sorted(['libc', 'libcrypt', 'libcrypto', 'libm', + 'libmysqlclient', 'libnsl', 'libssl', '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 ['ncurses', 'zlib', 'readline', 'openssl']] + expected_rpath_list.append(os.path.join(os.path.abspath(os.curdir), + 'parts', 'mysql-tritonn-5.0', 'lib', 'mysql')) + self.assertEqual(sorted(expected_rpath_list), elf_dict['rpath_list']) + self.assertEqual(sorted(expected_rpath_list), elf_dict['runpath_list']) + class AssertMysql51(unittest.TestCase): def test_ld_mysqld(self): elf_dict = readElfAsDict('parts/mysql-5.1/libexec/mysqld') -- 2.30.9