public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Zhihang Wei <wzh@ilbers.de>
To: isar-users@googlegroups.com
Subject: Re: [PATCH v2 2/3] CI: Add bitbake testcase
Date: Wed, 15 Oct 2025 16:02:41 +0200	[thread overview]
Message-ID: <98cd6f4b-3f0c-4806-a988-2944e20f75ac@ilbers.de> (raw)
In-Reply-To: <20250917142623.2643494-3-wzh@ilbers.de>

I accidentally send the code of v1 by mistake. I'll resend the complete 
patch set again.

On 9/17/25 16:26, Zhihang Wei wrote:
> 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):
>   

-- 
Zhihang Wei
ilbers GmbH
Maria-Merian-Str. 8
D-85521, Ottobrunn
+49 (89) 122 67 24-2
http://ilbers.de/
Amtsgericht München, HRB 214197
Geschäftsführer: Baurzhan Ismagulov

-- 
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/98cd6f4b-3f0c-4806-a988-2944e20f75ac%40ilbers.de.

  reply	other threads:[~2025-10-15 14:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-17 14:26 [PATCH v2 0/3] CI: Add 'env' testsuite Zhihang Wei
2025-09-17 14:26 ` [PATCH v2 1/3] CI: Add nop testcase Zhihang Wei
2025-09-17 14:26 ` [PATCH v2 2/3] CI: Add bitbake testcase Zhihang Wei
2025-10-15 14:02   ` Zhihang Wei [this message]
2025-09-17 14:26 ` [PATCH v2 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=98cd6f4b-3f0c-4806-a988-2944e20f75ac@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