[PATCH v2 20/22] test: Add a test for log filter-*
Simon Glass
sjg at chromium.org
Mon Oct 12 05:35:23 CEST 2020
On Sat, 10 Oct 2020 at 13:44, Sean Anderson <seanga2 at gmail.com> wrote:
>
> 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 at gmail.com>
> ---
>
> Changes in v2:
> - Converted log filter-* tests to C from python
>
> include/test/log.h | 1 +
> test/log/Makefile | 1 +
> test/log/log_filter.c | 111 ++++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 113 insertions(+)
> create mode 100644 test/log/log_filter.c
>
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list