dm: test: Add test case to check node name ignoring unit address
Add test to check node name ignoring unit address. Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
This commit is contained in:
parent
1a9e769718
commit
8c4435324a
|
|
@ -169,6 +169,20 @@ static int dm_test_autobind_uclass_pdata_alloc(struct unit_test_state *uts)
|
|||
}
|
||||
DM_TEST(dm_test_autobind_uclass_pdata_alloc, UT_TESTF_SCAN_PDATA);
|
||||
|
||||
/* compare node names ignoring the unit address */
|
||||
static int dm_test_compare_node_name(struct unit_test_state *uts)
|
||||
{
|
||||
ofnode node;
|
||||
|
||||
node = ofnode_path("/mmio-bus@0");
|
||||
ut_assert(ofnode_valid(node));
|
||||
ut_assert(ofnode_name_eq(node, "mmio-bus"));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_compare_node_name, UT_TESTF_SCAN_PDATA);
|
||||
|
||||
/* Test that binding with uclass platdata setting occurs correctly */
|
||||
static int dm_test_autobind_uclass_pdata_valid(struct unit_test_state *uts)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue