diff options
author | ssuesens <sebastian.suesens@baslerweb.com> | 2022-06-14 08:27:05 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-06-15 12:26:45 +0100 |
commit | c8dea13bd65f1695c79eba26b092d411a1699b19 (patch) | |
tree | 2f7356f38f9618eafafc77be1060eeff15edb0d8 /meta/lib | |
parent | 1ed9267a318d53a302991a8ec7259d3bb809eaaa (diff) | |
download | openembedded-core-contrib-c8dea13bd65f1695c79eba26b092d411a1699b19.tar.gz |
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 <sebastian.suesens@baslerweb.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/runtime/cases/weston.py | 8 |
1 files changed, 8 insertions, 0 deletions
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) |