summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2015-08-29 00:39:55 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-30 12:36:14 +0100
commitac0b85d714c3addd21eb885d97086f5c182da93e (patch)
treebf92136a8c617992e7164d7639787510e8193408 /meta/lib
parent277571bbd0a7864e996fad5acd3a10d31c84fdbd (diff)
downloadpoky-ac0b85d714c3addd21eb885d97086f5c182da93e.tar.gz
oeqa/runtime/multilib: add test for libc
Add a basic test to verify that /lib/libc.so.6 and /lib32/libc.so.6 have the right ELF class. (From OE-Core rev: 51e9f90b3b61e34603bc02bf4cfcbd0243686798) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/runtime/multilib.py19
1 files changed, 18 insertions, 1 deletions
diff --git a/meta/lib/oeqa/runtime/multilib.py b/meta/lib/oeqa/runtime/multilib.py
index 1c1729b84d..e1bcc428fc 100644
--- a/meta/lib/oeqa/runtime/multilib.py
+++ b/meta/lib/oeqa/runtime/multilib.py
@@ -20,8 +20,25 @@ class MultilibTest(oeRuntimeTest):
20 else: 20 else:
21 self.fail("Cannot parse readelf output\n" + s) 21 self.fail("Cannot parse readelf output\n" + s)
22 22
23 @testcase('279')
24 @skipUnlessPassed('test_ssh') 23 @skipUnlessPassed('test_ssh')
24 def test_check_multilib_libc(self):
25 """
26 Check that a multilib image has both 32-bit and 64-bit libc in.
27 """
28
29 (status, output) = self.target.run("readelf -h /lib/libc.so.6")
30 self.assertEqual(status, 0, "Failed to readelf /lib/libc.so.6")
31 class32 = self.parse(output)
32
33 (status, output) = self.target.run("readelf -h /lib64/libc.so.6")
34 self.assertEqual(status, 0, "Failed to readelf /lib64/libc.so.6")
35 class64 = self.parse(output)
36
37 self.assertEqual(class32, "ELF32", msg="/lib/libc.so.6 isn't ELF32 (is %s)" % class32)
38 self.assertEqual(class64, "ELF64", msg="/lib64/libc.so.6 isn't ELF64 (is %s)" % class64)
39
40 @testcase('279')
41 @skipUnlessPassed('test_check_multilib_libc')
25 def test_file_connman(self): 42 def test_file_connman(self):
26 self.assertTrue(oeRuntimeTest.hasPackage('lib32-connman-gnome'), msg="This test assumes lib32-connman-gnome is installed") 43 self.assertTrue(oeRuntimeTest.hasPackage('lib32-connman-gnome'), msg="This test assumes lib32-connman-gnome is installed")
27 44