Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1obj-$(CONFIG_KUNIT) += kunit.o
2
3kunit-objs += test.o \
4 resource.o \
5 user_alloc.o \
6 static_stub.o \
7 string-stream.o \
8 assert.o \
9 try-catch.o \
10 executor.o \
11 attributes.o \
12 device.o \
13 platform.o
14
15ifeq ($(CONFIG_KUNIT_DEBUGFS),y)
16kunit-objs += debugfs.o
17endif
18
19# KUnit 'hooks' are built-in even when KUnit is built as a module.
20obj-$(if $(CONFIG_KUNIT),y) += hooks.o
21
22obj-$(CONFIG_KUNIT_TEST) += kunit-test.o
23obj-$(CONFIG_KUNIT_TEST) += platform-test.o
24
25# string-stream-test compiles built-in only.
26ifeq ($(CONFIG_KUNIT_TEST),y)
27obj-$(CONFIG_KUNIT_TEST) += string-stream-test.o
28obj-$(CONFIG_KUNIT_TEST) += assert_test.o
29endif
30
31obj-$(CONFIG_KUNIT_EXAMPLE_TEST) += kunit-example-test.o