Openembedded Core Discussions
 help / color / mirror / Atom feed
* Subject: [PATCH 1/3] [PATCH] [master] weston.py: added xwayland test
@ 2022-06-13 12:40 Süsens, Sebastian
  2022-06-13 20:40 ` [OE-core] " Alexandre Belloni
  0 siblings, 1 reply; 2+ messages in thread
From: Süsens, Sebastian @ 2022-06-13 12:40 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 1232 bytes --]

Test xwayland support if DISTRO_FEATURE X11 is enabled

Test checked if xserver listening on display

Signed-off-by: ssuesens <sebastian.suesens@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

[-- Attachment #2: Type: text/html, Size: 1823 bytes --]

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [OE-core] Subject: [PATCH 1/3] [PATCH] [master] weston.py: added xwayland test
  2022-06-13 12:40 Subject: [PATCH 1/3] [PATCH] [master] weston.py: added xwayland test Süsens, Sebastian
@ 2022-06-13 20:40 ` Alexandre Belloni
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Belloni @ 2022-06-13 20:40 UTC (permalink / raw)
  To: Sebastian.Suesens; +Cc: openembedded-core

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

On 13/06/2022 05:40:01-0700, Süsens, Sebastian via lists.openembedded.org wrote:
> Test xwayland support if DISTRO_FEATURE X11 is enabled
> 
> Test checked if xserver listening on display
> 
> Signed-off-by: ssuesens <sebastian.suesens@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

> 
> 
> 


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-13 20:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-13 12:40 Subject: [PATCH 1/3] [PATCH] [master] weston.py: added xwayland test Süsens, Sebastian
2022-06-13 20:40 ` [OE-core] " Alexandre Belloni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox