Test xwayland support if DISTRO_FEATURE X11 is enabled

Test checked if xserver listening on display

Signed-off-by: ssuesens <sebastian.sues...@baslerweb.com>
---
meta/lib/oeqa/runtime/cases/weston.py | 8 ++++++++
1 file changed, 8 insertions(+)

diff --git a/meta/lib/oeqa/runtime/cases/weston.py 
b/meta/lib/oeqa/runtime/cases/weston.py
index b81cc299ef..1fd471e611 100644
--- a/meta/lib/oeqa/runtime/cases/weston.py
+++ b/meta/lib/oeqa/runtime/cases/weston.py
@@ -77,3 +77,11 @@ class WestonTest(OERuntimeTestCase):
self.target.run('kill -9 %s' % w)
__, weston_log = self.target.run('cat %s' % self.weston_log_file)
self.assertTrue(new_wl_processes, msg='Could not get new weston-desktop-shell 
processes (%s, try_cnt:%s) weston log: %s' % (new_wl_processes, try_cnt, 
weston_log))
+
+    @skipIfNotFeature('x11', 'Test requires x11 to be in DISTRO_FEATURES')
+    @OEHasPackage(['weston'])
+    def test_weston_supports_xwayland(self):
+        cmd ='cat %s | grep "xserver listening on display"' % 
self.weston_log_file
+        status, output = self.target.run(cmd)
+        msg = ('xwayland does not appear to be running')
+        self.assertEqual(status, 0, msg=msg)
--
2.25.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#166839): 
https://lists.openembedded.org/g/openembedded-core/message/166839
Mute This Topic: https://lists.openembedded.org/mt/91725332/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

  • [OE-core] Subject: [PAT... Süsens , Sebastian via lists . openembedded . org

Reply via email to