]> 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>
Wed, 8 Mar 2023 21:14:29 +0000 (13:14 -0800)
commit66e975a23ee55fdbd023b7bbe1c49a5bf4673203
treee7ce4ef593e2c2adac473dfaf001fc593032bc75
parentb6d1dece4f23ab4733dd54fb9d94aab8dbbd2790
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