[PATCH v2 RESEND 2/3] CI: Add bitbake testcase

2 views
Skip to first unread message

Zhihang Wei

unread,
Oct 15, 2025, 10:09:01 AM (3 days ago) Oct 15
to isar-...@googlegroups.com
This test runs bitbake -e and passes on success, indicating that bitbake
can be started.

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

diff --git a/testsuite/citest.py b/testsuite/citest.py
index 9bdc9620..58e76b11 100755
--- a/testsuite/citest.py
+++ b/testsuite/citest.py
@@ -35,6 +35,18 @@ class EnvTest(CIBaseTest):
def test_nop(self):
self.log.info("test_nop finish")

+ def test_bitbake(self):
+ self.init()
+ 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

Zhihang Wei

unread,
Oct 15, 2025, 10:09:01 AM (3 days ago) Oct 15
to isar-...@googlegroups.com
This new testsuite provides tests that only take a few minutes to show
whether the building environment is working properly.
- test_nop always returns true.
- test_bitbake uses bitbake -e to show whether bitbake can be started.
- test_build checks whether a package can be built.

Changes v2:
- add self.init() inside test_bitbake to make the test suitable for the
environment on Jenkins

Zhihang Wei (3):
CI: Add nop testcase
CI: Add bitbake testcase
CI: Add minimal artifact building testcase

testsuite/citest.py | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)

--
2.39.5

Reply all
Reply to author
Forward
0 new messages