Commit 73ea5162 authored by Łukasz Nowak's avatar Łukasz Nowak

- check properly built mysql tritonn


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40108 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4058db70
...@@ -203,11 +203,29 @@ class AssertSoftwareRunable(unittest.TestCase): ...@@ -203,11 +203,29 @@ class AssertSoftwareRunable(unittest.TestCase):
self.assertTrue(stdout.startswith('w3m version w3m/0.5.2')) self.assertTrue(stdout.startswith('w3m version w3m/0.5.2'))
class AssertMysql50Tritonn(unittest.TestCase): class AssertMysql50Tritonn(unittest.TestCase):
def test_tritonn_senna(self): def test_ld_mysqld(self):
"""Senna as an library""" """libexec/mysqld linking"""
result = os.system("ldd parts/mysql-tritonn-5.0/libexec/mysqld | grep -q " elf_dict = readElfAsDict('parts/mysql-tritonn-5.0/libexec/mysqld')
"'parts/senna/lib/libsenna.so.0'") self.assertEqual(sorted(['libc', 'libcrypt', 'libcrypto', 'libdl',
self.assertEqual(result, 0) 'libgcc_s', 'libm', 'libnsl', 'libpthread', 'librt', 'libsenna',
'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', 'senna', 'openssl']]
self.assertEqual(sorted(expected_rpath_list), elf_dict['rpath_list'])
self.assertEqual(sorted(expected_rpath_list), elf_dict['runpath_list'])
def test_ld_mysqlmanager(self):
"""libexec/mysqlmanager"""
elf_dict = readElfAsDict('parts/mysql-tritonn-5.0/libexec/mysqlmanager')
self.assertEqual(sorted(['libc', 'libcrypt', 'libcrypto', 'libgcc_s',
'libm', 'libnsl', 'libpthread', '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', 'openssl']]
self.assertEqual(sorted(expected_rpath_list), elf_dict['rpath_list'])
self.assertEqual(sorted(expected_rpath_list), elf_dict['runpath_list'])
class AssertMemcached(unittest.TestCase): class AssertMemcached(unittest.TestCase):
"""Tests for built memcached""" """Tests for built memcached"""
......
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