]> git.baikalelectronics.ru Git - uboot.git/commit
test: Add a way to check each line of console output
authorSimon Glass <sjg@chromium.org>
Mon, 27 Jan 2020 15:49:56 +0000 (08:49 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 6 Feb 2020 02:33:46 +0000 (19:33 -0700)
commit71b7cb3d81078f5b6b6c0882aa8e4d4ded0da13b
tree10bf54645628af31f0a00ca256fe31ebbc9f5a9d
parentce8d82a625d70a37489a89bd596678e35dfbe05d
test: Add a way to check each line of console output

When writing tests to check the output from commands it is useful to be
able to check the output line by line using an assertion. Add helper
macros to support this and to check that there is no unexpected trailing
data.

Also some commands produce a dump using print_buffer(). Add a way to check
that the correct number of bytes are dumped (ignoring the actual
contents).

Signed-off-by: Simon Glass <sjg@chromium.org>
include/test/test.h
include/test/ut.h
test/ut.c