public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "scxie@jlogic-ic.com" <scxie@jlogic-ic.com>
To: sjg <sjg@chromium.org>
Cc: u-boot <u-boot@lists.denx.de>
Subject: Re: Re: Is it possiable to run dm test in local u-boot console?
Date: Mon, 9 Jan 2023 11:07:14 +0800	[thread overview]
Message-ID: <2023010911071361192621@jlogic-ic.com> (raw)
In-Reply-To: CAPnjgZ0j_+BYbvf5vhL0R8mi0XDDFFRC5ShTzTZLbpFO69KwsA@mail.gmail.com

Hi Simon,
     Thanks for your kindly reply.
     I can understand the design perpose now.
     I just think the test module is a clean environment to do unit test. 
     Since we're handling a SoC project, 
     we'd like to do IP verification in bare metal environment, 
the test framework of u-boot is a good choice, it's clean, flexible and modularized.
Many thanks to the maintainers, including you.
     Maybe we can develop our own cases based on dm.

BRs,
Treeman


scxie@jlogic-ic.com
 
From: Simon Glass
Date: 2023-01-07 23:52
To: scxie@jlogic-ic.com
CC: u-boot
Subject: Re: Is it possiable to run dm test in local u-boot console?
Hi Treeman,
 
On Thu, 22 Dec 2022 at 18:20, scxie@jlogic-ic.com <scxie@jlogic-ic.com> wrote:
>
> Hi Maintainers,
>      I'm an engineer who is porting u-boot in my project.
>      Now we find almost dm cases in folder test/dm depend on SANDBOX,
>      is it possiable to run them in local uboot console directly?
>      A big challenge is that there are various hardware peripherals,
>      I have no idea to handle it.
 
Many of the tests are designed to run on sandbox, since they use
peripheral emulators. There is one board (snow) that is set up to run
quite a few tests, but not those that need particular peripherals, of
course.
 
Many boards run tests in CI using QEMU and it is possible to run those
tests on a real board using the test harness.
 
If your board has reliable drivers and they have been tested, then
there is not much point in running the unit tests. If they pass on
sandbox then the logic is sound and you are really just checking for
compiler bugs, which is probably not a good use of time.
 
I suppose you have seen the documentation [1]
 
Which board are you using?
 
Regards,
Simon
 
[1] https://u-boot.readthedocs.io/en/latest/develop/testing.html
 

  reply	other threads:[~2023-01-09 13:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-23  1:20 Is it possiable to run dm test in local u-boot console? scxie
2023-01-07 15:52 ` Simon Glass
2023-01-09  3:07   ` scxie [this message]
2023-01-09 20:11     ` Simon Glass

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=2023010911071361192621@jlogic-ic.com \
    --to=scxie@jlogic-ic.com \
    --cc=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    /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