[PATCH 5/5] test: unit test for smbios command

Heinrich Schuchardt xypron.glpk at gmx.de
Tue Dec 26 11:11:28 CET 2023


On 12/26/23 10:47, Simon Glass wrote:
> Hi Heinrich,
>
> On Sat, Dec 23, 2023 at 12:49 AM Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>>
>> Provide a unit test for the smbios command.
>>
>> Provide different test functions for QEMU, sandbox, and other systems.
>>
>> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
>> ---
>>   test/py/tests/test_smbios.py | 47 ++++++++++++++++++++++++++++++++++++
>>   1 file changed, 47 insertions(+)
>>   create mode 100644 test/py/tests/test_smbios.py
>
> Can you please write this test in C?
>
> Regards,
> Simon

According to our documentation we can use either Python or C tests.
We generally use Python tests for testing the CLI.

I cannot see any benefit in trying to write this in C.

Best regards

Heinrich


More information about the U-Boot mailing list