* [PATCH v2 RESEND 0/3] CI: Add 'env' testsuite
@ 2025-10-15 14:08 Zhihang Wei
2025-10-15 14:08 ` [PATCH v2 RESEND 1/3] CI: Add nop testcase Zhihang Wei
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Zhihang Wei @ 2025-10-15 14:08 UTC (permalink / raw)
To: isar-users
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
--
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/20251015140846.1953962-1-wzh%40ilbers.de.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 RESEND 1/3] CI: Add nop testcase
2025-10-15 14:08 [PATCH v2 RESEND 0/3] CI: Add 'env' testsuite Zhihang Wei
@ 2025-10-15 14:08 ` Zhihang Wei
2025-10-15 14:08 ` [PATCH v2 RESEND 2/3] CI: Add bitbake testcase Zhihang Wei
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Zhihang Wei @ 2025-10-15 14:08 UTC (permalink / raw)
To: isar-users
The test_nop testcase always passes to indicate that the test
environment can start testcases.
Signed-off-by: Zhihang Wei <wzh@ilbers.de>
---
testsuite/citest.py | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/testsuite/citest.py b/testsuite/citest.py
index c99b2fb3..9bdc9620 100755
--- a/testsuite/citest.py
+++ b/testsuite/citest.py
@@ -24,6 +24,18 @@ except path.CmdNotFoundError:
SKOPEO_AVAILABLE = False
+class EnvTest(CIBaseTest):
+
+ """
+ Test environment
+
+ :avocado: tags=env
+ """
+
+ def test_nop(self):
+ self.log.info("test_nop finish")
+
+
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/20251015140846.1953962-2-wzh%40ilbers.de.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 RESEND 2/3] CI: Add bitbake testcase
2025-10-15 14:08 [PATCH v2 RESEND 0/3] CI: Add 'env' testsuite Zhihang Wei
2025-10-15 14:08 ` [PATCH v2 RESEND 1/3] CI: Add nop testcase Zhihang Wei
@ 2025-10-15 14:08 ` Zhihang Wei
2025-10-15 14:08 ` [PATCH v2 RESEND 3/3] CI: Add minimal artifact building testcase Zhihang Wei
2025-10-20 9:14 ` [PATCH v2 RESEND 0/3] CI: Add 'env' testsuite Zhihang Wei
3 siblings, 0 replies; 5+ messages in thread
From: Zhihang Wei @ 2025-10-15 14:08 UTC (permalink / raw)
To: isar-users
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 | 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
--
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/20251015140846.1953962-3-wzh%40ilbers.de.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 RESEND 3/3] CI: Add minimal artifact building testcase
2025-10-15 14:08 [PATCH v2 RESEND 0/3] CI: Add 'env' testsuite Zhihang Wei
2025-10-15 14:08 ` [PATCH v2 RESEND 1/3] CI: Add nop testcase Zhihang Wei
2025-10-15 14:08 ` [PATCH v2 RESEND 2/3] CI: Add bitbake testcase Zhihang Wei
@ 2025-10-15 14:08 ` Zhihang Wei
2025-10-20 9:14 ` [PATCH v2 RESEND 0/3] CI: Add 'env' testsuite Zhihang Wei
3 siblings, 0 replies; 5+ messages in thread
From: Zhihang Wei @ 2025-10-15 14:08 UTC (permalink / raw)
To: isar-users
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 <wzh@ilbers.de>
---
testsuite/citest.py | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/testsuite/citest.py b/testsuite/citest.py
index 58e76b11..a1214e9c 100755
--- a/testsuite/citest.py
+++ b/testsuite/citest.py
@@ -47,6 +47,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
--
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/20251015140846.1953962-4-wzh%40ilbers.de.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 RESEND 0/3] CI: Add 'env' testsuite
2025-10-15 14:08 [PATCH v2 RESEND 0/3] CI: Add 'env' testsuite Zhihang Wei
` (2 preceding siblings ...)
2025-10-15 14:08 ` [PATCH v2 RESEND 3/3] CI: Add minimal artifact building testcase Zhihang Wei
@ 2025-10-20 9:14 ` Zhihang Wei
3 siblings, 0 replies; 5+ messages in thread
From: Zhihang Wei @ 2025-10-20 9:14 UTC (permalink / raw)
To: isar-users
Applied to next.
On 10/15/25 16:08, Zhihang Wei wrote:
> 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(+)
>
--
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/ceaee1af-63a6-439d-b8ab-b8ca10683d40%40ilbers.de.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-10-20 9:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-15 14:08 [PATCH v2 RESEND 0/3] CI: Add 'env' testsuite Zhihang Wei
2025-10-15 14:08 ` [PATCH v2 RESEND 1/3] CI: Add nop testcase Zhihang Wei
2025-10-15 14:08 ` [PATCH v2 RESEND 2/3] CI: Add bitbake testcase Zhihang Wei
2025-10-15 14:08 ` [PATCH v2 RESEND 3/3] CI: Add minimal artifact building testcase Zhihang Wei
2025-10-20 9:14 ` [PATCH v2 RESEND 0/3] CI: Add 'env' testsuite Zhihang Wei
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox