Home
last modified time | relevance | path

Searched refs:test (Results 1 – 25 of 3520) sorted by relevance

12345678910>>...141

/openbmc/linux/drivers/gpu/drm/tests/
H A Ddrm_cmdline_parser_test.c25 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 …]
H A Ddrm_format_test.c25 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 …]
H A Ddrm_modes_test.c24 KUNIT_ASSERT_NOT_NULL(test, priv); in drm_test_modes_init()
34 test->priv = priv; in drm_test_modes_init()
48 KUNIT_ASSERT_NOT_NULL(test, mode); in drm_test_modes_analog_tv_ntsc_480i()
51 KUNIT_EXPECT_EQ(test, mode->hdisplay, 720); in drm_test_modes_analog_tv_ntsc_480i()
63 KUNIT_EXPECT_EQ(test, mode->htotal, 858); in drm_test_modes_analog_tv_ntsc_480i()
66 KUNIT_EXPECT_EQ(test, mode->vtotal, 525); in drm_test_modes_analog_tv_ntsc_480i()
78 KUNIT_ASSERT_NOT_NULL(test, expected); in drm_test_modes_analog_tv_ntsc_480i_inlined()
81 KUNIT_ASSERT_NOT_NULL(test, mode); in drm_test_modes_analog_tv_ntsc_480i_inlined()
95 KUNIT_ASSERT_NOT_NULL(test, mode); in drm_test_modes_analog_tv_pal_576i()
125 KUNIT_ASSERT_NOT_NULL(test, expected); in drm_test_modes_analog_tv_pal_576i_inlined()
[all …]
/openbmc/qemu/tests/qtest/
H A Dendianness-test.c53 if (test->isa_base == -1) { in isa_inb()
64 if (test->isa_base == -1) { in isa_inw()
75 if (test->isa_base == -1) { in isa_inl()
86 if (test->isa_base == -1) { in isa_outb()
97 if (test->isa_base == -1) { in isa_outw()
108 if (test->isa_base == -1) { in isa_outl()
118 const TestCase *test = data; in test_endianness() local
151 isa_outb(qts, test, 0xe3, 0x87); in test_endianness()
159 isa_outb(qts, test, 0xe2, 0x65); in test_endianness()
190 const TestCase *test = data; in test_endianness_split() local
[all …]
H A Dmeson.build2 'ahci-test' : 60,
9 'pxe-test' : 60,
16 'cdrom-test',
19 'qmp-test',
21 'qom-test',
22 'test-hmp',
23 'qos-test',
171 qtests_pci + ['migration-test', 'numa-test', 'cpu-plug-test', 'drive_del-test']
176 qtests_sparc = ['prom-env-test', 'm48t59-test', 'boot-serial-test'] + \
182 ['prom-env-test', 'boot-serial-test']
[all …]
/openbmc/linux/lib/kunit/
H A Dkunit-test.c39 test, in kunit_test_try_catch_successful_try_no_catch()
71 test, in kunit_test_try_catch_unsuccessful_try_does_catch()
140 KUNIT_EXPECT_TRUE(test, list_empty(&ctx->test.resources)); in kunit_resource_test_init_resources()
184 &ctx->test, in kunit_resource_test_destroy_resource()
198 KUNIT_EXPECT_TRUE(test, list_empty(&ctx->test.resources)); in kunit_resource_test_destroy_resource()
205 &ctx->test, in kunit_resource_test_remove_resource()
218 KUNIT_EXPECT_TRUE(test, list_empty(&ctx->test.resources)); in kunit_resource_test_remove_resource()
367 KUNIT_EXPECT_TRUE(test, list_empty(&test->resources)); in kunit_resource_test_static()
403 KUNIT_EXPECT_TRUE(test, list_empty(&test->resources)); in kunit_resource_test_named()
555 KUNIT_EXPECT_NULL(test, test->log); in kunit_log_test()
[all …]
H A Dkunit-example-test.c30 KUNIT_EXPECT_EQ(test, 1 + 1, 2); in example_simple_test()
39 kunit_info(test, "initializing\n"); in example_test_init()
50 kunit_info(test, "cleaning up\n"); in example_test_exit()
114 KUNIT_EXPECT_TRUE(test, true); in example_all_expect_macros_test()
115 KUNIT_EXPECT_FALSE(test, false); in example_all_expect_macros_test()
126 KUNIT_EXPECT_NOT_ERR_OR_NULL(test, test); in example_all_expect_macros_test()
128 KUNIT_EXPECT_PTR_NE(test, test, NULL); in example_all_expect_macros_test()
129 KUNIT_EXPECT_NULL(test, NULL); in example_all_expect_macros_test()
130 KUNIT_EXPECT_NOT_NULL(test, test); in example_all_expect_macros_test()
213 KUNIT_ASSERT_NOT_NULL(test, param); in example_params_test()
[all …]
H A Dexecutor_test.c17 static void dummy_test(struct kunit *test) {} in dummy_test() argument
58 KUNIT_ASSERT_EQ(test, err, 0); in filter_suites_test()
59 free_suite_set_at_end(test, &got); in filter_suites_test()
84 KUNIT_ASSERT_EQ(test, err, 0); in filter_suites_test_glob_test()
85 free_suite_set_at_end(test, &got); in filter_suites_test_glob_test()
111 KUNIT_ASSERT_EQ(test, err, 0); in filter_suites_to_empty_test()
174 KUNIT_ASSERT_EQ(test, err, 0); in filter_attr_test()
175 free_suite_set_at_end(test, &got); in filter_attr_test()
202 KUNIT_ASSERT_EQ(test, err, 0); in filter_attr_empty_test()
224 KUNIT_ASSERT_EQ(test, err, 0); in filter_attr_skip_test()
[all …]
/openbmc/linux/drivers/platform/chrome/
H A Dcros_ec_proto_test.c64 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 …]
/openbmc/linux/mm/kasan/
H A Dkasan_test.c345 KUNIT_EXPECT_KASAN_FAIL(test, in krealloc_more_oob_helper()
377 KUNIT_EXPECT_KASAN_FAIL(test, in krealloc_less_oob_helper()
438 KUNIT_ASSERT_NULL(test, ptr2); in krealloc_uaf()
564 KUNIT_EXPECT_KASAN_FAIL(test, in kmalloc_oob_in_memset()
590 KUNIT_EXPECT_KASAN_FAIL(test, in kmalloc_memmove_negative_size()
609 KUNIT_EXPECT_KASAN_FAIL(test, in kmalloc_memmove_invalid_size()
1011 KUNIT_EXPECT_KASAN_FAIL(test, in kasan_memchr()
1038 KUNIT_EXPECT_KASAN_FAIL(test, in kasan_memcmp()
1199 KUNIT_EXPECT_KASAN_FAIL(test, in rcu_uaf()
1224 KUNIT_EXPECT_KASAN_FAIL(test, in workqueue_uaf()
[all …]
/openbmc/linux/drivers/base/test/
H A Dproperty-entry-test.c31 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 …]
/openbmc/linux/tools/pci/
H A Dpcitest.c53 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 …]
/openbmc/linux/include/kunit/
H A Dtest.h128 void (*run_case)(struct kunit *test);
248 int (*init)(struct kunit *test);
249 void (*exit)(struct kunit *test);
527 (test)->name, ##__VA_ARGS__)
560 #define kunit_err(test, fmt, ...) \ argument
598 _KUNIT_FAILED(test, \
636 _KUNIT_FAILED(test, \
697 _KUNIT_FAILED(test, \
758 _KUNIT_FAILED(test, \
791 _KUNIT_FAILED(test, \
[all …]
/openbmc/qemu/tests/unit/
H A Dmeson.build23 'test-bitmap': [],
27 'test-cutils': [],
28 'test-div128': [],
30 'test-mul64': [],
32 'test-int128': [],
38 'test-qdist': [],
39 'test-qht': [],
40 'test-qtree': [],
41 'test-bitops': [],
49 'test-uuid': [],
[all …]
/openbmc/linux/drivers/thunderbolt/
H A Dtest.c158 sw = alloc_host(test); in alloc_host_usb4()
428 host = alloc_host(test); in tb_test_path_basic()
445 host = alloc_host(test); in tb_test_path_not_connected_walk()
500 host = alloc_host(test); in tb_test_path_single_hop_walk()
558 host = alloc_host(test); in tb_test_path_daisy_chain_walk()
619 host = alloc_host(test); in tb_test_path_simple_tree_walk()
698 host = alloc_host(test); in tb_test_path_complex_tree_walk()
798 host = alloc_host(test); in tb_test_path_max_length_walk()
848 host = alloc_host(test); in tb_test_path_not_connected()
901 host = alloc_host(test); in tb_test_path_not_bonded_lane0()
[all …]
/openbmc/linux/drivers/clk/
H A Dclk-gate_test.c17 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 …]
H A Dclk_test.c177 test->priv = ctx; in clk_test_init_with_ops()
243 KUNIT_ASSERT_EQ(test, in clk_test_set_get_rate()
338 test->priv = ctx; in clk_uncached_test_init()
461 test->priv = ctx; in clk_multiple_parents_mux_test_init()
625 test->priv = ctx; in clk_orphan_transparent_multiple_parent_mux_test_init()
972 test->priv = ctx; in clk_single_parent_mux_test_init()
1246 test->priv = ctx; in clk_orphan_transparent_single_parent_mux_test_init()
1337 test->priv = ctx; in clk_orphan_two_level_root_last_test_init()
2170 test->priv = ctx; in clk_leaf_mux_set_rate_parent_test_init()
2317 test->priv = ctx; in clk_mux_notifier_test_init()
[all …]
/openbmc/phosphor-dbus-monitor/src/example/
H A Dtest.yaml6 - name: test path group
100 - name: test byte watch
106 - name: test u16 watch
112 - name: test u32 watch
118 - name: test u64 watch
124 - name: test s16 watch
130 - name: test s32 watch
136 - name: test s64 watch
297 - name: test method
300 service: org.test
[all …]
/openbmc/linux/lib/
H A Dstrcat_kunit.c13 static void strcat_test(struct kunit *test) in strcat_test() argument
19 KUNIT_EXPECT_EQ(test, strlen(dest), 0); in strcat_test()
22 KUNIT_EXPECT_STREQ(test, dest, ""); in strcat_test()
25 KUNIT_EXPECT_STREQ(test, dest, "four"); in strcat_test()
26 KUNIT_EXPECT_EQ(test, dest[5], '\0'); in strcat_test()
41 KUNIT_EXPECT_STREQ(test, dest, ""); in strncat_test()
44 KUNIT_EXPECT_STREQ(test, dest, ""); in strncat_test()
47 KUNIT_EXPECT_STREQ(test, dest, ""); in strncat_test()
52 KUNIT_EXPECT_EQ(test, dest[5], '\0'); in strncat_test()
68 KUNIT_EXPECT_STREQ(test, dest, ""); in strlcat_test()
[all …]
H A Dlist-test.c249 KUNIT_EXPECT_EQ(test, i, 4); in list_test_list_bulk_move_tail()
255 KUNIT_EXPECT_EQ(test, i, 2); in list_test_list_bulk_move_tail()
363 KUNIT_EXPECT_EQ(test, i, 4); in list_test_list_rotate_to_front()
405 KUNIT_EXPECT_EQ(test, i, 2); in list_test_list_cut_position()
433 KUNIT_EXPECT_EQ(test, i, 1); in list_test_list_cut_before()
463 KUNIT_EXPECT_EQ(test, i, 5); in list_test_list_splice()
488 KUNIT_EXPECT_EQ(test, i, 5); in list_test_list_splice_tail()
513 KUNIT_EXPECT_EQ(test, i, 5); in list_test_list_splice_init()
540 KUNIT_EXPECT_EQ(test, i, 5); in list_test_list_splice_tail_init()
562 KUNIT_EXPECT_TRUE_MSG(test, in list_test_list_entry_is_head()
[all …]
/openbmc/linux/drivers/firewire/
H A Duapi-test.c12 static void structure_layout_event_response(struct kunit *test) in structure_layout_event_response() argument
16 KUNIT_EXPECT_EQ(test, 20, sizeof(struct fw_cdev_event_response)); in structure_layout_event_response()
19 KUNIT_EXPECT_EQ(test, 24, sizeof(struct fw_cdev_event_response)); in structure_layout_event_response()
23 KUNIT_EXPECT_EQ(test, 8, offsetof(struct fw_cdev_event_response, type)); in structure_layout_event_response()
30 static void structure_layout_event_request3(struct kunit *test) in structure_layout_event_request3() argument
32 KUNIT_EXPECT_EQ(test, 56, sizeof(struct fw_cdev_event_request3)); in structure_layout_event_request3()
35 KUNIT_EXPECT_EQ(test, 8, offsetof(struct fw_cdev_event_request3, type)); in structure_layout_event_request3()
49 static void structure_layout_event_response2(struct kunit *test) in structure_layout_event_response2() argument
51 KUNIT_EXPECT_EQ(test, 32, sizeof(struct fw_cdev_event_response2)); in structure_layout_event_response2()
63 static void structure_layout_event_phy_packet2(struct kunit *test) in structure_layout_event_phy_packet2() argument
[all …]
/openbmc/linux/drivers/net/ethernet/microchip/vcap/
H A Dvcap_api_kunit.c304 KUNIT_EXPECT_EQ(test, 0, ret); in test_vcap_xn_rule_creator()
311 KUNIT_EXPECT_EQ(test, 0, ret); in test_vcap_xn_rule_creator()
903 KUNIT_EXPECT_EQ(test, 0, ret); in vcap_api_encode_rule_keyset_test()
975 KUNIT_EXPECT_EQ(test, 0, ret); in vcap_api_encode_rule_actionset_test()
980 KUNIT_EXPECT_EQ(test, 0, ret); in vcap_api_encode_rule_actionset_test()
1030 KUNIT_EXPECT_EQ(test, 0, ret); in vcap_api_rule_add_keyvalue_test()
1043 KUNIT_EXPECT_EQ(test, 0, ret); in vcap_api_rule_add_keyvalue_test()
1057 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()
1083 KUNIT_EXPECT_EQ(test, 0, ret); in vcap_api_rule_add_keyvalue_test()
[all …]
/openbmc/linux/drivers/gpu/drm/ttm/tests/
H A Dttm_pool_test.c35 KUNIT_ASSERT_NOT_NULL(test, priv); in ttm_pool_test_init()
38 test->priv = priv; in ttm_pool_test_init()
61 KUNIT_ASSERT_NOT_NULL(test, bo); in ttm_tt_kunit_init()
65 KUNIT_ASSERT_NOT_NULL(test, tt); in ttm_tt_kunit_init()
68 KUNIT_ASSERT_EQ(test, err, 0); in ttm_tt_kunit_init()
85 KUNIT_ASSERT_NOT_NULL(test, tt); in ttm_pool_pre_populated()
93 KUNIT_ASSERT_EQ(test, err, 0); in ttm_pool_pre_populated()
162 KUNIT_ASSERT_EQ(test, err, 0); in ttm_pool_alloc_basic()
217 KUNIT_ASSERT_EQ(test, err, 0); in ttm_pool_alloc_basic_dma_addr()
225 KUNIT_ASSERT_EQ(test, err, 0); in ttm_pool_alloc_basic_dma_addr()
[all …]
/openbmc/linux/security/apparmor/
H A Dpolicy_unpack_test.c122 test->priv = puf; in policy_unpack_test_init()
193 KUNIT_EXPECT_TRUE(test, in policy_unpack_test_unpack_blob_with_null_name()
207 KUNIT_EXPECT_TRUE(test, in policy_unpack_test_unpack_blob_with_name()
225 KUNIT_EXPECT_EQ(test, size, 0); in policy_unpack_test_unpack_blob_out_of_bounds()
266 KUNIT_EXPECT_EQ(test, size, 0); in policy_unpack_test_unpack_str_out_of_bounds()
280 KUNIT_EXPECT_FALSE(test, in policy_unpack_test_unpack_strdup_with_null_name()
295 KUNIT_EXPECT_FALSE(test, in policy_unpack_test_unpack_strdup_with_name()
313 KUNIT_EXPECT_EQ(test, size, 0); in policy_unpack_test_unpack_strdup_out_of_bounds()
399 struct kunit *test) in policy_unpack_test_unpack_u16_chunk_out_of_bounds_1() argument
409 KUNIT_EXPECT_EQ(test, size, 0); in policy_unpack_test_unpack_u16_chunk_out_of_bounds_1()
[all …]
/openbmc/linux/drivers/mmc/host/
H A Dsdhci-of-aspeed-test.c10 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 …]

12345678910>>...141