[OE-core] [PATCH 2/2] oeqa/runtime/multilib: change test case to use glib-2.0-utils

Ross Burton ross.burton at intel.com
Fri Aug 28 23:43:17 UTC 2015


Using connman-applet as a multilib test case seems quite heavy due to the
numerous dependencies it has, whereas the same test ("do binaries get swapped
correctly") can be done with a lower-level library containing binaries, for
example glib-2.0.

Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/lib/oeqa/runtime/multilib.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/meta/lib/oeqa/runtime/multilib.py b/meta/lib/oeqa/runtime/multilib.py
index e1bcc42..59ae86d 100644
--- a/meta/lib/oeqa/runtime/multilib.py
+++ b/meta/lib/oeqa/runtime/multilib.py
@@ -39,10 +39,10 @@ class MultilibTest(oeRuntimeTest):
 
     @testcase('279')
     @skipUnlessPassed('test_check_multilib_libc')
-    def test_file_connman(self):
-        self.assertTrue(oeRuntimeTest.hasPackage('lib32-connman-gnome'), msg="This test assumes lib32-connman-gnome is installed")
+    def test_file_glib(self):
+        self.assertTrue(oeRuntimeTest.hasPackage('lib32-libglib-2.0-utils'), msg="This test assumes lib32-libglib-2.0-utils is installed")
 
-        (status, output) = self.target.run("readelf -h /usr/bin/connman-applet")
-        self.assertEqual(status, 0, "Failed to readelf /usr/bin/connman-applet")
+        (status, output) = self.target.run("readelf -h /usr/bin/glib-genmarshal")
+        self.assertEqual(status, 0, "Failed to readelf /usr/bin/glib-genmarshal")
         theclass = self.parse(output)
-        self.assertEqual(theclass, "ELF32", msg="connman-applet isn't ELF32 (is %s)" % theclass)
+        self.assertEqual(theclass, "ELF32", msg="glib-genmarshal isn't ELF32 (is %s)" % theclass)
-- 
2.1.4




More information about the Openembedded-core mailing list