Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Alexander Kanavin <alex.kanavin@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 07/10] weston: add a basic runtime test
Date: Sun, 16 Feb 2020 16:50:11 +0100	[thread overview]
Message-ID: <20200216155015.21738-7-alex.kanavin@gmail.com> (raw)
In-Reply-To: <20200216155015.21738-1-alex.kanavin@gmail.com>

The test is checking that weston is able to start.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
---
 meta/classes/testimage.bbclass        |  2 +-
 meta/lib/oeqa/runtime/cases/weston.py | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+), 1 deletion(-)
 create mode 100644 meta/lib/oeqa/runtime/cases/weston.py

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 = "\
     ping date df ssh scp python perl gi ptest parselogs \
     logrotate connman systemd oe_syslog pam stap ldd xorg \
     kernelmodule gcc buildcpio buildlzip buildgalculator \
-    dnf rpm opkg apt"
+    dnf rpm opkg apt weston"
 
 DEFAULT_TEST_SUITES = "${BASICTESTSUITE}"
 
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 @@
+#
+# SPDX-License-Identifier: MIT
+#
+
+from oeqa.runtime.case import OERuntimeTestCase
+from oeqa.core.decorator.depends import OETestDepends
+from oeqa.core.decorator.data import skipIfNotFeature
+from oeqa.runtime.decorator.package import OEHasPackage
+
+class WestonTest(OERuntimeTestCase):
+
+    @OETestDepends(['ssh.SSHTest.test_ssh'])
+    @OEHasPackage(['weston'])
+    def test_weston_running(self):
+        cmd ='%s | grep [w]eston-desktop-shell' % self.tc.target_cmds['ps']
+        status, output = self.target.run(cmd)
+        msg = ('Weston does not appear to be running %s' %
+              self.target.run(self.tc.target_cmds['ps'])[1])
+        self.assertEqual(status, 0, msg=msg)
-- 
2.25.0



  parent reply	other threads:[~2020-02-16 15:51 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-16 15:50 [PATCH 01/10] core-image-sato-sdk-ptest: do not pull in ptest-pkgs Alexander Kanavin
2020-02-16 15:50 ` [PATCH 02/10] procps: upstream has switched to gitlab Alexander Kanavin
2020-02-16 16:53   ` Khem Raj
2020-02-16 16:56     ` Alexander Kanavin
2020-02-16 20:06       ` Khem Raj
2020-02-16 20:45         ` Alexander Kanavin
2020-02-17  2:35           ` Khem Raj
2020-02-17  8:12             ` Alexander Kanavin
2020-02-17 18:39               ` Khem Raj
2020-02-16 15:50 ` [PATCH 03/10] qemux86: do not add vga=0 to kernel parameters Alexander Kanavin
2020-02-16 15:50 ` [PATCH 04/10] qemux86: drop resolution setting via uvesafb Alexander Kanavin
2020-02-16 16:01   ` Martin Jansa
2020-02-16 16:10     ` Alexander Kanavin
2020-02-16 16:15       ` Alexander Kanavin
2020-02-16 15:50 ` [PATCH 05/10] weston-init: use the drm backend rather than fbdev one Alexander Kanavin
2020-02-16 17:00   ` Khem Raj
2020-02-16 17:07     ` Alexander Kanavin
2020-02-16 20:09       ` Khem Raj
2020-02-16 21:03         ` Alexander Kanavin
2020-02-17  2:30           ` Khem Raj
2020-02-17  8:22             ` Alexander Kanavin
2020-02-17 13:16               ` Alexander Kanavin
2020-02-17 18:44                 ` Khem Raj
2020-02-17 19:29                   ` Alexander Kanavin
2020-02-18  1:56                     ` Khem Raj
2020-02-19  9:45                       ` Alexander Kanavin
2020-02-19 17:20                         ` Khem Raj
2020-02-19 18:06                           ` Alexander Kanavin
2020-02-19 18:37                             ` Khem Raj
2020-02-16 15:50 ` [PATCH 06/10] webkitgtk: x11 and wayland are not mutually exclusive Alexander Kanavin
2020-02-16 15:50 ` Alexander Kanavin [this message]
2020-02-16 15:50 ` [PATCH 08/10] webkitgtk: unbreak wayland build Alexander Kanavin
2020-02-16 16:09   ` Martin Jansa
2020-02-16 16:14     ` Alexander Kanavin
2020-02-16 18:06       ` Richard Purdie
2020-02-16 20:14   ` Khem Raj
2020-02-16 20:51     ` Alexander Kanavin
2020-02-23 14:33       ` Joshua Watt
2020-02-27 15:49         ` [wpe-webkit] " Carlos Alberto Lopez Perez
2020-02-27 16:04           ` Joshua Watt
2020-02-16 15:50 ` [PATCH 09/10] wayland: convert to meson build Alexander Kanavin
2020-02-17 14:35   ` Richard Purdie
2020-02-17 14:50     ` Alexander Kanavin
2020-02-17 14:52       ` Richard Purdie
2020-02-17 14:53       ` Alexander Kanavin
2020-02-16 15:50 ` [PATCH 10/10] ptest-packagelists: mention ifupdown ptest in a comment Alexander Kanavin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200216155015.21738-7-alex.kanavin@gmail.com \
    --to=alex.kanavin@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox