[Erp5-report] r40123 luke - /erp5/trunk/buildout/tests/assertSoftware.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Nov 9 16:58:18 CET 2010


Author: luke
Date: Tue Nov  9 16:58:15 2010
New Revision: 40123

URL: http://svn.erp5.org?rev=40123&view=rev
Log:
 - check mysql client binary

Modified:
    erp5/trunk/buildout/tests/assertSoftware.py

Modified: erp5/trunk/buildout/tests/assertSoftware.py
URL: http://svn.erp5.org/erp5/trunk/buildout/tests/assertSoftware.py?rev=40123&r1=40122&r2=40123&view=diff
==============================================================================
--- erp5/trunk/buildout/tests/assertSoftware.py [utf8] (original)
+++ erp5/trunk/buildout/tests/assertSoftware.py [utf8] Tue Nov  9 16:58:15 2010
@@ -184,6 +184,19 @@ class AssertMysql50Tritonn(unittest.Test
     self.assertEqual(sorted(expected_rpath_list), elf_dict['rpath_list'])
     self.assertEqual(sorted(expected_rpath_list), elf_dict['runpath_list'])
 
+  def test_ld_mysql(self):
+    elf_dict = readElfAsDict('parts/mysql-tritonn-5.0/bin/mysql')
+    self.assertEqual(sorted(['libc', 'libcrypt', 'libcrypto', 'libgcc_s', 'libm',
+      'libmysqlclient', 'libncurses', 'libnsl', 'libreadline', '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'])
+
 class AssertMysql51(unittest.TestCase):
   def test_ld_mysqld(self):
     elf_dict = readElfAsDict('parts/mysql-5.1/libexec/mysqld')




More information about the Erp5-report mailing list