[v1,2/3] CI: Add bitbake testcase

Message ID 20250716104010.778032-3-wzh@ilbers.de
State New
Headers show
Series CI: Add 'env' testsuite | expand

Commit Message

Zhihang Wei July 16, 2025, 10:40 a.m. UTC
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(+)

Patch

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):