[U-Boot] [PATCH 3/3] test/py: add spi_flash tests

Stephen Warren swarren at wwwdotorg.org
Thu Mar 1 21:18:29 UTC 2018


On 03/01/2018 04:48 AM, Liam Beguin wrote:
> On 1 March 2018 at 01:59, Michal Simek <michal.simek at xilinx.com> wrote:
...
>> Also these randomized data/lengths were able to find out more issues
>> than fixed one. I was playing with that randomized test order and I see
>> that not all current tests are self contained and this will be good to
>> run too.
> 
> I'll add options to randomize in v2.

I'd strongly prefer the tests to be deterministic and not do random 
different actions each time they're run. That way, any failures are much 
easier to track down. Writing randomly generated data is fine, but not 
random access patterns or sets of operations.

Although I suppose you could implement two sets of tests; one that does 
a static set of operations driven by a table in the board config file, 
and one that does a more randomized set of operations controlled by 
limits set by a table in the board config file.


More information about the U-Boot mailing list