On Mon, 27 Feb 2023 at 12:55, Marek Vasut <[email protected]> wrote: > > Add 'fdt get name' test which works as follows: > - Create fuller FDT, map it to sysmem > - Get name of / node 0, 1 and /clk-test node 0 > - Compare output and validate the node name > - Get name of / node 2 and /clk-test node 1 > - Compare output and validate the node is not present > - Get name of / node -1 and /clk-test node -1 > - Compare output and validate the node name equals node 0 name > - Check nonexistent node, verify the command errors out > > The test case can be triggered using: > " > ./u-boot -Dc 'ut fdt' > " > To dump the full output from commands used during test, add '-v' flag. > > Signed-off-by: Marek Vasut <[email protected]> > --- > Cc: Heinrich Schuchardt <[email protected]> > Cc: Simon Glass <[email protected]> > Cc: Tom Rini <[email protected]> > --- > test/cmd/fdt.c | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 79 insertions(+)
Reviewed-by: Simon Glass <[email protected]>

