[PATCH v1 0/3] CI: Add 'env' testsuite

3 views
Skip to first unread message

Zhihang Wei

unread,
Jul 16, 2025, 9:18:26 AM7/16/25
to isar-...@googlegroups.com, w...@ilbers.de
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.

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

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

--
2.39.5

Zhihang Wei

unread,
Jul 16, 2025, 9:18:26 AM7/16/25
to isar-...@googlegroups.com, w...@ilbers.de
This testcase builds a minimal artifact (prebuilt-deb). It takes about a
minute to test whether bitbake can actually build anything.

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

diff --git a/testsuite/citest.py b/testsuite/citest.py
index 510ceea9..da272de7 100755
--- a/testsuite/citest.py
+++ b/testsuite/citest.py
@@ -40,6 +40,14 @@ class EnvTest(CIBaseTest):
if(bitbake_ret[0] != 0):
self.fail("bitbake -e: returned an error")

+ def test_build(self):
+ targets = [
+ 'mc:qemuamd64-bookworm:prebuilt-deb',
+ ]
+
+ self.init()
+ self.perform_build_test(targets)
+

class DevTest(CIBaseTest):

--
2.39.5

Reply all
Reply to author
Forward
0 new messages