]> git.dujemihanovic.xyz Git - u-boot.git/commit
test: Add some tests for setexpr
authorSimon Glass <sjg@chromium.org>
Sun, 1 Nov 2020 21:15:35 +0000 (14:15 -0700)
committerTom Rini <trini@konsulko.com>
Tue, 1 Dec 2020 15:33:38 +0000 (10:33 -0500)
commit90a9901764d71308192c96ecd7d735531fe9cc30
treec62b3b89e98722bac86212ef4c2237840a709f0d
parent4532bf411e56ef32984e2e98cf1aab6755fd77e2
test: Add some tests for setexpr

This command currently has no tests. Add some for basic assignment and the
integer operations.

Note that the default size for setexpr is ulong, which varies depending on
the build machine. So for sandbox on a 64-bit host, this means that the
default size is 64 bits.

Signed-off-by: Simon Glass <sjg@chromium.org>
include/test/suites.h
test/cmd/Makefile
test/cmd/setexpr.c [new file with mode: 0644]
test/cmd_ut.c