/kernel/linux/linux-5.10/lib/ |
D | test_kasan.c | 42 static int kasan_test_init(struct kunit *test) in kasan_test_init() 53 static void kasan_test_exit(struct kunit *test) in kasan_test_exit() 78 static void kmalloc_oob_right(struct kunit *test) in kmalloc_oob_right() 90 static void kmalloc_oob_left(struct kunit *test) in kmalloc_oob_left() 102 static void kmalloc_node_oob_right(struct kunit *test) in kmalloc_node_oob_right() 114 static void kmalloc_pagealloc_oob_right(struct kunit *test) in kmalloc_pagealloc_oob_right() 134 static void kmalloc_pagealloc_uaf(struct kunit *test) in kmalloc_pagealloc_uaf() 151 static void kmalloc_pagealloc_invalid_free(struct kunit *test) in kmalloc_pagealloc_invalid_free() 167 static void kmalloc_large_oob_right(struct kunit *test) in kmalloc_large_oob_right() 181 static void kmalloc_oob_krealloc_more(struct kunit *test) in kmalloc_oob_krealloc_more() [all …]
|
D | list-test.c | 17 static void list_test_list_init(struct kunit *test) in list_test_list_init() 46 static void list_test_list_add(struct kunit *test) in list_test_list_add() 60 static void list_test_list_add_tail(struct kunit *test) in list_test_list_add_tail() 74 static void list_test_list_del(struct kunit *test) in list_test_list_del() 90 static void list_test_list_replace(struct kunit *test) in list_test_list_replace() 106 static void list_test_list_replace_init(struct kunit *test) in list_test_list_replace_init() 125 static void list_test_list_swap(struct kunit *test) in list_test_list_swap() 147 static void list_test_list_del_init(struct kunit *test) in list_test_list_del_init() 164 static void list_test_list_move(struct kunit *test) in list_test_list_move() 183 static void list_test_list_move_tail(struct kunit *test) in list_test_list_move_tail() [all …]
|
/kernel/linux/linux-5.10/lib/kunit/ |
D | kunit-test.c | 19 struct kunit *test = data; in kunit_test_successful_try() 27 struct kunit *test = data; in kunit_test_no_catch() 32 static void kunit_test_try_catch_successful_try_no_catch(struct kunit *test) in kunit_test_try_catch_successful_try_no_catch() 48 struct kunit *test = data; in kunit_test_unsuccessful_try() 58 struct kunit *test = data; in kunit_test_catch() 64 static void kunit_test_try_catch_unsuccessful_try_does_catch(struct kunit *test) in kunit_test_try_catch_unsuccessful_try_does_catch() 78 static int kunit_try_catch_test_init(struct kunit *test) in kunit_try_catch_test_init() 111 struct kunit test; 133 static void kunit_resource_test_init_resources(struct kunit *test) in kunit_resource_test_init_resources() 142 static void kunit_resource_test_alloc_resource(struct kunit *test) in kunit_resource_test_alloc_resource() [all …]
|
D | test.c | 71 struct kunit *test = is_test ? test_or_suite : NULL; in kunit_print_ok_not_ok() 130 static void kunit_print_string_stream(struct kunit *test, in kunit_print_string_stream() 153 static void kunit_fail(struct kunit *test, struct kunit_assert *assert) in kunit_fail() 175 static void __noreturn kunit_abort(struct kunit *test) in kunit_abort() 188 void kunit_do_assertion(struct kunit *test, in kunit_do_assertion() 212 void kunit_init_test(struct kunit *test, const char *name, char *log) in kunit_init_test() 227 static void kunit_run_case_internal(struct kunit *test, in kunit_run_case_internal() 245 static void kunit_case_internal_cleanup(struct kunit *test) in kunit_case_internal_cleanup() 254 static void kunit_run_case_cleanup(struct kunit *test, in kunit_run_case_cleanup() 264 struct kunit *test; [all …]
|
D | Makefile | 1 obj-$(CONFIG_KUNIT) += kunit.o 3 kunit-objs += test.o \ 10 kunit-objs += debugfs.o 13 obj-$(CONFIG_KUNIT_TEST) += kunit-test.o 20 obj-$(CONFIG_KUNIT_EXAMPLE_TEST) += kunit-example-test.o
|
D | string-stream.h | 17 struct kunit *test; 27 struct kunit *test; 31 struct kunit; 33 struct string_stream *alloc_string_stream(struct kunit *test, gfp_t gfp);
|
D | Kconfig | 13 Documentation/dev-tools/kunit/. 18 bool "KUnit - Enable /sys/kernel/debug/kunit debugfs representation" if !KUNIT_ALL_TESTS 21 Enable debugfs representation for kunit. Currently this consists 22 of /sys/kernel/debug/kunit/<test_suite>/results files for each 43 itself, lib/kunit/example-test.c, for more information. This option 57 to the KUnit documentation in Documentation/dev-tools/kunit/.
|
D | string-stream-test.c | 14 static void string_stream_test_empty_on_creation(struct kunit *test) in string_stream_test_empty_on_creation() 21 static void string_stream_test_not_empty_after_add(struct kunit *test) in string_stream_test_not_empty_after_add() 30 static void string_stream_test_get_string(struct kunit *test) in string_stream_test_get_string()
|
/kernel/linux/linux-5.10/security/apparmor/ |
D | policy_unpack_test.c | 52 struct kunit *test, size_t buf_size) in build_aa_ext_struct() 109 static int policy_unpack_test_init(struct kunit *test) in policy_unpack_test_init() 124 static void policy_unpack_test_inbounds_when_inbounds(struct kunit *test) in policy_unpack_test_inbounds_when_inbounds() 133 static void policy_unpack_test_inbounds_when_out_of_bounds(struct kunit *test) in policy_unpack_test_inbounds_when_out_of_bounds() 140 static void policy_unpack_test_unpack_array_with_null_name(struct kunit *test) in policy_unpack_test_unpack_array_with_null_name() 154 static void policy_unpack_test_unpack_array_with_name(struct kunit *test) in policy_unpack_test_unpack_array_with_name() 169 static void policy_unpack_test_unpack_array_out_of_bounds(struct kunit *test) in policy_unpack_test_unpack_array_out_of_bounds() 185 static void policy_unpack_test_unpack_blob_with_null_name(struct kunit *test) in policy_unpack_test_unpack_blob_with_null_name() 199 static void policy_unpack_test_unpack_blob_with_name(struct kunit *test) in policy_unpack_test_unpack_blob_with_name() 213 static void policy_unpack_test_unpack_blob_out_of_bounds(struct kunit *test) in policy_unpack_test_unpack_blob_out_of_bounds() [all …]
|
/kernel/linux/linux-5.10/net/mptcp/ |
D | token_test.c | 6 static struct mptcp_subflow_request_sock *build_req_sock(struct kunit *test) in build_req_sock() 18 static void mptcp_token_test_req_basic(struct kunit *test) in mptcp_token_test_req_basic() 32 static struct inet_connection_sock *build_icsk(struct kunit *test) in build_icsk() 42 static struct mptcp_subflow_context *build_ctx(struct kunit *test) in build_ctx() 52 static struct mptcp_sock *build_msk(struct kunit *test) in build_msk() 63 static void mptcp_token_test_msk_basic(struct kunit *test) in mptcp_token_test_msk_basic() 86 static void mptcp_token_test_accept(struct kunit *test) in mptcp_token_test_accept() 105 static void mptcp_token_test_destroyed(struct kunit *test) in mptcp_token_test_destroyed()
|
/kernel/linux/linux-5.10/tools/testing/kunit/test_data/ |
D | test_pound_no_prefix.log | 5 # Subtest: kunit-resource-test 13 ok 1 - kunit-resource-test 14 foo bar # non-kunit output 15 # Subtest: kunit-try-catch-test 19 ok 2 - kunit-try-catch-test
|
D | test_pound_sign.log | 5 [ 0.060000] # Subtest: kunit-resource-test 13 [ 0.060000] ok 1 - kunit-resource-test 14 [ 0.060000] foo bar # non-kunit output 15 [ 0.060000] # Subtest: kunit-try-catch-test 19 [ 0.060000] ok 2 - kunit-try-catch-test
|
D | test_output_with_prefix_isolated_correctly.log | 4 [ 0.060000] # Subtest: kunit-resource-test 12 [ 0.060000] ok 1 - kunit-resource-test 13 [ 0.060000] foo bar # non-kunit output 14 [ 0.060000] # Subtest: kunit-try-catch-test 18 [ 0.060000] ok 2 - kunit-try-catch-test
|
D | test_kernel_panic_interrupt.log | 5 [ 0.060000] # Subtest: kunit-resource-test 12 [ 0.060000] ok 1 - kunit-resource-test 13 [ 0.060000] # Subtest: kunit-try-catch-test 17 [ 0.060000] ok 2 - kunit-try-catch-test
|
D | test_config_printk_time.log | 5 [ 0.060000] # Subtest: kunit-resource-test 12 [ 0.060000] ok 1 - kunit-resource-test 13 [ 0.060000] # Subtest: kunit-try-catch-test 17 [ 0.060000] ok 2 - kunit-try-catch-test
|
D | test_multiple_prefixes.log | 5 [ 0.060000][ T1] # Subtest: kunit-resource-test 12 [ 0.060000][ T1] ok 1 - kunit-resource-test 13 [ 0.060000][ T1] # Subtest: kunit-try-catch-test 17 [ 0.060000][ T1] ok 2 - kunit-try-catch-test
|
D | test_interrupted_tap_output.log | 5 [ 0.060000] # Subtest: kunit-resource-test 18 [ 0.060000] ok 1 - kunit-resource-test 19 [ 0.060000] # Subtest: kunit-try-catch-test 23 [ 0.060000] ok 2 - kunit-try-catch-test
|
D | test_is_test_passed-failure.log | 21 kunit sysctl_test: all tests passed 27 # example_simple_test: EXPECTATION FAILED at lib/kunit/example-test.c:30 36 kunit example: one or more tests failed
|
/kernel/linux/linux-5.10/Documentation/dev-tools/kunit/ |
D | kunit-tool.rst | 10 kunit_tool is a script (``tools/testing/kunit/kunit.py``) that aids in building 38 ./tools/testing/kunit/kunit.py run 44 ./tools/testing/kunit/kunit.py run --timeout=30 --jobs=`nproc --all` 57 ./tools/testing/kunit/kunit.py run --help
|
D | faq.rst | 34 like the KUnit Wrapper (``tools/testing/kunit/kunit.py``) that does not support 40 For more information, see :ref:`kunit-on-non-uml`. 71 1. Try running ``./tools/testing/kunit/kunit.py run`` with the ``--raw_output`` 74 2. Instead of running ``kunit.py run``, try running ``kunit.py config``, 75 ``kunit.py build``, and ``kunit.py exec`` independently. This can help track 77 can run it manually against stdin or a file with ``kunit.py parse``.) 80 building the UML kernel (e.g., by using ``kunit.py build``). Note that UML 87 around, so you can see what config was used after running ``kunit.py run``. 91 5. Try to run ``make ARCH=um defconfig`` before running ``kunit.py run``. This 98 can be collected from ``/sys/kernel/debug/kunit/<test suite>/results``, and [all …]
|
D | start.rst | 21 ./tools/testing/kunit/kunit.py run 24 :doc:`kunit-tool` page. 47 :doc:`kunit_tool <kunit-tool>` will ensure that all config options set in 67 ./tools/testing/kunit/kunit.py run 163 #include <kunit/test.h> 168 static void misc_example_add_test_basic(struct kunit *test) 177 static void misc_example_test_failure(struct kunit *test) 219 ./tools/testing/kunit/kunit.py run
|
/kernel/linux/linux-5.10/kernel/kcsan/ |
D | kcsan-test.c | 419 static void test_basic(struct kunit *test) in test_basic() 450 static void test_concurrent_races(struct kunit *test) in test_concurrent_races() 479 static void test_novalue_change(struct kunit *test) in test_novalue_change() 504 static void test_novalue_change_exception(struct kunit *test) in test_novalue_change_exception() 523 static void test_unknown_origin(struct kunit *test) in test_unknown_origin() 545 static void test_write_write_assume_atomic(struct kunit *test) in test_write_write_assume_atomic() 571 static void test_write_write_struct(struct kunit *test) in test_write_write_struct() 593 static void test_write_write_struct_part(struct kunit *test) in test_write_write_struct_part() 612 static void test_read_atomic_write_atomic(struct kunit *test) in test_read_atomic_write_atomic() 625 static void test_read_plain_atomic_write(struct kunit *test) in test_read_plain_atomic_write() [all …]
|
/kernel/linux/linux-5.10/include/kunit/ |
D | test.h | 92 struct kunit; 142 void (*run_case)(struct kunit *test); 184 int (*init)(struct kunit *test); 185 void (*exit)(struct kunit *test); 204 struct kunit { struct 228 static inline void kunit_set_failure(struct kunit *test) in kunit_set_failure() argument 233 void kunit_init_test(struct kunit *test, const char *name, char *log); 327 struct kunit_resource *kunit_alloc_and_get_resource(struct kunit *test, 387 int kunit_add_resource(struct kunit *test, 402 int kunit_add_named_resource(struct kunit *test, [all …]
|
/kernel/linux/linux-5.10/kernel/ |
D | sysctl-test.c | 19 static void sysctl_test_api_dointvec_null_tbl_data(struct kunit *test) in sysctl_test_api_dointvec_null_tbl_data() 69 static void sysctl_test_api_dointvec_table_maxlen_unset(struct kunit *test) in sysctl_test_api_dointvec_table_maxlen_unset() 115 static void sysctl_test_api_dointvec_table_len_is_zero(struct kunit *test) in sysctl_test_api_dointvec_table_len_is_zero() 149 struct kunit *test) in sysctl_test_api_dointvec_table_read_but_position_set() 184 static void sysctl_test_dointvec_read_happy_single_positive(struct kunit *test) in sysctl_test_dointvec_read_happy_single_positive() 215 static void sysctl_test_dointvec_read_happy_single_negative(struct kunit *test) in sysctl_test_dointvec_read_happy_single_negative() 244 static void sysctl_test_dointvec_write_happy_single_positive(struct kunit *test) in sysctl_test_dointvec_write_happy_single_positive() 275 static void sysctl_test_dointvec_write_happy_single_negative(struct kunit *test) in sysctl_test_dointvec_write_happy_single_negative() 307 struct kunit *test) in sysctl_test_api_dointvec_write_single_less_int_min() 345 struct kunit *test) in sysctl_test_api_dointvec_write_single_greater_int_max()
|
/kernel/linux/linux-5.10/tools/testing/kunit/ |
D | kunit_tool_test.py | 21 import kunit 303 kunit.main(['config', '--build_dir=.kunit'], self.linux_source_mock) 308 kunit.main(['build'], self.linux_source_mock) 314 kunit.main(['exec'], self.linux_source_mock) 321 kunit.main(['run'], self.linux_source_mock) 331 kunit.main(['exec'], self.linux_source_mock) 338 kunit.main(['run'], self.linux_source_mock) 347 kunit.main(['exec', '--raw_output'], self.linux_source_mock) 355 kunit.main(['run', '--raw_output'], self.linux_source_mock) 364 kunit.main(['exec', '--timeout', str(timeout)], self.linux_source_mock) [all …]
|