public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Zhihang Wei <wzh@ilbers.de>
To: isar-users@googlegroups.com
Cc: wzh@ilbers.de
Subject: [PATCH v1 2/3] CI: Add bitbake testcase
Date: Wed, 16 Jul 2025 12:40:09 +0200	[thread overview]
Message-ID: <20250716104010.778032-3-wzh@ilbers.de> (raw)
In-Reply-To: <20250716104010.778032-1-wzh@ilbers.de>

This test runs bitbake -e and passes on success, indicating that bitbake
can be started.

Signed-off-by: Zhihang Wei <wzh@ilbers.de>
---
 testsuite/citest.py | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/testsuite/citest.py b/testsuite/citest.py
index 22d9b580..510ceea9 100755
--- a/testsuite/citest.py
+++ b/testsuite/citest.py
@@ -29,6 +29,17 @@ class EnvTest(CIBaseTest):
     def test_nop(self):
         self.log.info("test_nop finish")
 
+    def test_bitbake(self):
+        bitbake_ret = self.exec_cmd("-e", "bitbake")
+
+        self.log.info("result on: bitbake -e")
+        self.log.info(f"return code: {str(bitbake_ret[0])}")
+        self.log.info(f"stdout: {str(bitbake_ret[1])}")
+        self.log.info(f"stderr: {str(bitbake_ret[2])}")
+
+        if(bitbake_ret[0] != 0):
+            self.fail("bitbake -e: returned an error")
+
 
 class DevTest(CIBaseTest):
 
-- 
2.39.5

-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20250716104010.778032-3-wzh%40ilbers.de.

  parent reply	other threads:[~2025-07-16 13:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-16 10:40 [PATCH v1 0/3] CI: Add 'env' testsuite Zhihang Wei
2025-07-16 10:40 ` [PATCH v1 1/3] CI: Add nop testcase Zhihang Wei
2025-07-16 10:40 ` Zhihang Wei [this message]
2025-07-16 10:40 ` [PATCH v1 3/3] CI: Add minimal artifact building testcase Zhihang Wei

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=20250716104010.778032-3-wzh@ilbers.de \
    --to=wzh@ilbers.de \
    --cc=isar-users@googlegroups.com \
    /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