[PATCH v2] test/py: spi: Add tests for SPI flash device
Michal Simek
michal.simek at amd.com
Tue Jul 30 11:04:20 CEST 2024
On 7/28/24 21:36, Simon Glass wrote:
> Hi Love,
>
> On Wed, 24 Jul 2024 at 05:07, Love Kumar <love.kumar at amd.com> wrote:
>>
>> Add test cases for sf commands to verify various SPI flash operations
>> such as erase, write and read. It also adds qspi lock unlock cases.
>> This test relies on boardenv_* configurations to run it for different
>> SPI flash family such as single SPI, QSPI, and OSPI.
>>
>> Signed-off-by: Love Kumar <love.kumar at amd.com>
>> ---
>> Changes in v2:
>> - Fix the pylint errors
>> - Re-order/organize the tests
>> ---
>> test/py/tests/test_spi.py | 680 ++++++++++++++++++++++++++++++++++++++
>> 1 file changed, 680 insertions(+)
>> create mode 100644 test/py/tests/test_spi.py
>>
>
> How is this test enabled? Can it run in CI?
If board owner wants to enable it it should be done via uboot-test-hooks repo
py/travis-ci/* to define exact flash part description to enable this test.
But test is wired already it is just skip if part is not described.
Thanks,
Michal
More information about the U-Boot
mailing list