Lines Matching refs:example
89 If you'd rather not use the KUnit Wrapper (if, for example, you need to
126 ``drivers/misc/example.h`` with the contents:
132 create a file ``drivers/misc/example.c``:
138 #include "example.h"
150 bool "My example"
156 obj-$(CONFIG_MISC_EXAMPLE) += example.o
159 ``drivers/misc/example-test.c``:
164 #include "example.h"
189 .name = "misc-example",
199 tristate "Test for my example" if !KUNIT_ALL_TESTS
207 obj-$(CONFIG_MISC_EXAMPLE_TEST) += example-test.o
227 [16:08:57] [PASSED] misc-example:misc_example_add_test_basic
228 [16:08:57] [FAILED] misc-example:misc_example_test_failure
229 [16:08:57] EXPECTATION FAILED at drivers/misc/example-test.c:17