]> git.baikalelectronics.ru Git - uboot.git/commit
test: cmd: fdt: Test fdt print and list
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Thu, 2 Mar 2023 03:08:32 +0000 (04:08 +0100)
committerSimon Glass <sjg@chromium.org>
Tue, 14 Mar 2023 22:08:51 +0000 (16:08 -0600)
commit30e8dea8abc4512b4a9063034a20f32bf7ff140d
treee298c23cf81abdd210a4db6bbad6ce1fe97f96c9
parent3d8cb25a44b04495e94c5c5bff3ec844ee4abed6
test: cmd: fdt: Test fdt print and list

Add 'fdt print' and 'fdt list' test which works as follows:
- Create fuller FDT, map it to sysmem
- Print the entire FDT, parts of the FDT and select properties
- Compare output from the print or list

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 <marek.vasut+renesas@mailbox.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
test/cmd/fdt.c