[Erp5-report] r40547 luke - /erp5/trunk/buildout/tests/assertSoftware.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Nov 23 16:29:22 CET 2010
Author: luke
Date: Tue Nov 23 16:29:20 2010
New Revision: 40547
URL: http://svn.erp5.org?rev=40547&view=rev
Log:
- check that neonconfig, which is used to compile other software, is not
returning garbaged values
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=40547&r1=40546&r2=40547&view=diff
==============================================================================
--- erp5/trunk/buildout/tests/assertSoftware.py [utf8] (original)
+++ erp5/trunk/buildout/tests/assertSoftware.py [utf8] Tue Nov 23 16:29:20 2010
@@ -892,6 +892,39 @@ class AssertNeon(AssertSoftwareMixin):
]]
self.assertEqual(sorted(expected_rpath_list), elf_dict['runpath_list'])
+ def test_neonconfig(self):
+ popen = subprocess.Popen([os.path.join('parts', 'neon', 'bin', 'neon-config'),
+ '--libs'],
+ stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
+ result = popen.communicate()[0]
+ self.assertEqual(0, popen.returncode, result)
+ result_left = []
+ for l in result.split():
+ # let's remove acceptable parameters
+ if l in (
+ '-Wl,-rpath',
+ '-lcrypto',
+ '-ldl',
+ '-lm',
+ '-lneon',
+ '-lpthread',
+ '-lssl',
+ '-lxml2',
+ '-lz',
+ ):
+ continue
+ if 'parts/neon/lib' in l:
+ continue
+ if 'parts/zlib/lib' in l:
+ continue
+ if 'parts/libxml2/lib' in l:
+ continue
+ if 'parts/openssl/lib' in l:
+ continue
+ result_left.append(l)
+ # whatever left is wrong
+ self.assertEqual([], result_left)
+
class AssertPythonMysql(AssertSoftwareMixin):
def test_ld_mysqlso(self):
for d in os.listdir('develop-eggs'):
More information about the Erp5-report
mailing list