]> git.dujemihanovic.xyz Git - u-boot.git/commit
test: cmd: fdt: Test fdt get size
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Thu, 2 Mar 2023 03:08:35 +0000 (04:08 +0100)
committerSimon Glass <sjg@chromium.org>
Thu, 9 Mar 2023 16:50:48 +0000 (08:50 -0800)
commit55d0f982f3b2fb732769f8ae5797e57b92d965e4
tree0261609b10b170439b80d8231dc983f6ae187a1d
parent1b025afca4ca303772a24c2a926cf9e75a1151bb
test: cmd: fdt: Test fdt get size

Add 'fdt get size' test which works as follows:
- Create fuller FDT, map it to sysmem
- Get size of various properties
- Get node count of available nodes
- Test non-existent nodes and properties

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