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:27:01 +0100 |
| commit | b4206958f5a26f55ee82f590e6e276c439778e62 (patch) | |
| tree | 8793dc23e8350423fb26a3e702340f439559c45f | |
| parent | c4b793fd883784a8025b1f71eb5600f0151963cf (diff) | |
| download | poky-b4206958f5a26f55ee82f590e6e276c439778e62.tar.gz | |
weston.py: added xwayland test
Test xwayland support if DISTRO_FEATURE X11 is enabled
Test checked if xserver listening on display
(From OE-Core rev: c8dea13bd65f1695c79eba26b092d411a1699b19)
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>
| -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): | |||
| 77 | self.target.run('kill -9 %s' % w) | 77 | self.target.run('kill -9 %s' % w) |
| 78 | __, weston_log = self.target.run('cat %s' % self.weston_log_file) | 78 | __, weston_log = self.target.run('cat %s' % self.weston_log_file) |
| 79 | 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)) | 79 | 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)) |
| 80 | |||
| 81 | @skipIfNotFeature('x11', 'Test requires x11 to be in DISTRO_FEATURES') | ||
| 82 | @OEHasPackage(['weston']) | ||
| 83 | def test_weston_supports_xwayland(self): | ||
| 84 | cmd ='cat %s | grep "xserver listening on display"' % self.weston_log_file | ||
| 85 | status, output = self.target.run(cmd) | ||
| 86 | msg = ('xwayland does not appear to be running') | ||
| 87 | self.assertEqual(status, 0, msg=msg) | ||
