]> git.dujemihanovic.xyz Git - u-boot.git/commit
test: cmd: fdt: Test fdt header
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Thu, 2 Mar 2023 03:08:39 +0000 (04:08 +0100)
committerSimon Glass <sjg@chromium.org>
Tue, 14 Mar 2023 22:08:51 +0000 (16:08 -0600)
commit927e03b4f695ea6aa17ef8cf5e1ff593fac1d84f
tree38306b123a9233e09afeabe18bb17706c79f0c89
parentb0cd7ccebd3d0220cbfd8d09720977746d1d1e2a
test: cmd: fdt: Test fdt header

Add 'fdt header' test which works as follows:
- Create basic FDT, map it to sysmem
- Print the FDT header
- Get all members of the FDT header into variable and
  verify the variables contain correct data

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>
Merged in test: cmd: fdt: Drop unused fdt_test_header_get() fdt parameter:
Signed-off-by: Simon Glass <sjg@chromium.org>
test/cmd/fdt.c