[U-Boot] [PATCH v3 61/62] dm: Add a test for of-platdata

Simon Glass sjg at chromium.org
Fri Jul 15 06:00:54 CEST 2016


On 4 July 2016 at 11:58, Simon Glass <sjg at chromium.org> wrote:
> Add a simple test which checks that the of-platdata system is working
> correctly. The sequence is as follows:
>
> - SPL starts up and probes all the UCLASS_MISC drivers
> - There are 3 of these in sandbox.dts
> - Therefore there should be 3 U_BOOT_DEVICE() declarations in dt-platdata.c
> - These should produce 3 sandbox_spl_test devices
> - Each device prints out its platform data when probed
> - This test checks for this output and compares it against expectations
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v3:
> - Add new patch to test of-platdata
>
> Changes in v2: None
>
>  test/py/tests/test_ofplatdata.py | 42 ++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 42 insertions(+)
>  create mode 100644 test/py/tests/test_ofplatdata.py

Applied to u-boot-dm


More information about the U-Boot mailing list