/linux-6.3-rc2/drivers/gpu/drm/tests/ |
A D | drm_cmdline_parser_test.c | 25 KUNIT_EXPECT_FALSE(test, mode.rb); in drm_test_cmdline_force_e_only() 26 KUNIT_EXPECT_FALSE(test, mode.cvt); in drm_test_cmdline_force_e_only() 43 KUNIT_EXPECT_FALSE(test, mode.rb); in drm_test_cmdline_force_D_only_not_digital() 44 KUNIT_EXPECT_FALSE(test, mode.cvt); in drm_test_cmdline_force_D_only_not_digital() 65 KUNIT_EXPECT_FALSE(test, mode.rb); in drm_test_cmdline_force_D_only_hdmi() 66 KUNIT_EXPECT_FALSE(test, mode.cvt); in drm_test_cmdline_force_D_only_hdmi() 87 KUNIT_EXPECT_FALSE(test, mode.rb); in drm_test_cmdline_force_D_only_dvi() 105 KUNIT_EXPECT_FALSE(test, mode.rb); in drm_test_cmdline_force_d_only() 127 KUNIT_EXPECT_FALSE(test, mode.rb); in drm_test_cmdline_res() 171 KUNIT_EXPECT_TRUE(test, mode.rb); in drm_test_cmdline_res_vesa_rblank() [all …]
|
A D | drm_format_test.c | 25 KUNIT_ASSERT_NOT_NULL(test, info); in drm_test_format_block_width_one_plane() 36 KUNIT_ASSERT_NOT_NULL(test, info); in drm_test_format_block_width_two_plane() 48 KUNIT_ASSERT_NOT_NULL(test, info); in drm_test_format_block_width_three_plane() 61 KUNIT_ASSERT_NOT_NULL(test, info); in drm_test_format_block_width_tiled() 81 KUNIT_ASSERT_NOT_NULL(test, info); in drm_test_format_block_height_one_plane() 92 KUNIT_ASSERT_NOT_NULL(test, info); in drm_test_format_block_height_two_plane() 104 KUNIT_ASSERT_NOT_NULL(test, info); in drm_test_format_block_height_three_plane() 117 KUNIT_ASSERT_NOT_NULL(test, info); in drm_test_format_block_height_tiled() 137 KUNIT_ASSERT_NOT_NULL(test, info); in drm_test_format_min_pitch_one_plane_8bpp() 160 KUNIT_ASSERT_NOT_NULL(test, info); in drm_test_format_min_pitch_one_plane_16bpp() [all …]
|
A D | drm_modes_test.c | 24 KUNIT_ASSERT_NOT_NULL(test, priv); in drm_test_modes_init() 34 test->priv = priv; in drm_test_modes_init() 55 KUNIT_ASSERT_NOT_NULL(test, mode); in drm_test_modes_analog_tv_ntsc_480i() 58 KUNIT_EXPECT_EQ(test, mode->hdisplay, 720); in drm_test_modes_analog_tv_ntsc_480i() 70 KUNIT_EXPECT_EQ(test, mode->htotal, 858); in drm_test_modes_analog_tv_ntsc_480i() 73 KUNIT_EXPECT_EQ(test, mode->vtotal, 525); in drm_test_modes_analog_tv_ntsc_480i() 85 KUNIT_ASSERT_NOT_NULL(test, expected); in drm_test_modes_analog_tv_ntsc_480i_inlined() 88 KUNIT_ASSERT_NOT_NULL(test, mode); in drm_test_modes_analog_tv_ntsc_480i_inlined() 102 KUNIT_ASSERT_NOT_NULL(test, mode); in drm_test_modes_analog_tv_pal_576i() 132 KUNIT_ASSERT_NOT_NULL(test, expected); in drm_test_modes_analog_tv_pal_576i_inlined() [all …]
|
/linux-6.3-rc2/drivers/platform/chrome/ |
A D | cros_ec_proto_test.c | 64 KUNIT_EXPECT_EQ(test, in cros_ec_proto_test_prepare_tx_legacy_normal() 170 KUNIT_EXPECT_EQ(test, ret, 0); in cros_ec_proto_test_check_result() 259 KUNIT_EXPECT_EQ(test, ret, 0); in cros_ec_proto_test_query_all_normal() 381 KUNIT_EXPECT_EQ(test, ret, 0); in cros_ec_proto_test_query_all_no_pd_return_error() 446 KUNIT_EXPECT_EQ(test, ret, 0); in cros_ec_proto_test_query_all_no_pd_return0() 503 KUNIT_EXPECT_EQ(test, ret, 0); in cros_ec_proto_test_query_all_legacy_normal_v3_return_error() 568 KUNIT_EXPECT_EQ(test, ret, 0); in cros_ec_proto_test_query_all_legacy_normal_v3_return0() 849 KUNIT_EXPECT_EQ(test, ret, 0); in cros_ec_proto_test_query_all_no_mkbp() 937 KUNIT_EXPECT_EQ(test, ret, 0); in cros_ec_proto_test_query_all_no_mkbp_return_error() 1025 KUNIT_EXPECT_EQ(test, ret, 0); in cros_ec_proto_test_query_all_no_mkbp_return0() [all …]
|
/linux-6.3-rc2/lib/kunit/ |
A D | kunit-test.c | 38 test, in kunit_test_try_catch_successful_try_no_catch() 70 test, in kunit_test_try_catch_unsuccessful_try_does_catch() 139 KUNIT_EXPECT_TRUE(test, list_empty(&ctx->test.resources)); in kunit_resource_test_init_resources() 183 &ctx->test, in kunit_resource_test_destroy_resource() 197 KUNIT_EXPECT_TRUE(test, list_empty(&ctx->test.resources)); in kunit_resource_test_destroy_resource() 204 &ctx->test, in kunit_resource_test_remove_resource() 217 KUNIT_EXPECT_TRUE(test, list_empty(&ctx->test.resources)); in kunit_resource_test_remove_resource() 223 KUNIT_EXPECT_TRUE(test, list_empty(&ctx->test.resources)); in kunit_resource_test_remove_resource() 366 KUNIT_EXPECT_TRUE(test, list_empty(&test->resources)); in kunit_resource_test_static() 402 KUNIT_EXPECT_TRUE(test, list_empty(&test->resources)); in kunit_resource_test_named() [all …]
|
A D | kunit-example-test.c | 30 KUNIT_EXPECT_EQ(test, 1 + 1, 2); in example_simple_test() 39 kunit_info(test, "initializing\n"); in example_test_init() 94 KUNIT_EXPECT_TRUE(test, true); in example_all_expect_macros_test() 95 KUNIT_EXPECT_FALSE(test, false); in example_all_expect_macros_test() 106 KUNIT_EXPECT_NOT_ERR_OR_NULL(test, test); in example_all_expect_macros_test() 108 KUNIT_EXPECT_PTR_NE(test, test, NULL); in example_all_expect_macros_test() 109 KUNIT_EXPECT_NULL(test, NULL); in example_all_expect_macros_test() 110 KUNIT_EXPECT_NOT_NULL(test, test); in example_all_expect_macros_test() 113 KUNIT_EXPECT_STREQ(test, "hi", "hi"); in example_all_expect_macros_test() 157 KUNIT_EXPECT_EQ(test, add_one(1), 2); in example_static_stub_test() [all …]
|
/linux-6.3-rc2/mm/kasan/ |
A D | kasan_test.c | 363 KUNIT_EXPECT_KASAN_FAIL(test, in krealloc_more_oob_helper() 395 KUNIT_EXPECT_KASAN_FAIL(test, in krealloc_less_oob_helper() 456 KUNIT_ASSERT_NULL(test, ptr2); in krealloc_uaf() 581 KUNIT_EXPECT_KASAN_FAIL(test, in kmalloc_oob_in_memset() 607 KUNIT_EXPECT_KASAN_FAIL(test, in kmalloc_memmove_negative_size() 626 KUNIT_EXPECT_KASAN_FAIL(test, in kmalloc_memmove_invalid_size() 1028 KUNIT_EXPECT_KASAN_FAIL(test, in kasan_memchr() 1055 KUNIT_EXPECT_KASAN_FAIL(test, in kasan_memcmp() 1216 KUNIT_EXPECT_KASAN_FAIL(test, in rcu_uaf() 1241 KUNIT_EXPECT_KASAN_FAIL(test, in workqueue_uaf() [all …]
|
/linux-6.3-rc2/include/kunit/ |
A D | test.h | 103 void (*run_case)(struct kunit *test); 178 int (*init)(struct kunit *test); 179 void (*exit)(struct kunit *test); 429 (test)->name, ##__VA_ARGS__) 462 #define kunit_err(test, fmt, ...) \ argument 496 _KUNIT_FAILED(test, \ 534 _KUNIT_FAILED(test, \ 595 _KUNIT_FAILED(test, \ 656 _KUNIT_FAILED(test, \ 689 _KUNIT_FAILED(test, \ [all …]
|
/linux-6.3-rc2/drivers/base/test/ |
A D | property-entry-test.c | 31 KUNIT_EXPECT_EQ(test, error, 1); in pe_test_uints() 34 KUNIT_EXPECT_EQ(test, error, 0); in pe_test_uints() 35 KUNIT_EXPECT_EQ(test, val_u8, 8); in pe_test_uints() 38 KUNIT_EXPECT_EQ(test, error, 0); in pe_test_uints() 42 KUNIT_EXPECT_NE(test, error, 0); in pe_test_uints() 45 KUNIT_EXPECT_NE(test, error, 0); in pe_test_uints() 48 KUNIT_EXPECT_NE(test, error, 0); in pe_test_uints() 51 KUNIT_EXPECT_EQ(test, error, 0); in pe_test_uints() 55 KUNIT_EXPECT_EQ(test, error, 1); in pe_test_uints() 58 KUNIT_EXPECT_EQ(test, error, 0); in pe_test_uints() [all …]
|
/linux-6.3-rc2/tools/pci/ |
A D | pcitest.c | 53 if (test->barnum >= 0 && test->barnum <= 5) { in run_test() 98 if (test->msinum > 0 && test->msinum <= 32) { in run_test() 107 if (test->msixnum > 0 && test->msixnum <= 2048) { in run_test() 128 if (test->read) { in run_test() 140 if (test->copy) { in run_test() 162 test = calloc(1, sizeof(*test)); in main() 163 if (!test) { in main() 184 if (test->barnum < 0 || test->barnum > 5) in main() 192 if (test->msinum < 1 || test->msinum > 32) in main() 197 if (test->msixnum < 1 || test->msixnum > 2048) in main() [all …]
|
/linux-6.3-rc2/drivers/thunderbolt/ |
A D | test.c | 158 sw = alloc_host(test); in alloc_host_usb4() 411 host = alloc_host(test); in tb_test_path_basic() 428 host = alloc_host(test); in tb_test_path_not_connected_walk() 483 host = alloc_host(test); in tb_test_path_single_hop_walk() 541 host = alloc_host(test); in tb_test_path_daisy_chain_walk() 602 host = alloc_host(test); in tb_test_path_simple_tree_walk() 681 host = alloc_host(test); in tb_test_path_complex_tree_walk() 781 host = alloc_host(test); in tb_test_path_max_length_walk() 831 host = alloc_host(test); in tb_test_path_not_connected() 884 host = alloc_host(test); in tb_test_path_not_bonded_lane0() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/microchip/vcap/ |
A D | vcap_api_kunit.c | 305 KUNIT_EXPECT_EQ(test, 0, ret); in test_vcap_xn_rule_creator() 312 KUNIT_EXPECT_EQ(test, 0, ret); in test_vcap_xn_rule_creator() 904 KUNIT_EXPECT_EQ(test, 0, ret); in vcap_api_encode_rule_keyset_test() 976 KUNIT_EXPECT_EQ(test, 0, ret); in vcap_api_encode_rule_actionset_test() 981 KUNIT_EXPECT_EQ(test, 0, ret); in vcap_api_encode_rule_actionset_test() 1021 KUNIT_EXPECT_EQ(test, 0, ret); in vcap_api_rule_add_keyvalue_test() 1033 KUNIT_EXPECT_EQ(test, 0, ret); in vcap_api_rule_add_keyvalue_test() 1046 KUNIT_EXPECT_EQ(test, 0, ret); in vcap_api_rule_add_keyvalue_test() 1058 KUNIT_EXPECT_EQ(test, 0, ret); in vcap_api_rule_add_keyvalue_test() 1070 KUNIT_EXPECT_EQ(test, 0, ret); in vcap_api_rule_add_keyvalue_test() [all …]
|
/linux-6.3-rc2/drivers/clk/ |
A D | clk-gate_test.c | 17 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, pdev); in clk_gate_register_test_dev() 21 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, ret); in clk_gate_register_test_dev() 40 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, ret); in clk_gate_register_test_parent_names() 60 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, ret); in clk_gate_register_test_parent_data() 112 KUNIT_EXPECT_TRUE(test, IS_ERR(ret)); in clk_gate_register_test_hiword_invalid() 141 test->priv = ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); in clk_gate_test_alloc_ctx() 156 KUNIT_EXPECT_EQ(test, prate, rate); in clk_gate_test_parent_rate() 209 ctx = clk_gate_test_alloc_ctx(test); in clk_gate_test_init() 288 ctx = clk_gate_test_alloc_ctx(test); in clk_gate_test_invert_init() 361 ctx = clk_gate_test_alloc_ctx(test); in clk_gate_test_hiword_init() [all …]
|
A D | clk_test.c | 154 test->priv = ctx; in clk_test_init_with_ops() 220 KUNIT_ASSERT_EQ(test, in clk_test_set_get_rate() 245 KUNIT_ASSERT_EQ(test, in clk_test_set_set_get_rate() 314 test->priv = ctx; in clk_uncached_test_init() 437 test->priv = ctx; in clk_multiple_parents_mux_test_init() 601 test->priv = ctx; in clk_orphan_transparent_multiple_parent_mux_test_init() 948 test->priv = ctx; in clk_single_parent_mux_test_init() 1222 test->priv = ctx; in clk_orphan_transparent_single_parent_mux_test_init() 1313 test->priv = ctx; in clk_orphan_two_level_root_last_test_init() 2146 test->priv = ctx; in clk_leaf_mux_set_rate_parent_test_init() [all …]
|
/linux-6.3-rc2/lib/ |
A D | list-test.c | 248 KUNIT_EXPECT_EQ(test, i, 4); in list_test_list_bulk_move_tail() 254 KUNIT_EXPECT_EQ(test, i, 2); in list_test_list_bulk_move_tail() 362 KUNIT_EXPECT_EQ(test, i, 4); in list_test_list_rotate_to_front() 404 KUNIT_EXPECT_EQ(test, i, 2); in list_test_list_cut_position() 432 KUNIT_EXPECT_EQ(test, i, 1); in list_test_list_cut_before() 462 KUNIT_EXPECT_EQ(test, i, 5); in list_test_list_splice() 487 KUNIT_EXPECT_EQ(test, i, 5); in list_test_list_splice_tail() 512 KUNIT_EXPECT_EQ(test, i, 5); in list_test_list_splice_init() 539 KUNIT_EXPECT_EQ(test, i, 5); in list_test_list_splice_tail_init() 561 KUNIT_EXPECT_TRUE_MSG(test, in list_test_list_entry_is_head() [all …]
|
A D | test_printf.c | 156 test("", &nul); in test_basic() 157 test("100%", "100%%"); in test_basic() 158 test("xxx%yyy", "xxx%cyyy", '%'); in test_basic() 187 test("", "%s%.0s", "", "123"); in test_string() 206 test("123456", "%.s", "123456"); in test_string() 341 test(buf, fmt, p); in test_hashed() 352 test("(null)", "%pE", NULL); in null_pointer() 485 test("(null)", "%pd", NULL); in dentry() 487 test("(null)", "%pD", NULL); in dentry() 520 test("(%pt?)", "%pt", &tm); in time_and_date() [all …]
|
A D | strscpy_kunit.c | 96 tc(test, "a", 0, -E2BIG, 0, 0, 0); in strscpy_test() 97 tc(test, "", 0, -E2BIG, 0, 0, 0); in strscpy_test() 99 tc(test, "a", 1, -E2BIG, 0, 1, 0); in strscpy_test() 100 tc(test, "", 1, 0, 0, 1, 0); in strscpy_test() 102 tc(test, "ab", 2, -E2BIG, 1, 1, 0); in strscpy_test() 103 tc(test, "a", 2, 1, 1, 1, 0); in strscpy_test() 104 tc(test, "", 2, 0, 0, 1, 1); in strscpy_test() 106 tc(test, "abc", 3, -E2BIG, 2, 1, 0); in strscpy_test() 107 tc(test, "ab", 3, 2, 2, 1, 0); in strscpy_test() 108 tc(test, "a", 3, 1, 1, 1, 1); in strscpy_test() [all …]
|
A D | cpumask_kunit.c | 16 #define EXPECT_FOR_EACH_CPU_EQ(test, mask) \ argument 36 KUNIT_EXPECT_EQ((test), weight, iter); \ 39 #define EXPECT_FOR_EACH_CPU_WRAP_EQ(test, mask) \ argument 83 static void test_cpumask_last(struct kunit *test) in test_cpumask_last() argument 91 static void test_cpumask_next(struct kunit *test) in test_cpumask_next() argument 105 EXPECT_FOR_EACH_CPU_EQ(test, &mask_empty); in test_cpumask_iterators() 106 EXPECT_FOR_EACH_CPU_WRAP_EQ(test, &mask_empty); in test_cpumask_iterators() 119 EXPECT_FOR_EACH_CPU_BUILTIN_EQ(test, possible); in test_cpumask_iterators_builtin() 124 EXPECT_FOR_EACH_CPU_BUILTIN_EQ(test, online); in test_cpumask_iterators_builtin() 125 EXPECT_FOR_EACH_CPU_BUILTIN_EQ(test, present); in test_cpumask_iterators_builtin() [all …]
|
A D | crc32test.c | 681 test[i].start, test[i].length); in crc32c_test() 689 if (test[i].crc32c_le != __crc32c_le(test[i].crc, test_buf + in crc32c_test() 690 test[i].start, test[i].length)) in crc32c_test() 717 crc_full = __crc32c_le(test[i].crc, test_buf + test[i].start, in crc32c_combine_test() 761 test[i].start, test[i].length); in crc32_test() 764 test[i].start, test[i].length); in crc32_test() 772 if (test[i].crc_le != crc32_le(test[i].crc, test_buf + in crc32_test() 773 test[i].start, test[i].length)) in crc32_test() 776 if (test[i].crc_be != crc32_be(test[i].crc, test_buf + in crc32_test() 777 test[i].start, test[i].length)) in crc32_test() [all …]
|
/linux-6.3-rc2/security/apparmor/ |
A D | policy_unpack_test.c | 123 test->priv = puf; in policy_unpack_test_init() 194 KUNIT_EXPECT_TRUE(test, in policy_unpack_test_unpack_blob_with_null_name() 208 KUNIT_EXPECT_TRUE(test, in policy_unpack_test_unpack_blob_with_name() 226 KUNIT_EXPECT_EQ(test, size, 0); in policy_unpack_test_unpack_blob_out_of_bounds() 267 KUNIT_EXPECT_EQ(test, size, 0); in policy_unpack_test_unpack_str_out_of_bounds() 281 KUNIT_EXPECT_FALSE(test, in policy_unpack_test_unpack_strdup_with_null_name() 296 KUNIT_EXPECT_FALSE(test, in policy_unpack_test_unpack_strdup_with_name() 314 KUNIT_EXPECT_EQ(test, size, 0); in policy_unpack_test_unpack_strdup_out_of_bounds() 400 struct kunit *test) in policy_unpack_test_unpack_u16_chunk_out_of_bounds_1() argument 410 KUNIT_EXPECT_EQ(test, size, 0); in policy_unpack_test_unpack_u16_chunk_out_of_bounds_1() [all …]
|
/linux-6.3-rc2/drivers/mmc/host/ |
A D | sdhci-of-aspeed-test.c | 10 KUNIT_EXPECT_EQ(test, 0, in aspeed_sdhci_phase_ddr52() 12 KUNIT_EXPECT_EQ(test, 0, in aspeed_sdhci_phase_ddr52() 14 KUNIT_EXPECT_EQ(test, 1, in aspeed_sdhci_phase_ddr52() 16 KUNIT_EXPECT_EQ(test, 1, in aspeed_sdhci_phase_ddr52() 18 KUNIT_EXPECT_EQ(test, 2, in aspeed_sdhci_phase_ddr52() 20 KUNIT_EXPECT_EQ(test, 3, in aspeed_sdhci_phase_ddr52() 22 KUNIT_EXPECT_EQ(test, 14, in aspeed_sdhci_phase_ddr52() 24 KUNIT_EXPECT_EQ(test, 15, in aspeed_sdhci_phase_ddr52() 26 KUNIT_EXPECT_EQ(test, 15, in aspeed_sdhci_phase_ddr52() 53 KUNIT_EXPECT_EQ(test, 0, in aspeed_sdhci_phase_hs200() [all …]
|
/linux-6.3-rc2/drivers/mmc/core/ |
A D | mmc_test.c | 539 if (!test->gr) in mmc_test_save_transfer_result() 602 test->area.sg_len); in mmc_test_print_avg_rate() 642 ret = mmc_test_buffer_transfer(test, test->buffer, i, 512, 1); in __mmc_test_prepare() 2935 mmc_hostname(test->card->host), mmc_card_id(test->card)); in mmc_test_run() 2974 test->gr = gr; in mmc_test_run() 3092 test = kzalloc(sizeof(*test), GFP_KERNEL); 3093 if (!test) 3102 test->card = card; 3110 if (test->buffer && test->highmem) { 3112 if (test->buffer) { [all …]
|
/linux-6.3-rc2/tools/testing/scatterlist/ |
A D | main.c | 8 struct test { struct 30 static void fail(struct test *test, struct sg_table *st, const char *cond) in fail() argument 37 test->size, test->max_seg, test->expected_segments, st->nents, in fail() 55 struct test *test, tests[] = { in main() local 86 for (i = 0, test = tests; test->expected_segments; test++, i++) { in main() 87 int left_pages = test->pfn_app ? test->num_pages : 0; in main() 92 set_pages(pages, test->pfn, test->num_pages); in main() 96 &append, pages, test->num_pages, 0, test->size, in main() 101 test->size, test->max_seg, GFP_KERNEL); in main() 109 set_pages(pages, test->pfn_app, test->num_pages); in main() [all …]
|
/linux-6.3-rc2/drivers/misc/ |
A D | pci_endpoint_test.c | 212 test->num_irqs = irq; in pci_endpoint_test_alloc_irq_vectors() 226 test->num_irqs = 0; in pci_endpoint_test_release_irq() 239 IRQF_SHARED, test->name, test); in pci_endpoint_test_request_irq() 795 test = devm_kzalloc(dev, sizeof(*test), GFP_KERNEL); in pci_endpoint_test_probe() 796 if (!test) in pci_endpoint_test_probe() 801 test->pdev = pdev; in pci_endpoint_test_probe() 854 test->base = test->bar[test_reg_bar]; in pci_endpoint_test_probe() 855 if (!test->base) { in pci_endpoint_test_probe() 873 if (!test->name) { in pci_endpoint_test_probe() 908 kfree(test->name); in pci_endpoint_test_probe() [all …]
|
/linux-6.3-rc2/tools/testing/kunit/ |
A D | kunit_parser.py | 498 message = test.name 537 print_log(test.log) 539 print_log(test.log) 626 if test.ok_status() or test.counts.total() < 100: 715 test = Test() 720 test.name = "main" 768 if test.name != "" and not peek_test_name_match(lines, test): 789 return test 804 test = Test() 812 test.status = test.counts.get_status() [all …]
|