Home
last modified time | relevance | path

Searched defs:test (Results 1 – 25 of 63) sorted by relevance

123

/lib/tests/
A Dlist-test.c18 static void list_test_list_init(struct kunit *test) in list_test_list_init()
47 static void list_test_list_add(struct kunit *test) in list_test_list_add()
75 static void list_test_list_del(struct kunit *test) in list_test_list_del()
130 static void list_test_list_swap(struct kunit *test) in list_test_list_swap()
189 static void list_test_list_move(struct kunit *test) in list_test_list_move()
821 static void hlist_test_init(struct kunit *test) in hlist_test_init()
892 static void hlist_test_del(struct kunit *test) in hlist_test_del()
929 static void hlist_test_add(struct kunit *test) in hlist_test_add()
953 static void hlist_test_fake(struct kunit *test) in hlist_test_fake()
984 static void hlist_test_empty(struct kunit *test) in hlist_test_empty()
[all …]
A Dseq_buf_kunit.c11 static void seq_buf_init_test(struct kunit *test) in seq_buf_init_test()
26 static void seq_buf_declare_test(struct kunit *test) in seq_buf_declare_test()
38 static void seq_buf_clear_test(struct kunit *test) in seq_buf_clear_test()
54 static void seq_buf_puts_test(struct kunit *test) in seq_buf_puts_test()
69 static void seq_buf_puts_overflow_test(struct kunit *test) in seq_buf_puts_overflow_test()
88 static void seq_buf_putc_test(struct kunit *test) in seq_buf_putc_test()
116 static void seq_buf_printf_test(struct kunit *test) in seq_buf_printf_test()
131 static void seq_buf_printf_overflow_test(struct kunit *test) in seq_buf_printf_overflow_test()
151 static void seq_buf_get_buf_commit_test(struct kunit *test) in seq_buf_get_buf_commit_test()
A Dcpumask_kunit.c16 #define EXPECT_FOR_EACH_CPU_EQ(test, mask) \ argument
26 #define EXPECT_FOR_EACH_CPU_OP_EQ(test, op, mask1, mask2) \ argument
39 #define EXPECT_FOR_EACH_CPU_WRAP_EQ(test, mask) \ argument
49 #define EXPECT_FOR_EACH_CPU_BUILTIN_EQ(test, name) \ argument
62 static void test_cpumask_weight(struct kunit *test) in test_cpumask_weight()
73 static void test_cpumask_first(struct kunit *test) in test_cpumask_first()
83 static void test_cpumask_last(struct kunit *test) in test_cpumask_last()
91 static void test_cpumask_next(struct kunit *test) in test_cpumask_next()
103 static void test_cpumask_iterators(struct kunit *test) in test_cpumask_iterators()
117 static void test_cpumask_iterators_builtin(struct kunit *test) in test_cpumask_iterators_builtin()
[all …]
A Dkfifo_kunit.c14 static void kfifo_test_reset_should_clear_the_fifo(struct kunit *test) in kfifo_test_reset_should_clear_the_fifo()
29 static void kfifo_test_define_should_define_an_empty_fifo(struct kunit *test) in kfifo_test_define_should_define_an_empty_fifo()
38 static void kfifo_test_len_should_ret_n_of_stored_elements(struct kunit *test) in kfifo_test_len_should_ret_n_of_stored_elements()
59 static void kfifo_test_put_should_insert_and_get_should_pop(struct kunit *test) in kfifo_test_put_should_insert_and_get_should_pop()
82 static void kfifo_test_in_should_insert_multiple_elements(struct kunit *test) in kfifo_test_in_should_insert_multiple_elements()
99 static void kfifo_test_out_should_pop_multiple_elements(struct kunit *test) in kfifo_test_out_should_pop_multiple_elements()
118 static void kfifo_test_dec_init_should_define_an_empty_fifo(struct kunit *test) in kfifo_test_dec_init_should_define_an_empty_fifo()
130 static void kfifo_test_define_should_equal_declare_init(struct kunit *test) in kfifo_test_define_should_equal_declare_init()
149 static void kfifo_test_alloc_should_initiliaze_a_ptr_fifo(struct kunit *test) in kfifo_test_alloc_should_initiliaze_a_ptr_fifo()
168 static void kfifo_test_peek_should_not_remove_elements(struct kunit *test) in kfifo_test_peek_should_not_remove_elements()
A Dstring_kunit.c20 static void string_test_memset16(struct kunit *test) in string_test_memset16()
49 static void string_test_memset32(struct kunit *test) in string_test_memset32()
78 static void string_test_memset64(struct kunit *test) in string_test_memset64()
107 static void string_test_strchr(struct kunit *test) in string_test_strchr()
130 static void string_test_strnchr(struct kunit *test) in string_test_strnchr()
163 static void string_test_strspn(struct kunit *test) in string_test_strspn()
199 static void string_test_strcmp(struct kunit *test) in string_test_strcmp()
229 static void string_test_strncmp(struct kunit *test) in string_test_strncmp()
401 static void string_test_strscpy(struct kunit *test) in string_test_strscpy()
450 static void string_test_strcat(struct kunit *test) in string_test_strcat()
[all …]
A Dtest_bits.c31 static void __genmask_test(struct kunit *test) in __genmask_test()
39 static void __genmask_ull_test(struct kunit *test) in __genmask_ull_test()
47 static void genmask_test(struct kunit *test) in genmask_test()
74 static void genmask_ull_test(struct kunit *test) in genmask_ull_test()
89 static void genmask_u128_test(struct kunit *test) in genmask_u128_test()
119 static void genmask_input_check_test(struct kunit *test) in genmask_input_check_test()
A Dslub_kunit.c30 static void test_clobber_zone(struct kunit *test) in test_clobber_zone()
48 static void test_next_pointer(struct kunit *test) in test_next_pointer()
93 static void test_first_word(struct kunit *test) in test_first_word()
108 static void test_clobber_50th_byte(struct kunit *test) in test_clobber_50th_byte()
124 static void test_clobber_redzone_free(struct kunit *test) in test_clobber_redzone_free()
141 static void test_kmalloc_redzone_access(struct kunit *test) in test_kmalloc_redzone_access()
166 static void test_kfree_rcu(struct kunit *test) in test_kfree_rcu()
200 static void test_kfree_rcu_wq_destroy(struct kunit *test) in test_kfree_rcu_wq_destroy()
242 static void test_leak_destroy(struct kunit *test) in test_leak_destroy()
253 static void test_krealloc_redzone_zeroing(struct kunit *test) in test_krealloc_redzone_zeroing()
[all …]
A Dscanf_kunit.c203 static void numbers_simple(struct kunit *test) in numbers_simple()
397 static void numbers_list_l(struct kunit *test, const char *delim) in numbers_list_l()
407 static void numbers_list_d(struct kunit *test, const char *delim) in numbers_list_d()
437 static void numbers_list(struct kunit *test) in numbers_list()
512 static void numbers_list_field_width_typemax(struct kunit *test) in numbers_list_field_width_typemax()
596 static void numbers_slice(struct kunit *test) in numbers_slice()
618 static void numbers_prefix_overflow(struct kunit *test) in numbers_prefix_overflow()
713 static void test_simple_strtoull(struct kunit *test) in test_simple_strtoull()
722 static void test_simple_strtoll(struct kunit *test) in test_simple_strtoll()
731 static void test_simple_strtoul(struct kunit *test) in test_simple_strtoul()
[all …]
A Dhashtable_test.c19 static void hashtable_test_hash_init(struct kunit *test) in hashtable_test_hash_init()
34 static void hashtable_test_hash_empty(struct kunit *test) in hashtable_test_hash_empty()
49 static void hashtable_test_hash_hashed(struct kunit *test) in hashtable_test_hash_hashed()
65 static void hashtable_test_hash_add(struct kunit *test) in hashtable_test_hash_add()
95 static void hashtable_test_hash_del(struct kunit *test) in hashtable_test_hash_del()
123 static void hashtable_test_hash_for_each(struct kunit *test) in hashtable_test_hash_for_each()
152 static void hashtable_test_hash_for_each_safe(struct kunit *test) in hashtable_test_hash_for_each_safe()
185 static void hashtable_test_hash_for_each_possible(struct kunit *test) in hashtable_test_hash_for_each_possible()
239 static void hashtable_test_hash_for_each_possible_safe(struct kunit *test) in hashtable_test_hash_for_each_possible_safe()
A Dfortify_kunit.c85 static void fortify_test_known_sizes(struct kunit *test) in fortify_test_known_sizes()
139 #define KUNIT_EXPECT_BOS(test, p, expected, name) \ argument
145 #define KUNIT_EXPECT_BDOS(test, p, expected, name) \ argument
149 #define KUNIT_EXPECT_BDOS(test, p, expected, name) \ argument
415 static void fortify_test_strlen(struct kunit *test) in fortify_test_strlen()
438 static void fortify_test_strnlen(struct kunit *test) in fortify_test_strnlen()
476 static void fortify_test_strcpy(struct kunit *test) in fortify_test_strcpy()
534 static void fortify_test_strncpy(struct kunit *test) in fortify_test_strncpy()
650 static void fortify_test_strcat(struct kunit *test) in fortify_test_strcat()
959 static void fortify_test_memchr(struct kunit *test) in fortify_test_memchr()
[all …]
A Dcmdline_kunit.c41 static void cmdline_do_one_test(struct kunit *test, const char *in, int rc, int offset) in cmdline_do_one_test()
54 static void cmdline_test_noint(struct kunit *test) in cmdline_test_noint()
69 static void cmdline_test_lead_int(struct kunit *test) in cmdline_test_lead_int()
86 static void cmdline_test_tail_int(struct kunit *test) in cmdline_test_tail_int()
107 static void cmdline_do_one_range_test(struct kunit *test, const char *in, in cmdline_do_one_range_test()
130 static void cmdline_test_range(struct kunit *test) in cmdline_test_range()
A Dtest_fprobe.c76 static void test_fprobe_entry(struct kunit *test) in test_fprobe_entry()
103 static void test_fprobe(struct kunit *test) in test_fprobe()
128 static void test_fprobe_syms(struct kunit *test) in test_fprobe_syms()
155 static void test_fprobe_data(struct kunit *test) in test_fprobe_data()
171 static void test_fprobe_skip(struct kunit *test) in test_fprobe_skip()
203 static int fprobe_test_init(struct kunit *test) in fprobe_test_init()
A Dmemcpy_kunit.c50 static void memcpy_test(struct kunit *test) in memcpy_test()
110 static void memmove_test(struct kunit *test) in memmove_test()
207 static void memset_test(struct kunit *test) in memset_test()
299 static void set_random_nonzero(struct kunit *test, u8 *byte) in set_random_nonzero()
310 static void init_large(struct kunit *test) in init_large()
327 static void copy_large_test(struct kunit *test, bool use_memmove) in copy_large_test()
366 static void memcpy_large_test(struct kunit *test) in memcpy_large_test()
371 static void memmove_large_test(struct kunit *test) in memmove_large_test()
395 static void inner_loop(struct kunit *test, int bytes, int d_off, int s_off) in inner_loop()
458 static void memmove_overlap_test(struct kunit *test) in memmove_overlap_test()
A Dtest_kprobes.c61 static void test_kprobe(struct kunit *test) in test_kprobe()
122 static void test_kprobes(struct kunit *test) in test_kprobes()
155 static void test_kprobe_missed(struct kunit *test) in test_kprobe_missed()
199 static void test_kretprobe(struct kunit *test) in test_kretprobe()
224 static void test_kretprobes(struct kunit *test) in test_kretprobes()
288 static void test_stacktrace_on_kretprobe(struct kunit *test) in test_stacktrace_on_kretprobe()
349 static void test_stacktrace_on_nested_kretprobe(struct kunit *test) in test_stacktrace_on_nested_kretprobe()
368 static int kprobes_test_init(struct kunit *test) in kprobes_test_init()
/lib/kunit/
A Dkunit-example-test.c22 static void example_simple_test(struct kunit *test) in example_simple_test()
37 static int example_test_init(struct kunit *test) in example_test_init()
48 static void example_test_exit(struct kunit *test) in example_test_exit()
78 static void example_skip_test(struct kunit *test) in example_skip_test()
93 static void example_mark_skipped_test(struct kunit *test) in example_mark_skipped_test()
108 static void example_all_expect_macros_test(struct kunit *test) in example_all_expect_macros_test()
184 static void example_static_stub_test(struct kunit *test) in example_static_stub_test()
243 static void example_params_test(struct kunit *test) in example_params_test()
261 static void example_priv_test(struct kunit *test) in example_priv_test()
275 static void example_slow_test(struct kunit *test) in example_slow_test()
[all …]
A Dkunit-test.c26 struct kunit *test = data; in kunit_test_successful_try() local
34 struct kunit *test = data; in kunit_test_no_catch() local
56 struct kunit *test = data; in kunit_test_unsuccessful_try() local
66 struct kunit *test = data; in kunit_test_catch() local
119 struct kunit *test = data; in kunit_test_null_dereference() local
163 struct kunit test; member
593 static void kunit_log_test(struct kunit *test) in kunit_log_test()
645 static void kunit_log_test(struct kunit *test) in kunit_log_test()
790 struct kunit *test = kunit_get_current_test(); in driver_probe_hook() local
799 struct kunit *test = kunit_get_current_test(); in driver_remove_hook() local
[all …]
A Dassert_test.c14 static void kunit_test_is_literal(struct kunit *test) in kunit_test_is_literal()
26 static void kunit_test_is_str_literal(struct kunit *test) in kunit_test_is_str_literal()
51 static void kunit_test_assert_prologue(struct kunit *test) in kunit_test_assert_prologue()
83 static void verify_assert_print_msg(struct kunit *test, in verify_assert_print_msg()
99 static void kunit_test_assert_print_msg(struct kunit *test) in kunit_test_assert_print_msg()
137 static void kunit_test_unary_assert_format(struct kunit *test) in kunit_test_unary_assert_format()
158 static void kunit_test_ptr_not_err_assert_format(struct kunit *test) in kunit_test_ptr_not_err_assert_format()
183 static void kunit_test_binary_assert_format(struct kunit *test) in kunit_test_binary_assert_format()
222 static void kunit_test_binary_ptr_assert_format(struct kunit *test) in kunit_test_binary_ptr_assert_format()
302 static void kunit_test_assert_hexdump(struct kunit *test) in kunit_test_assert_hexdump()
[all …]
A Dexecutor_test.c17 static void dummy_test(struct kunit *test) {} in dummy_test()
26 static void parse_filter_test(struct kunit *test) in parse_filter_test()
43 static void filter_suites_test(struct kunit *test) in filter_suites_test()
69 static void filter_suites_test_glob_test(struct kunit *test) in filter_suites_test_glob_test()
98 static void filter_suites_to_empty_test(struct kunit *test) in filter_suites_to_empty_test()
118 static void parse_filter_attr_test(struct kunit *test) in parse_filter_attr_test()
150 static void filter_attr_test(struct kunit *test) in filter_attr_test()
188 static void filter_attr_empty_test(struct kunit *test) in filter_attr_empty_test()
209 static void filter_attr_skip_test(struct kunit *test) in filter_attr_skip_test()
268 static void free_suite_set_at_end(struct kunit *test, const void *to_free) in free_suite_set_at_end()
[all …]
A Dstring-stream-test.c42 static void string_stream_managed_init_test(struct kunit *test) in string_stream_managed_init_test()
58 static void string_stream_unmanaged_init_test(struct kunit *test) in string_stream_unmanaged_init_test()
98 static void string_stream_managed_free_test(struct kunit *test) in string_stream_managed_free_test()
121 static void string_stream_resource_free_test(struct kunit *test) in string_stream_resource_free_test()
164 static void string_stream_line_add_test(struct kunit *test) in string_stream_line_add_test()
217 static void string_stream_variable_length_line_test(struct kunit *test) in string_stream_variable_length_line_test()
273 static void string_stream_append_test(struct kunit *test) in string_stream_append_test()
403 static void string_stream_no_auto_newline_test(struct kunit *test) in string_stream_no_auto_newline_test()
426 static void string_stream_auto_newline_test(struct kunit *test) in string_stream_auto_newline_test()
456 static void string_stream_performance_test(struct kunit *test) in string_stream_performance_test()
[all …]
A Dresource.c19 int __kunit_add_resource(struct kunit *test, in __kunit_add_resource()
48 void kunit_remove_resource(struct kunit *test, struct kunit_resource *res) in kunit_remove_resource()
63 int kunit_destroy_resource(struct kunit *test, kunit_resource_match_t match, in kunit_destroy_resource()
95 int kunit_add_action(struct kunit *test, void (*action)(void *), void *ctx) in kunit_add_action()
116 int kunit_add_action_or_reset(struct kunit *test, void (*action)(void *), in kunit_add_action_or_reset()
127 static bool __kunit_action_match(struct kunit *test, in __kunit_action_match()
141 void kunit_remove_action(struct kunit *test, in kunit_remove_action()
161 void kunit_release_action(struct kunit *test, in kunit_release_action()
A Dtest.c108 static void kunit_print_test_stats(struct kunit *test, in kunit_print_test_stats()
175 static void kunit_print_ok_not_ok(struct kunit *test, in kunit_print_ok_not_ok()
306 void __noreturn __kunit_abort(struct kunit *test) in __kunit_abort()
320 void __kunit_do_failed_assertion(struct kunit *test, in __kunit_do_failed_assertion()
465 struct kunit *test; member
473 struct kunit *test = ctx->test; in kunit_try_run_case() local
490 struct kunit *test = ctx->test; in kunit_try_run_case_cleanup() local
501 struct kunit *test = ctx->test; in kunit_catch_run_case_cleanup() local
532 struct kunit *test = ctx->test; in kunit_catch_run_case() local
561 struct kunit *test) in kunit_run_case_catch_errors()
[all …]
A Dplatform-test.c14 static void kunit_platform_device_alloc_test(struct kunit *test) in kunit_platform_device_alloc_test()
24 static void kunit_platform_device_add_test(struct kunit *test) in kunit_platform_device_add_test()
43 static void kunit_platform_device_add_twice_fails_test(struct kunit *test) in kunit_platform_device_add_twice_fails_test()
67 static void kunit_platform_device_add_cleans_up(struct kunit *test) in kunit_platform_device_add_cleans_up()
146 static void kunit_platform_driver_register_test(struct kunit *test) in kunit_platform_driver_register_test()
175 …void kunit_platform_device_prepare_wait_for_probe_completes_when_already_probed(struct kunit *test) in kunit_platform_device_prepare_wait_for_probe_completes_when_already_probed()
A Dstatic_stub.c26 static bool __kunit_static_stub_resource_match(struct kunit *test, in __kunit_static_stub_resource_match()
41 void *__kunit_get_static_stub_address_impl(struct kunit *test, void *real_fn_addr) in __kunit_get_static_stub_address_impl()
60 void kunit_deactivate_static_stub(struct kunit *test, void *real_fn_addr) in kunit_deactivate_static_stub()
87 void __kunit_activate_static_stub(struct kunit *test, in __kunit_activate_static_stub()
A Ddevice.c82 struct device_driver *kunit_driver_create(struct kunit *test, const char *name) in kunit_driver_create()
108 static struct kunit_device *kunit_device_register_internal(struct kunit *test, in kunit_device_register_internal()
149 struct device *kunit_device_register_with_driver(struct kunit *test, in kunit_device_register_with_driver()
166 struct device *kunit_device_register(struct kunit *test, const char *name) in kunit_device_register()
190 void kunit_device_unregister(struct kunit *test, struct device *dev) in kunit_device_unregister()
/lib/crc/tests/
A Dcrc_kunit.c190 crc_benchmark(struct kunit *test, in crc_benchmark()
244 static void crc7_be_test(struct kunit *test) in crc7_be_test()
268 static void crc16_test(struct kunit *test) in crc16_test()
273 static void crc16_benchmark(struct kunit *test) in crc16_benchmark()
292 static void crc_t10dif_test(struct kunit *test) in crc_t10dif_test()
316 static void crc32_le_test(struct kunit *test) in crc32_le_test()
340 static void crc32_be_test(struct kunit *test) in crc32_be_test()
364 static void crc32c_test(struct kunit *test) in crc32c_test()
369 static void crc32c_benchmark(struct kunit *test) in crc32c_benchmark()
388 static void crc64_be_test(struct kunit *test) in crc64_be_test()
[all …]

Completed in 39 milliseconds

123