blob: 724b94311ca365367b4acf4279f62a34784362cf [file] [log] [blame]
Alan Maguire9fe124b2020-01-06 22:28:22 +00001obj-$(CONFIG_KUNIT) += kunit.o
2
3kunit-objs += test.o \
Brendan Higgins6b229e52019-09-23 02:02:34 -07004 string-stream.o \
Brendan Higgins5f3e0622019-09-23 02:02:39 -07005 assert.o \
6 try-catch.o
Brendan Higginsd8e2a762019-09-23 02:02:37 -07007
Alan Maguiree2219db2020-03-26 14:25:07 +00008ifeq ($(CONFIG_KUNIT_DEBUGFS),y)
9kunit-objs += debugfs.o
10endif
11
Alan Maguirec475c772020-01-06 22:28:20 +000012obj-$(CONFIG_KUNIT_TEST) += kunit-test.o
Brendan Higginsd8e2a762019-09-23 02:02:37 -070013
Alan Maguirec475c772020-01-06 22:28:20 +000014# string-stream-test compiles built-in only.
15ifeq ($(CONFIG_KUNIT_TEST),y)
16obj-$(CONFIG_KUNIT_TEST) += string-stream-test.o
17endif
18
19obj-$(CONFIG_KUNIT_EXAMPLE_TEST) += kunit-example-test.o