u-boot/test/cmd
Heinrich Schuchardt af7eca24a7 cmd/setexpr: support concatenation of direct strings
The setexpr.s command allows to concatenate two strings.

According to the description in doc/usage/cmd/setexpr.rst the parameters
value1 and value2 can be either direct values or pointers to a
memory location holding the values.

Unfortunately `setexpr.s <value1> + <value2>` fails if any of the values
is a direct value. $? is set to false.

* Add support for direct values in setexpr.s.
* Correct the unit test for "setexpr.s fred 0".
* Add a new unit test for "setexpr.s fred '1' + '3'" giving '13'.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2025-02-07 13:35:23 -06:00
..
addrmap.c test: Drop the function for running addrmap tests 2025-01-24 14:34:40 -06:00
armffa.c test: Rename UTF_CONSOLE_REC to UTF_CONSOLE 2024-08-26 18:51:49 -06:00
bdinfo.c test: Drop the function for running bdinfo tests 2025-01-24 14:34:40 -06: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: Drop the function for running exit tests 2025-01-24 14:34:40 -06:00
fdt.c test: Drop the function for running fdt tests 2025-01-24 14:34:40 -06:00
font.c test: Drop the function for running font tests 2025-01-24 14:34:40 -06:00
hash.c test: cmd/hash: check return value of ut_check_console_line 2024-11-18 19:10:56 -06:00
history.c test: Rename UTF_CONSOLE_REC to UTF_CONSOLE 2024-08-26 18:51:49 -06:00
loadm.c test: Drop the function for running loadm tests 2025-01-24 14:34:40 -06:00
Makefile test: Drop the function for running mem tests 2025-01-24 14:34:40 -06:00
mbr.c test: Drop the function for running mbr tests 2025-01-24 14:34:40 -06:00
mem_copy.c test: Drop the _test suffix on linker lists 2025-01-24 14:34:40 -06:00
mem_search.c test: Drop the _test suffix on linker lists 2025-01-24 14:34:40 -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: Drop the function for running pci_mps tests 2025-01-24 14:34:40 -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: Drop the function for running seama tests 2025-01-24 14:34:40 -06:00
setexpr.c cmd/setexpr: support concatenation of direct strings 2025-02-07 13:35:23 -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/cmd/wget.c: Fix loadaddr rewrite 2025-01-27 12:46:44 -06:00