diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2020-02-16 16:50:11 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-02-18 23:53:54 +0000 |
| commit | ae6ec0b809bdc54b0363216c64f71ef7de5e493c (patch) | |
| tree | 7489a8b146813d19c423aea1455423c57baf7fd5 /meta | |
| parent | ec7beb650fd3ad445e77d2c3c8fde27556d9d0c9 (diff) | |
| download | poky-ae6ec0b809bdc54b0363216c64f71ef7de5e493c.tar.gz | |
weston: add a basic runtime test
The test is checking that weston is able to start.
(From OE-Core rev: 57700767f90eea8f2b78187c42581aca42d50bbf)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/classes/testimage.bbclass | 2 | ||||
| -rw-r--r-- | meta/lib/oeqa/runtime/cases/weston.py | 19 |
2 files changed, 20 insertions, 1 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index 75f0f2c3e3..9588f2c4f8 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass | |||
| @@ -57,7 +57,7 @@ BASICTESTSUITE = "\ | |||
| 57 | ping date df ssh scp python perl gi ptest parselogs \ | 57 | ping date df ssh scp python perl gi ptest parselogs \ |
| 58 | logrotate connman systemd oe_syslog pam stap ldd xorg \ | 58 | logrotate connman systemd oe_syslog pam stap ldd xorg \ |
| 59 | kernelmodule gcc buildcpio buildlzip buildgalculator \ | 59 | kernelmodule gcc buildcpio buildlzip buildgalculator \ |
| 60 | dnf rpm opkg apt" | 60 | dnf rpm opkg apt weston" |
| 61 | 61 | ||
| 62 | DEFAULT_TEST_SUITES = "${BASICTESTSUITE}" | 62 | DEFAULT_TEST_SUITES = "${BASICTESTSUITE}" |
| 63 | 63 | ||
diff --git a/meta/lib/oeqa/runtime/cases/weston.py b/meta/lib/oeqa/runtime/cases/weston.py new file mode 100644 index 0000000000..f32599afc3 --- /dev/null +++ b/meta/lib/oeqa/runtime/cases/weston.py | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | # | ||
| 2 | # SPDX-License-Identifier: MIT | ||
| 3 | # | ||
| 4 | |||
| 5 | from oeqa.runtime.case import OERuntimeTestCase | ||
| 6 | from oeqa.core.decorator.depends import OETestDepends | ||
| 7 | from oeqa.core.decorator.data import skipIfNotFeature | ||
| 8 | from oeqa.runtime.decorator.package import OEHasPackage | ||
| 9 | |||
| 10 | class WestonTest(OERuntimeTestCase): | ||
| 11 | |||
| 12 | @OETestDepends(['ssh.SSHTest.test_ssh']) | ||
| 13 | @OEHasPackage(['weston']) | ||
| 14 | def test_weston_running(self): | ||
| 15 | cmd ='%s | grep [w]eston-desktop-shell' % self.tc.target_cmds['ps'] | ||
| 16 | status, output = self.target.run(cmd) | ||
| 17 | msg = ('Weston does not appear to be running %s' % | ||
| 18 | self.target.run(self.tc.target_cmds['ps'])[1]) | ||
| 19 | self.assertEqual(status, 0, msg=msg) | ||
