Home
last modified time | relevance | path

Searched +defs:test +defs:suite (Results 1 – 14 of 14) sorted by relevance

/linux/lib/kunit/
H A Dtest.c108 static void kunit_print_test_stats(struct kunit *test, in kunit_print_test_stats()
138 size_t kunit_suite_num_test_cases(struct kunit_suite *suite) in kunit_suite_num_test_cases()
157 static void kunit_print_suite_start(struct kunit_suite *suite) in kunit_print_suite_start()
175 static void kunit_print_ok_not_ok(struct kunit *test, in kunit_print_ok_not_ok()
212 enum kunit_status kunit_suite_has_succeeded(struct kunit_suite *suite) in kunit_suite_has_succeeded()
233 static void kunit_print_suite_end(struct kunit_suite *suite) in kunit_print_suite_end()
242 unsigned int kunit_test_case_num(struct kunit_suite *suite, in kunit_test_case_num()
258 static void kunit_print_string_stream(struct kunit *test, in kunit_print_string_stream()
281 static void kunit_fail(struct kunit *test, const struct kunit_loc *loc, in kunit_fail()
306 void __noreturn __kunit_abort(struct kunit *test) in __kunit_abort()
[all …]
H A Dkunit-example-test.c22 static void example_simple_test(struct kunit *test) in example_simple_test() argument
37 example_test_init(struct kunit * test) example_test_init() argument
48 example_test_exit(struct kunit * test) example_test_exit() argument
58 example_test_init_suite(struct kunit_suite * suite) example_test_init_suite() argument
69 example_test_exit_suite(struct kunit_suite * suite) example_test_exit_suite() argument
78 example_skip_test(struct kunit * test) example_skip_test() argument
93 example_mark_skipped_test(struct kunit * test) example_mark_skipped_test() argument
108 example_all_expect_macros_test(struct kunit * test) example_all_expect_macros_test() argument
184 example_static_stub_test(struct kunit * test) example_static_stub_test() argument
208 example_static_stub_using_fn_ptr_test(struct kunit * test) example_static_stub_using_fn_ptr_test() argument
243 example_params_test(struct kunit * test) example_params_test() argument
261 example_priv_test(struct kunit * test) example_priv_test() argument
275 example_slow_test(struct kunit * test) example_slow_test() argument
348 example_init_test(struct kunit * test) example_init_test() argument
[all...]
H A Dattributes.c215 struct kunit_suite *suite = is_test ? NULL : test_or_suite; in attr_speed_get() local
216 struct kunit_case *test = is_test ? test_or_suite : NULL; in attr_speed_get() local
226 struct kunit_suite *suite = is_test ? NULL : test_or_suite; in attr_module_get() local
227 struct kunit_case *test = is_test ? test_or_suite : NULL; in attr_module_get() local
240 struct kunit_suite *suite = is_test ? NULL : test_or_suite; in attr_is_init_get() local
241 struct kunit_case *test = is_test ? test_or_suite : NULL; in attr_is_init_get() local
291 struct kunit_suite *suite = is_test ? NULL : test_or_suite; in kunit_print_attr() local
292 struct kunit_case *test = is_test ? test_or_suite : NULL; in kunit_print_attr() local
397 struct kunit_suite *kunit_filter_attr_tests(const struct kunit_suite *const suite, in kunit_filter_attr_tests()
H 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 …]
H 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
39 static void kunit_test_try_catch_successful_try_no_catch(struct kunit *test) in kunit_test_try_catch_successful_try_no_catch()
56 struct kunit *test = data; in kunit_test_unsuccessful_try() local
66 struct kunit *test = data; in kunit_test_catch() local
72 static void kunit_test_try_catch_unsuccessful_try_does_catch(struct kunit *test) in kunit_test_try_catch_unsuccessful_try_does_catch()
87 static int kunit_try_catch_test_init(struct kunit *test) in kunit_try_catch_test_init()
119 struct kunit *test = data; in kunit_test_null_dereference() local
127 static void kunit_test_fault_null_dereference(struct kunit *test) in kunit_test_fault_null_dereference()
163 struct kunit test; member
[all …]
/linux/lib/crypto/tests/
H A Dpoly1305_kunit.c46 static int poly1305_suite_init(struct kunit_suite *suite) in poly1305_suite_init()
52 static void poly1305_suite_exit(struct kunit_suite *suite) in poly1305_suite_exit()
82 static void test_poly1305_allones_keys_and_message(struct kunit *test) in test_poly1305_allones_keys_and_message()
115 static void test_poly1305_reduction_edge_cases(struct kunit *test) in test_poly1305_reduction_edge_cases()
H A Dhash-test-template.h74 static int hash_suite_init(struct kunit_suite *suite) in hash_suite_init()
91 static void hash_suite_exit(struct kunit_suite *suite) in hash_suite_exit()
105 static void test_hash_test_vectors(struct kunit *test) in test_hash_test_vectors()
128 static void test_hash_all_lens_up_to_4096(struct kunit *test) in test_hash_all_lens_up_to_4096()
148 static void test_hash_incremental_updates(struct kunit *test) in test_hash_incremental_updates()
198 static void test_hash_buffer_overruns(struct kunit *test) in test_hash_buffer_overruns()
234 static void test_hash_overlaps(struct kunit *test) in test_hash_overlaps()
283 static void test_hash_alignment_consistency(struct kunit *test) in test_hash_alignment_consistency()
307 static void test_hash_ctx_zeroization(struct kunit *test) in test_hash_ctx_zeroization()
347 static void test_hash_interrupt_context_1(struct kunit *test) in test_hash_interrupt_context_1()
[all …]
/linux/drivers/pinctrl/qcom/
H A Dtlmm-test.c145 static void tlmm_test_request_hard_irq(struct kunit *test, unsigned long irqflags) in tlmm_test_request_hard_irq()
154 static void tlmm_test_request_threaded_irq(struct kunit *test, unsigned long irqflags) in tlmm_test_request_threaded_irq()
166 static void tlmm_test_silent(struct kunit *test, unsigned long irqflags) in tlmm_test_silent()
188 static void tlmm_test_silent_rising(struct kunit *test) in tlmm_test_silent_rising()
196 static void tlmm_test_silent_falling(struct kunit *test) in tlmm_test_silent_falling()
204 static void tlmm_test_silent_low(struct kunit *test) in tlmm_test_silent_low()
212 static void tlmm_test_silent_high(struct kunit *test) in tlmm_test_silent_high()
220 static void tlmm_test_rising(struct kunit *test) in tlmm_test_rising()
245 static void tlmm_test_falling(struct kunit *test) in tlmm_test_falling()
270 static void tlmm_test_low(struct kunit *test) in tlmm_test_low()
[all …]
/linux/lib/crc/tests/
H A Dcrc_kunit.c90 static int crc_suite_init(struct kunit_suite *suite) in crc_suite_init()
107 static void crc_suite_exit(struct kunit_suite *suite) in crc_suite_exit()
176 static void crc_interrupt_context_test(struct kunit *test, in crc_interrupt_context_test()
194 static void crc_test(struct kunit *test, const struct crc_variant *v) in crc_test()
234 crc_benchmark(struct kunit *test, in crc_benchmark()
288 static void crc7_be_test(struct kunit *test) in crc7_be_test()
293 static void crc7_be_benchmark(struct kunit *test) in crc7_be_benchmark()
312 static void crc16_test(struct kunit *test) in crc16_test()
317 static void crc16_benchmark(struct kunit *test) in crc16_benchmark()
336 static void crc_t10dif_test(struct kunit *test) in crc_t10dif_test()
[all …]
/linux/mm/kmsan/
H A Dkmsan_test.c165 static void test_uninit_kmalloc(struct kunit *test) in test_uninit_kmalloc()
179 static void test_init_kmalloc(struct kunit *test) in test_init_kmalloc()
192 static void test_init_kzalloc(struct kunit *test) in test_init_kzalloc()
204 static void test_uninit_stack_var(struct kunit *test) in test_uninit_stack_var()
215 static void test_init_stack_var(struct kunit *test) in test_init_stack_var()
246 static void test_params(struct kunit *test) in test_params()
274 static void test_uninit_multiple_params(struct kunit *test) in test_uninit_multiple_params()
298 static void test_uninit_kmsan_check_memory(struct kunit *test) in test_uninit_kmsan_check_memory()
316 static void test_init_kmsan_vmap_vunmap(struct kunit *test) in test_init_kmsan_vmap_vunmap()
347 static void test_init_vmalloc(struct kunit *test) in test_init_vmalloc()
[all …]
/linux/tools/testing/selftests/kvm/include/
H A Dkvm_test_harness.h26 #define KVM_ONE_VCPU_TEST(suite, test, guestcode) \ argument
/linux/kernel/kcsan/
H A Dkcsan_test.c35 #define KCSAN_TEST_REQUIRES(test, cond) do { \ argument
528 test_barrier_nothreads(struct kunit * test) test_barrier_nothreads() argument
713 test_basic(struct kunit * test) test_basic() argument
744 test_concurrent_races(struct kunit * test) test_concurrent_races() argument
773 test_novalue_change(struct kunit * test) test_novalue_change() argument
805 test_novalue_change_exception(struct kunit * test) test_novalue_change_exception() argument
831 test_unknown_origin(struct kunit * test) test_unknown_origin() argument
853 test_write_write_assume_atomic(struct kunit * test) test_write_write_assume_atomic() argument
879 test_write_write_struct(struct kunit * test) test_write_write_struct() argument
901 test_write_write_struct_part(struct kunit * test) test_write_write_struct_part() argument
920 test_read_atomic_write_atomic(struct kunit * test) test_read_atomic_write_atomic() argument
933 test_read_plain_atomic_write(struct kunit * test) test_read_plain_atomic_write() argument
954 test_read_plain_atomic_rmw(struct kunit * test) test_read_plain_atomic_rmw() argument
976 test_zero_size_access(struct kunit * test) test_zero_size_access() argument
1004 test_data_race(struct kunit * test) test_data_race() argument
1017 test_data_racy_qualifier(struct kunit * test) test_data_racy_qualifier() argument
1029 test_assert_exclusive_writer(struct kunit * test) test_assert_exclusive_writer() argument
1047 test_assert_exclusive_access(struct kunit * test) test_assert_exclusive_access() argument
1065 test_assert_exclusive_access_writer(struct kunit * test) test_assert_exclusive_access_writer() argument
1101 test_assert_exclusive_bits_change(struct kunit * test) test_assert_exclusive_bits_change() argument
1120 test_assert_exclusive_bits_nochange(struct kunit * test) test_assert_exclusive_bits_nochange() argument
1132 test_assert_exclusive_writer_scoped(struct kunit * test) test_assert_exclusive_writer_scoped() argument
1159 test_assert_exclusive_access_scoped(struct kunit * test) test_assert_exclusive_access_scoped() argument
1195 test_jiffies_noreport(struct kunit * test) test_jiffies_noreport() argument
1208 test_seqlock_noreport(struct kunit * test) test_seqlock_noreport() argument
1226 test_atomic_builtins(struct kunit * test) test_atomic_builtins() argument
1273 test_1bit_value_change(struct kunit * test) test_1bit_value_change() argument
1296 test_correct_barrier(struct kunit * test) test_correct_barrier() argument
1315 test_missing_barrier(struct kunit * test) test_missing_barrier() argument
1337 test_atomic_builtins_correct_barrier(struct kunit * test) test_atomic_builtins_correct_barrier() argument
1357 test_atomic_builtins_missing_barrier(struct kunit * test) test_atomic_builtins_missing_barrier() argument
1511 test_init(struct kunit * test) test_init() argument
1563 test_exit(struct kunit * test) test_exit() argument
1600 kcsan_suite_init(struct kunit_suite * suite) kcsan_suite_init() argument
1606 kcsan_suite_exit(struct kunit_suite * suite) kcsan_suite_exit() argument
[all...]
/linux/mm/kasan/
H A Dkasan_test_c.c62 static int kasan_suite_init(struct kunit_suite *suite) in kasan_suite_init()
83 static void kasan_suite_exit(struct kunit_suite *suite) in kasan_suite_exit()
91 static void kasan_test_exit(struct kunit *test) in kasan_test_exit()
121 #define KUNIT_EXPECT_KASAN_RESULT(test, expr, expr_str, fail) \ argument
158 #define KUNIT_EXPECT_KASAN_FAIL(test, expr) \ argument
175 #define KUNIT_EXPECT_KASAN_FAIL_READ(test, expr) \ argument
179 #define KASAN_TEST_NEEDS_CONFIG_ON(test, config) do { \ argument
184 #define KASAN_TEST_NEEDS_CONFIG_OFF(test, config) do { \ argument
189 #define KASAN_TEST_NEEDS_CHECKED_MEMINTRINSICS(test) do { \ argument
198 static void kmalloc_oob_right(struct kunit *test) in kmalloc_oob_right()
[all …]
/linux/tools/perf/tests/
H A Dbuiltin-test.c160 #define test_suite__for_each_test_case(suite, idx) \ argument
295 struct test_suite *test; member
495 static int start_test(struct test_suite *test, int curr_suite, int curr_test_case, in start_test()
747 #define for_each_suite(suite) \ in build_suites() argument