]> git.baikalelectronics.ru Git - uboot.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>
Wed, 8 Mar 2023 21:14:29 +0000 (13:14 -0800)
commit7c47f2560ff797a263fedbf15082120b56edb0c3
treee7ce4ef593e2c2adac473dfaf001fc593032bc75
parentc7be1472574e271e9fcef9652b4d1a40934c7776
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