[PATCH 00/19] test: let UNIT_TEST imply CONSOLE_RECORD

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Sun Nov 23 23:56:52 CET 2025


Many C unit tests are not executed if CONFIG_CONSOLE_RECORD is not set.
Hence Tom suggested to let UNIT_TEST imply CONSOLE_RECORD.

The first patch makes the skipped C unit tests visible.

The rest of the series deals with hidden bugs in our tests.

The 'fdt get value' command returned incorrect values on low-endian
systems. So this needed fixing too.

Sorry Tom that the seris is so long. Most of the patches can be applied
independently. But all but the first are prerequisite for letting
UNIT_TEST imply CONSOLE_RECORD.

Gitlab CI results are here:
https://source.denx.de/u-boot/custodians/u-boot-efi/-/pipelines/28488

Heinrich Schuchardt (19):
  test: Let pytest indicate skipped C unit tests
  test: cmd/bdinfo: consider ARM architecture specific info
  test: print_display_buffer must consider 64bit support
  test: don't test for CONFIG_UNIT_TEST twice
  test: print_do_hex_dump test depends on HEXDUMP
  test: bdinfo: correct expected X86 arch info
  test: cmd_exit_test depends on CONFIG_HUSH_PARSER
  test: do not assume memory size 256 MiB in cmd_test_meminfo
  ppce500: increase SYS_MALLOC_F_LEN to 0x800
  test: the cmd/font test requires the sandbox
  test: correct comments in test/cmd/font.c
  test: fix bdinfo_test_all boot_params expectation
  malta: increase SYS_MALLOC_F_LEN and SYS_MALLOC_LEN
  test: consider endianness in print_display_buffer
  test: fix cmt/msr test
  test: relax cread_test time constraint
  test: cmd/bdinfo: consider PPC architecture specific info
  cmd: fix 'fdt get value'
  test: let UNIT_TEST imply CONSOLE_RECORD

 cmd/fdt.c                      | 26 ++++++++------
 configs/malta64_defconfig      |  2 --
 configs/malta64el_defconfig    |  2 --
 configs/malta_defconfig        |  2 --
 configs/maltael_defconfig      |  2 --
 configs/qemu-ppce500_defconfig |  1 +
 test/Kconfig                   |  2 ++
 test/Makefile                  |  4 +--
 test/cmd/Makefile              |  4 +--
 test/cmd/bdinfo.c              | 62 ++++++++++++++++++++++++++++++++--
 test/cmd/fdt.c                 |  2 +-
 test/cmd/font.c                |  4 +--
 test/cmd/meminfo.c             |  2 +-
 test/cmd/msr.c                 |  4 +--
 test/common/cread.c            |  9 ++---
 test/common/print.c            | 53 ++++++++++++++++++++++++++---
 test/py/tests/test_ut.py       |  7 ++++
 17 files changed, 148 insertions(+), 40 deletions(-)

-- 
2.51.0



More information about the U-Boot mailing list