u-boot/test/cmd
Tom Rini f6ee671264 Merge patch series "cmd: hash: correct parameter count check"
Heinrich Schuchardt <heinrich.schuchardt@canonical.com> says:

Since commit 348ea87850 ("cmd: hash: fix param count check") the hash
command cannot be used without the optional variable name parameter if
CONFIG_HASH_VERIFY=y. 'hash sha1 $loadaddr $filesize' returns
CMD_RET_USAGE.

The minimum number of arguments is four no matter if verification is
enabled or not.

Fix the parameter check.

Provide a unit test.

Link: https://lore.kernel.org/r/20241102100836.103005-1-heinrich.schuchardt@canonical.com
2024-11-14 10:49:51 -06:00
..
addrmap.c test: cmd: Drop unnecessary console_record_reset_enable() 2024-08-26 18:51:49 -06:00
armffa.c test: Rename UTF_CONSOLE_REC to UTF_CONSOLE 2024-08-26 18:51:49 -06:00
bdinfo.c Merge patch series "Make LMB memory map global and persistent" 2024-09-03 14:09:30 -06:00
cmd_ut_cmd.c test: Add a new suite for commands 2023-12-13 18:39:04 -05:00
command.c test: Update command test to use unit-test functions 2024-11-13 11:56:01 -06:00
coreboot.c x86: coreboot: Allow building an expo for editing CMOS config 2024-11-03 21:27:12 -06:00
cpuid.c x86: Add a cpuid command 2024-10-18 14:10:21 -06:00
exit.c test: Tidy up checking for console end 2024-08-26 18:51:49 -06:00
fdt.c test: Tidy up checking for console end 2024-08-26 18:51:49 -06:00
font.c coreboot: Switch to a monospaced font 2024-10-18 14:10:21 -06:00
hash.c test: unit test for hash command 2024-11-14 10:49:24 -06:00
history.c test: Rename UTF_CONSOLE_REC to UTF_CONSOLE 2024-08-26 18:51:49 -06:00
loadm.c test: cmd: Drop unnecessary console_record_reset_enable() 2024-08-26 18:51:49 -06:00
Makefile Merge patch series "cmd: hash: correct parameter count check" 2024-11-14 10:49:51 -06:00
mbr.c test: mbr: Drop a duplicate test 2024-09-18 13:01:00 -06:00
mem.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
mem_copy.c test/cmd/mem_copy.c: Use CONFIG_SYS_LOAD_ADDR for base 2024-11-01 13:37:25 -06:00
mem_search.c test: cmd: Drop unnecessary console_record_reset_enable() 2024-08-26 18:51:49 -06:00
meminfo.c meminfo: Show the lmb records 2024-10-25 14:22:24 -06:00
msr.c x86: Add msr command 2024-10-18 14:10:21 -06:00
pci_mps.c test: Rename UTF_CONSOLE_REC to UTF_CONSOLE 2024-08-26 18:51:49 -06:00
pinmux.c Merge patch series "Tidy up console recording in tests" 2024-08-26 18:52:18 -06:00
pwm.c test: cmd: Drop unnecessary console_record_reset_enable() 2024-08-26 18:51:49 -06:00
rw.c test: cmd: Drop unnecessary console_record_reset_enable() 2024-08-26 18:51:49 -06:00
seama.c test: cmd: Drop unnecessary console_record_reset_enable() 2024-08-26 18:51:49 -06:00
setexpr.c test: cmd: Drop unnecessary console_record_reset_enable() 2024-08-26 18:51:49 -06:00
temperature.c test: cmd: Drop unnecessary console_record_reset_enable() 2024-08-26 18:51:49 -06:00
test_echo.c test: Tidy up checking for console end 2024-08-26 18:51:49 -06:00
test_pause.c test: Tidy up checking for console end 2024-08-26 18:51:49 -06:00
wget.c test: Tidy up checking for console end 2024-08-26 18:51:49 -06:00