[dm-devel] [PATCH 10/10] multipath tests: add blacklist tests

Martin Wilck mwilck at suse.com
Fri Jul 20 19:16:08 UTC 2018


On Fri, 2018-07-13 at 14:39 -0500, Benjamin Marzinski wrote:
> These are tests to validate the filter_* blacklist functions. They
> not
> only verify that the device is correctly blacklisted/whitelisted, but
> they also verify the log messages that are printed out.
> 
> Signed-off-by: Benjamin Marzinski <bmarzins at redhat.com>
> ---
>  tests/Makefile    |   4 +-
>  tests/blacklist.c | 512
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 515 insertions(+), 1 deletion(-)
>  create mode 100644 tests/blacklist.c

Reviewed-by: Martin Wilck <mwilck at suse.com>

__wrap_dlog() / expect_condlog() are brilliant, maybe we should
put them in test-lib.c.


-- 
Dr. Martin Wilck <mwilck at suse.com>, Tel. +49 (0)911 74053 2107
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)




More information about the dm-devel mailing list