u-boot/test/cmd
Marek Vasut b6d1dece4f test: cmd: fdt: Test fdt get addr
Add 'fdt get addr' test which works as follows:
- Create fuller FDT, map it to sysmem
- Get address of various properties
- Compare addresses calculated by UT and fdt command

This test is special in that it has to go through gruesome remapping scheme
where the test calculates:
- pointer offsets of the generated FDT root and the property being tested
- map_sysmem() result of environment variable "fdtaddr" and the one set
  by the test matching address of property being tested
- difference between the later and the former, to obtain offset of the
  DT property from start of DT
The offsets must match in both the UT and the tested U-Boot, if they do
not, the test fails.

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>
2023-03-08 13:14:28 -08:00
..
addrmap.c addrmap: Support on sandbox 2022-07-26 02:30:56 -06:00
exit.c test: cmd: exit: Add unit test for exit and partly run commands 2023-01-11 15:02:24 -05:00
fdt.c test: cmd: fdt: Test fdt get addr 2023-03-08 13:14:28 -08:00
font.c video console: move vidconsole_get_font_size() logic to driver ops 2023-03-07 15:59:21 +01:00
loadm.c cmd: load: add load command for memory mapped 2022-06-22 11:35:47 -04:00
Makefile cmd: Add a SEAMA image load command 2023-02-06 17:10:15 -05:00
mem.c test: Add a macros for finding tests in linker_lists 2021-03-12 09:57:30 -05:00
mem_search.c display_options: Drop two spaces before the ASCII column 2021-06-08 11:39:09 -04:00
pinmux.c test: dm: pinmux: Get LED2 udevice in the pinmux test 2022-04-28 09:26:44 -04:00
pwm.c sandbox: cros-ec: Add tests for the Chromium OS EC PWM driver 2021-07-06 10:38:03 -06:00
seama.c cmd: Add a SEAMA image load command 2023-02-06 17:10:15 -05:00
setexpr.c test: Disable part of the setexpr test for now 2022-11-22 15:14:25 -07:00
temperature.c test: cmd: add test for temperature command 2022-10-11 16:03:04 -04:00
test_echo.c hush: Fix assignments being misinterpreted as commands 2021-04-12 17:17:11 -04:00
test_pause.c cmd: Add pause command 2022-09-02 13:40:42 -04:00
wget.c test: cmd: add test for wget command. 2022-11-28 13:06:40 -05:00