[PATCH v2 0/5] cmd: Fix 'md' and add a memory-search command
Simon Glass
sjg at chromium.org
Wed Jul 29 03:41:09 CEST 2020
Add various fixes and improvements to this command that were missed in
the original version. Unfortunately I forgot to send v2.
Changes in v2:
- Add new patch to check part of a console line or skip it
- Rename the Kconfig to CONFIG_CMD_MEM_SEARCH
- Use a separate var for the remaining search length
- Drop unnecessary ':' in the U_BOOT_CMD
- Enable the command for sandbox
- Split the argc/argv changes over two lines
- Add the missing cover-letter tags
- Correct a bug when auto-repeating right at the end (and add test)
- Move tests to a new suite of their own, instead of DM tests
- Add -q flag to the 'quiet' test to test operation when console is enabled
Simon Glass (5):
test: Add a way to check part of a console line or skip it
console: Always define the console-recording functions
dm: Rename DM test flags to make them more generic
test: Add a flag for tests that need console recording
cmd: Update the memory-search command
cmd/Kconfig | 2 +-
cmd/mem.c | 30 ++++++-----
common/console.c | 4 +-
configs/sandbox_defconfig | 1 +
doc/README.commands | 2 +-
include/console.h | 40 +++++++++++++-
include/dm/test.h | 9 ----
include/test/suites.h | 1 +
include/test/test.h | 11 ++++
include/test/ut.h | 59 +++++++++++++++++++++
test/cmd/Makefile | 3 +-
test/cmd/mem.c | 20 +++++++
test/cmd/mem_search.c | 108 ++++++++++++++++++++++++++++----------
test/cmd_ut.c | 12 +++++
test/dm/acpi.c | 28 +++++-----
test/dm/acpi_dp.c | 2 +-
test/dm/acpigen.c | 18 +++----
test/dm/adc.c | 16 +++---
test/dm/audio.c | 2 +-
test/dm/axi.c | 6 +--
test/dm/blk.c | 10 ++--
test/dm/board.c | 2 +-
test/dm/bootcount.c | 2 +-
test/dm/bus.c | 26 ++++-----
test/dm/cache.c | 2 +-
test/dm/clk.c | 6 +--
test/dm/clk_ccf.c | 2 +-
test/dm/core.c | 30 +++++------
test/dm/cpu.c | 2 +-
test/dm/devres.c | 12 ++---
test/dm/dma.c | 6 +--
test/dm/dsi_host.c | 2 +-
test/dm/eth.c | 16 +++---
test/dm/fdtdec.c | 4 +-
test/dm/firmware.c | 2 +-
test/dm/gpio.c | 20 +++----
test/dm/hwspinlock.c | 2 +-
test/dm/i2c.c | 16 +++---
test/dm/i2s.c | 2 +-
test/dm/irq.c | 10 ++--
test/dm/led.c | 12 ++---
test/dm/mailbox.c | 2 +-
test/dm/mdio.c | 2 +-
test/dm/mdio_mux.c | 2 +-
test/dm/misc.c | 2 +-
test/dm/mmc.c | 4 +-
test/dm/nop.c | 2 +-
test/dm/ofnode.c | 12 ++---
test/dm/ofread.c | 2 +-
test/dm/osd.c | 4 +-
test/dm/p2sb.c | 2 +-
test/dm/panel.c | 2 +-
test/dm/pch.c | 4 +-
test/dm/pci.c | 26 ++++-----
test/dm/pci_ep.c | 2 +-
test/dm/phy.c | 6 +--
test/dm/pmc.c | 2 +-
test/dm/pmic.c | 10 ++--
test/dm/power-domain.c | 2 +-
test/dm/pwm.c | 2 +-
test/dm/ram.c | 2 +-
test/dm/regmap.c | 10 ++--
test/dm/regulator.c | 20 +++----
test/dm/remoteproc.c | 4 +-
test/dm/reset.c | 6 +--
test/dm/rng.c | 2 +-
test/dm/rtc.c | 14 ++---
test/dm/serial.c | 2 +-
test/dm/sf.c | 4 +-
test/dm/simple-pm-bus.c | 2 +-
test/dm/smem.c | 2 +-
test/dm/soc.c | 2 +-
test/dm/sound.c | 4 +-
test/dm/spi.c | 4 +-
test/dm/spmi.c | 6 +--
test/dm/syscon-reset.c | 2 +-
test/dm/syscon.c | 6 +--
test/dm/sysreset.c | 8 +--
test/dm/tee.c | 2 +-
test/dm/test-fdt.c | 46 ++++++++--------
test/dm/test-main.c | 10 ++--
test/dm/timer.c | 2 +-
test/dm/usb.c | 12 ++---
test/dm/video.c | 26 ++++-----
test/dm/virtio.c | 8 +--
test/dm/wdt.c | 2 +-
test/lib/lmb.c | 18 +++----
test/ut.c | 22 ++++++++
88 files changed, 556 insertions(+), 342 deletions(-)
create mode 100644 test/cmd/mem.c
--
2.28.0.rc0.142.g3c755180ce-goog
More information about the U-Boot
mailing list