kunit: split resource API impl from test.c into new resource.c
authorDaniel Latypov <dlatypov@google.com>
Mon, 28 Mar 2022 17:41:43 +0000 (10:41 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 4 Apr 2022 22:23:14 +0000 (16:23 -0600)
commitcdebea6968faafa955b3cc9196003e7f17f78955
tree3c126d50f4a032005c2df111c7e332bb9f212cd1
parent61695f8c5d5190db11aece403304f06d22c90597
kunit: split resource API impl from test.c into new resource.c

We've split out the declarations from include/kunit/test.h into
resource.h.
This patch splits out the definitions as well for consistency.

A side effect of this is git blame won't properly track history by
default, users need to run
$ git blame -L ,1 -C13 lib/kunit/resource.c

Signed-off-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
lib/kunit/Makefile
lib/kunit/resource.c [new file with mode: 0644]
lib/kunit/test.c