test: Add a way to check part of a console line or skip it
authorSimon Glass <sjg@chromium.org>
Wed, 29 Jul 2020 01:41:10 +0000 (19:41 -0600)
committerTom Rini <trini@konsulko.com>
Sat, 8 Aug 2020 02:31:32 +0000 (22:31 -0400)
commit33d7edfd5f69b9847bd7affc5481338ec8d7ee39
tree94d443118bfa3e3d190165429527a31565d9d78b
parent7d914bc76b18b644e27d0cf367e745fc2c4fe1c7
test: Add a way to check part of a console line or skip it

Some lines of the output are not worth testing, or not worth testing in
their entirety. For example, when checking a hex dump we know that the
hex-dump routine can display ASCII so we only need to check the hex bytes,
not the ASCII dump. Add a new test macros which can check only part of
a console line.

Sometimes it is useful to skip a line altogether, so add a macro for that
also.

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