From: ssuesens Date: Tue, 14 Jun 2022 06:27:05 +0000 (+0200) Subject: weston.py: added xwayland test X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~3870 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c8dea13bd65f1695c79eba26b092d411a1699b19;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git weston.py: added xwayland test Test xwayland support if DISTRO_FEATURE X11 is enabled Test checked if xserver listening on display Signed-off-by: ssuesens Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oeqa/runtime/cases/weston.py b/meta/lib/oeqa/runtime/cases/weston.py index b81cc299ef5..1fd471e611a 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)