From patchwork Mon Jun 13 12:40:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?S=C3=BCsens=2C_Sebastian?= X-Patchwork-Id: 9134 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id EB16EC43334 for ; Mon, 13 Jun 2022 12:40:06 +0000 (UTC) Subject: Subject: [PATCH 1/3] [PATCH] [master] weston.py: added xwayland test To: openembedded-core@lists.openembedded.org From: =?utf-8?q?S=C3=BCsens=2C_Sebastian?= X-Originating-Location: Ahrensbok, Schleswig-Holstein, DE (84.140.242.110) X-Originating-Platform: Linux Chrome 101 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Mon, 13 Jun 2022 05:40:01 -0700 Message-ID: List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 13 Jun 2022 12:40:06 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/166839 Test xwayland support if DISTRO_FEATURE X11 is enabled Test checked if xserver listening on display Signed-off-by: ssuesens --- meta/lib/oeqa/runtime/cases/weston.py | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.25.1 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)