From: Mikko Rapeli <mikko.rapeli@linaro.org>
To: openembedded-core@lists.openembedded.org
Cc: Mikko Rapeli <mikko.rapeli@linaro.org>
Subject: [PATCH 2/3] oeqa runtime uki.py: add tests
Date: Mon, 11 Nov 2024 13:16:03 +0000 [thread overview]
Message-ID: <20241111131604.364308-2-mikko.rapeli@linaro.org> (raw)
In-Reply-To: <20241111131604.364308-1-mikko.rapeli@linaro.org>
If Unified Kernel Image was enabled via IMAGE_CLASSES, then
target should also boot the same uki at runtime.
Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
---
meta/lib/oeqa/runtime/cases/uki.py | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
create mode 100644 meta/lib/oeqa/runtime/cases/uki.py
diff --git a/meta/lib/oeqa/runtime/cases/uki.py b/meta/lib/oeqa/runtime/cases/uki.py
new file mode 100644
index 0000000000..77bc5b9791
--- /dev/null
+++ b/meta/lib/oeqa/runtime/cases/uki.py
@@ -0,0 +1,16 @@
+# SPDX-License-Identifier: MIT
+#
+
+from oeqa.runtime.case import OERuntimeTestCase
+from oeqa.core.decorator.data import skipIfNotInDataVar
+
+class UkiTest(OERuntimeTestCase):
+
+ @skipIfNotInDataVar('IMAGE_CLASSES', 'uki', 'Test case uki is for images which use uki.bbclass')
+ def test_uki(self):
+ uki_filename = self.td.get('UKI_FILENAME')
+ status, output = self.target.run('ls /boot/EFI/Linux/%s' % uki_filename)
+ self.assertEqual(status, 0, output)
+
+ status, output = self.target.run('echo $( cat /sys/firmware/efi/efivars/LoaderEntrySelected-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f ) | grep %s' % uki_filename)
+ self.assertEqual(status, 0, output)
--
2.34.1
next prev parent reply other threads:[~2024-11-11 13:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-11 13:16 [PATCH 1/3] uki.bbclass: fix debug print logging level Mikko Rapeli
2024-11-11 13:16 ` Mikko Rapeli [this message]
2024-11-11 13:16 ` [PATCH 3/3] testimage.bbclass: capture RuntimeError too Mikko Rapeli
2024-11-12 11:25 ` [OE-core] " Richard Purdie
2024-11-18 8:00 ` Mikko Rapeli
2025-01-28 13:04 ` Richard Purdie
[not found] ` <181EDCF7C1A1686B.17613@lists.openembedded.org>
2025-01-28 13:49 ` Richard Purdie
2025-01-28 14:37 ` Mikko Rapeli
2025-01-28 15:10 ` Richard Purdie
2025-01-28 15:23 ` Mikko Rapeli
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=20241111131604.364308-2-mikko.rapeli@linaro.org \
--to=mikko.rapeli@linaro.org \
--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