2020-01-06 22:28:22 +00:00
|
|
|
obj-$(CONFIG_KUNIT) += kunit.o
|
|
|
|
|
|
|
|
|
|
kunit-objs += test.o \
|
2022-03-28 10:41:43 -07:00
|
|
|
resource.o \
|
2024-06-12 12:59:18 -07:00
|
|
|
user_alloc.o \
|
2023-01-31 14:46:40 +08:00
|
|
|
static_stub.o \
|
2019-09-23 02:02:34 -07:00
|
|
|
string-stream.o \
|
2019-09-23 02:02:39 -07:00
|
|
|
assert.o \
|
2020-08-04 13:47:42 -07:00
|
|
|
try-catch.o \
|
2023-07-25 21:25:12 +00:00
|
|
|
executor.o \
|
2023-12-15 15:39:08 +08:00
|
|
|
attributes.o \
|
2024-07-18 14:05:04 -07:00
|
|
|
device.o \
|
|
|
|
|
platform.o
|
2019-09-23 02:02:37 -07:00
|
|
|
|
2020-03-26 14:25:07 +00:00
|
|
|
ifeq ($(CONFIG_KUNIT_DEBUGFS),y)
|
|
|
|
|
kunit-objs += debugfs.o
|
|
|
|
|
endif
|
|
|
|
|
|
2023-01-28 15:10:07 +08:00
|
|
|
# KUnit 'hooks' are built-in even when KUnit is built as a module.
|
2025-08-13 08:28:30 +02:00
|
|
|
obj-$(if $(CONFIG_KUNIT),y) += hooks.o
|
2023-01-28 15:10:07 +08:00
|
|
|
|
2020-01-06 22:28:20 +00:00
|
|
|
obj-$(CONFIG_KUNIT_TEST) += kunit-test.o
|
2024-07-18 14:05:04 -07:00
|
|
|
obj-$(CONFIG_KUNIT_TEST) += platform-test.o
|
2019-09-23 02:02:37 -07:00
|
|
|
|
2020-01-06 22:28:20 +00:00
|
|
|
# string-stream-test compiles built-in only.
|
|
|
|
|
ifeq ($(CONFIG_KUNIT_TEST),y)
|
|
|
|
|
obj-$(CONFIG_KUNIT_TEST) += string-stream-test.o
|
2024-05-16 22:17:31 +01:00
|
|
|
obj-$(CONFIG_KUNIT_TEST) += assert_test.o
|
2020-01-06 22:28:20 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
obj-$(CONFIG_KUNIT_EXAMPLE_TEST) += kunit-example-test.o
|