]> asedeno.scripts.mit.edu Git - linux.git/commit
kunit: test: add the concept of expectations
authorBrendan Higgins <brendanhiggins@google.com>
Mon, 23 Sep 2019 09:02:35 +0000 (02:02 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 30 Sep 2019 23:35:00 +0000 (17:35 -0600)
commit73cda7bb8bfb1d4be0325d76172950ede1a65fd0
treed948d1ff9b0b7379327ce1af6b2c058a35f9385b
parent6b229e593ff9ac2fd8d83c3654e0f39fa1d49a67
kunit: test: add the concept of expectations

Add support for expectations, which allow properties to be specified and
then verified in tests.

Signed-off-by: Brendan Higgins <brendanhiggins@google.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
include/kunit/test.h
lib/kunit/test.c