public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* Is it possiable to run dm test in local u-boot console?
@ 2022-12-23  1:20 scxie
  2023-01-07 15:52 ` Simon Glass
  0 siblings, 1 reply; 4+ messages in thread
From: scxie @ 2022-12-23  1:20 UTC (permalink / raw)
  To: u-boot; +Cc: sjg

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.

Thanks,
Treeman



scxie@jlogic-ic.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is it possiable to run dm test in local u-boot console?
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Simon Glass @ 2023-01-07 15:52 UTC (permalink / raw)
  To: scxie@jlogic-ic.com; +Cc: u-boot

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Re: Is it possiable to run dm test in local u-boot console?
  2023-01-07 15:52 ` Simon Glass
@ 2023-01-09  3:07   ` scxie
  2023-01-09 20:11     ` Simon Glass
  0 siblings, 1 reply; 4+ messages in thread
From: scxie @ 2023-01-09  3:07 UTC (permalink / raw)
  To: sjg; +Cc: u-boot

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
 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Re: Is it possiable to run dm test in local u-boot console?
  2023-01-09  3:07   ` scxie
@ 2023-01-09 20:11     ` Simon Glass
  0 siblings, 0 replies; 4+ messages in thread
From: Simon Glass @ 2023-01-09 20:11 UTC (permalink / raw)
  To: scxie@jlogic-ic.com; +Cc: u-boot

Hi Treeman,

On Sun, 8 Jan 2023 at 20:06, scxie@jlogic-ic.com <scxie@jlogic-ic.com> wrote:
>
> 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.

OK, I hope it goes well.

Regards,
Simon


>
> 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
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-01-09 20:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2023-01-09 20:11     ` Simon Glass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox