Skip to contentSkip to conversation

Subject: [PATCH 1/3] [PATCH] [master] weston.py: added xwayland test

PATCH Süsens, Sebastian 2 participants 2 messages Jun 13, 2022

lore
Share & tools
lore
#0 lore raw

Test xwayland support if DISTRO_FEATURE X11 is enabled

Test checked if xserver listening on display

---
meta/lib/oeqa/runtime/cases/weston.py | 8 ++++++++

1 file changed, 8 insertions(+)
meta/lib/oeqa/runtime/cases/weston.py +0 -0
index b81cc299ef..1fd471e611 100644
@@ -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

#1 lore raw

Hello,

I'm sorry but none of the patches apply correctly and this is proving difficult to fix.

Could you resend using git send-email?

You have more information here:
https://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded

Quoted 31 lines · Sebastian via lists.openembedded.org

Test xwayland support if DISTRO_FEATURE X11 is enabled

Test checked if xserver listening on display

---
meta/lib/oeqa/runtime/cases/weston.py | 8 ++++++++

1 file changed, 8 insertions(+)
meta/lib/oeqa/runtime/cases/weston.py +8 -1
index b81cc299ef..1fd471e611 100644
@@ -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

Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com