[PATCH] board_f: show_dram_config: Print also real DRAM size

Simon Glass sjg at chromium.org
Mon Sep 19 23:10:02 CEST 2022


Hi Pali,

On Sun, 18 Sept 2022 at 13:30, Pali Rohár <pali at kernel.org> wrote:
>
> On Monday 12 September 2022 17:58:09 Sean Anderson wrote:
> > You can use TEST_STATIC from test/export.h this case.
>
> Now I sent new patch version where I extended comment.
>
> I have still issue with test framework. Could you help me how to write
> that unit test and run it? Scenario should really simple, just check
> like this:
>
>   sizes_near(87654321, 87654320) == true;
>   sizes_near(87654321, 1000) == false;

I suggest copying something like test/lib/sscanf.c and then you can
run it in sandbox with 'ut lib <testname>'

Regards,
Simon


More information about the U-Boot mailing list