kunit: test: add assertion printing library
authorBrendan Higgins <brendanhiggins@google.com>
Mon, 23 Sep 2019 09:02:34 +0000 (02:02 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 30 Sep 2019 23:35:00 +0000 (17:35 -0600)
commit6b229e593ff9ac2fd8d83c3654e0f39fa1d49a67
tree831d3c4ce1d207ce31c31c4615d8b75d6438f2e8
parentd1fadef194008b22d7d9608426cad29d4bb69ab9
kunit: test: add assertion printing library

Add `struct kunit_assert` and friends which provide a structured way to
capture data from an expectation or an assertion (introduced later in
the series) so that it may be printed out in the event of a failure.

Signed-off-by: Brendan Higgins <brendanhiggins@google.com>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
include/kunit/assert.h [new file with mode: 0644]
lib/kunit/Makefile
lib/kunit/assert.c [new file with mode: 0644]