test: Add a test for log filter-*
authorSean Anderson <seanga2@gmail.com>
Tue, 27 Oct 2020 23:55:39 +0000 (19:55 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 30 Oct 2020 14:56:11 +0000 (10:56 -0400)
commit89723b94943663407f1c65cbff1f652f01a91311
treed567ac252334fb919927abe25e2697e202379722
parent3e40976aba6fa8ef798f11b45448be2504bd9b89
test: Add a test for log filter-*

This exercises a few success and failure modes of the log filter-*
commands. log filter-list is not tested because it's purely informational.
I don't think there's a good way to test it except by testing if the output
of the command exactly matches a sample run.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
include/test/log.h
test/log/Makefile
test/log/log_filter.c [new file with mode: 0644]