On 20 April 2015 at 15:24, Simon Glass <[email protected]> wrote:
> On 20 April 2015 at 05:32, Przemyslaw Marczak <[email protected]> wrote:
>> This commit introduces simple tests for functions:
>> - uclass_find_device_by_name()
>> - uclass_get_device_by_name()
>>
>> Tests added by this commit:
>> - Test: dm_test_uclass_devices_find_by_name: for uclass id: UCLASS_TEST_FDT
>>  * get uclass's devices by uclass_find_first/next_device() each as 'testdev',
>>  * for each returned device, call: uclass_find_device_by_name(),
>>    with previously returned device's name as an argument ('testdev->name').
>>  * for the found device ('founddev') check if:
>>    * founddev != NULL
>>    * testdev == founddev
>>    * testdev->name == founddev->name (by strcmp)
>>
>> - Test: dm_test_uclass_devices_get_by_name: for uclass id: UCLASS_TEST_FDT
>>  * get uclass's devices by uclass_get_first/next_device() each as 'testdev',
>>  * for each returned device, call: uclass_get_device_by_name(),
>>    with previously returned device's name as an argument ('testdev->name').
>>  * for the found device ('founddev') check if:
>>    * founddev != NULL
>>    * founddev is active
>>    * testdev == founddev
>>    * testdev->name == founddev->name (by strcmp)
>>
>> Signed-off-by: Przemyslaw Marczak <[email protected]>
>> Cc: Simon Glass <[email protected]>
>> ---
>> Changes V4:
>> -new commit
>>
>> Changes V5:
>> - code cleanup
>> ---
>>  test/dm/core.c | 81 
>> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>>  1 file changed, 81 insertions(+)
>
> Acked-by: Simon Glass <[email protected]>

Applied to u-boot-dm, thanks!
_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to