Home
last modified time | relevance | path

Searched refs:test_case (Results 1 – 25 of 38) sorted by relevance

12

/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/
Dmigrate_reuseport.c185 static int drop_ack(struct migrate_reuseport_test_case *test_case, in drop_ack() argument
188 if (test_case->family == AF_INET) in drop_ack()
190 &test_case->addr)->sin_port; in drop_ack()
193 &test_case->addr)->sin6_port; in drop_ack()
195 test_case->link = bpf_program__attach_xdp(skel->progs.drop_ack, in drop_ack()
197 if (!ASSERT_OK_PTR(test_case->link, "bpf_program__attach_xdp")) in drop_ack()
203 static int pass_ack(struct migrate_reuseport_test_case *test_case) in pass_ack() argument
207 err = bpf_link__destroy(test_case->link); in pass_ack()
211 test_case->link = NULL; in pass_ack()
216 static int start_servers(struct migrate_reuseport_test_case *test_case, in start_servers() argument
[all …]
Dcore_reloc.c1001 struct core_reloc_test_case *test_case, test_case_copy; in run_core_reloc_tests() local
1018 test_case = &test_case_copy; in run_core_reloc_tests()
1020 if (!test__start_subtest(test_case->case_name)) in run_core_reloc_tests()
1023 if (test_case->needs_testmod && !env.has_testmod) { in run_core_reloc_tests()
1031 if (!test_case->btf_src_file || test_case->run_btfgen_fails) { in run_core_reloc_tests()
1040 err = run_btfgen(test_case->btf_src_file, btf_file, in run_core_reloc_tests()
1041 test_case->bpf_obj_file); in run_core_reloc_tests()
1045 test_case->btf_src_file = btf_file; in run_core_reloc_tests()
1048 if (test_case->setup) { in run_core_reloc_tests()
1049 err = test_case->setup(test_case); in run_core_reloc_tests()
[all …]
Dxdp_bonding.c558 struct bond_test_case *test_case = &bond_test_cases[i]; in serial_test_xdp_bonding() local
560 if (test__start_subtest(test_case->name)) in serial_test_xdp_bonding()
563 test_case->mode, in serial_test_xdp_bonding()
564 test_case->xmit_policy); in serial_test_xdp_bonding()
Dcore_extern.c23 static struct test_case { struct
131 struct test_case *t = &test_cases[i]; in test_core_extern()
/Linux-v6.1/lib/kunit/
Ddebugfs.c41 struct kunit_case *test_case) in debugfs_print_result() argument
43 if (!test_case || !test_case->log) in debugfs_print_result()
46 seq_printf(seq, "%s", test_case->log); in debugfs_print_result()
56 struct kunit_case *test_case; in debugfs_print_results() local
63 kunit_suite_for_each_test_case(suite, test_case) in debugfs_print_results()
64 debugfs_print_result(seq, suite, test_case); in debugfs_print_results()
94 struct kunit_case *test_case; in kunit_debugfs_create_suite() local
98 kunit_suite_for_each_test_case(suite, test_case) in kunit_debugfs_create_suite()
99 test_case->log = kzalloc(KUNIT_LOG_SIZE, GFP_KERNEL); in kunit_debugfs_create_suite()
110 struct kunit_case *test_case; in kunit_debugfs_destroy_suite() local
[all …]
Dtest.c140 struct kunit_case *test_case; in kunit_suite_num_test_cases() local
143 kunit_suite_for_each_test_case(suite, test_case) in kunit_suite_num_test_cases()
192 const struct kunit_case *test_case; in kunit_suite_has_succeeded() local
198 kunit_suite_for_each_test_case(suite, test_case) { in kunit_suite_has_succeeded()
199 if (test_case->status == KUNIT_FAILURE) in kunit_suite_has_succeeded()
201 else if (test_case->status == KUNIT_SUCCESS) in kunit_suite_has_succeeded()
221 struct kunit_case *test_case) in kunit_test_case_num() argument
227 if (tc == test_case) in kunit_test_case_num()
338 struct kunit_case *test_case) in kunit_run_case_internal() argument
351 test_case->run_case(test); in kunit_run_case_internal()
[all …]
Dexecutor.c61 struct kunit_case *filtered, *test_case; in kunit_filter_tests() local
64 kunit_suite_for_each_test_case(suite, test_case) { in kunit_filter_tests()
65 if (!test_glob || glob_match(test_glob, test_case->name)) in kunit_filter_tests()
83 kunit_suite_for_each_test_case(suite, test_case) { in kunit_filter_tests()
84 if (!test_glob || glob_match(test_glob, test_case->name)) in kunit_filter_tests()
85 filtered[n++] = *test_case; in kunit_filter_tests()
178 struct kunit_case *test_case; in kunit_exec_list_tests() local
184 kunit_suite_for_each_test_case((*suites), test_case) { in kunit_exec_list_tests()
185 pr_info("%s.%s\n", (*suites)->name, test_case->name); in kunit_exec_list_tests()
/Linux-v6.1/drivers/virt/nitro_enclaves/
Dne_misc_dev_test.c123 struct ne_phys_regions_test *test_case = &phys_regions_test_cases[i]; in ne_misc_dev_test_merge_phys_contig_memory_regions() local
127 test_case->paddr, test_case->size); in ne_misc_dev_test_merge_phys_contig_memory_regions()
128 KUNIT_EXPECT_EQ(test, rc, test_case->expect_rc); in ne_misc_dev_test_merge_phys_contig_memory_regions()
129 KUNIT_EXPECT_EQ(test, phys_contig_mem_regions.num, test_case->expect_num); in ne_misc_dev_test_merge_phys_contig_memory_regions()
131 if (test_case->expect_last_paddr == INVALID_VALUE) in ne_misc_dev_test_merge_phys_contig_memory_regions()
136 test_case->expect_last_paddr); in ne_misc_dev_test_merge_phys_contig_memory_regions()
138 test_case->expect_last_size); in ne_misc_dev_test_merge_phys_contig_memory_regions()
/Linux-v6.1/tools/testing/selftests/kvm/
Dsystem_counter_offset_test.c19 struct test_case { struct
23 static struct test_case test_cases[] = { argument
36 static void setup_system_counter(struct kvm_vcpu *vcpu, struct test_case *test) in setup_system_counter()
42 static uint64_t guest_read_system_counter(struct test_case *test) in guest_read_system_counter()
47 static uint64_t host_read_guest_system_counter(struct test_case *test) in host_read_guest_system_counter()
66 struct test_case *test = &test_cases[i]; in guest_main()
96 struct test_case *test = &test_cases[i]; in enter_guest()
/Linux-v6.1/samples/bpf/
Dtest_map_in_map_kern.c110 u16 test_case, port, dst6[8]; in trace_sys_connect() local
131 test_case = dst6[7]; in trace_sys_connect()
142 if (test_case == 0) { in trace_sys_connect()
144 } else if (test_case == 1) { in trace_sys_connect()
146 } else if (test_case == 2) { in trace_sys_connect()
163 if (test_case == 0 || test_case == 1) in trace_sys_connect()
Dmap_perf_test_kern.c191 u16 test_case; in SYSCALL() local
211 test_case = test_params.tcase; in SYSCALL()
212 if (test_case != 3) in SYSCALL()
215 if (test_case == 0) { in SYSCALL()
217 } else if (test_case == 1) { in SYSCALL()
220 } else if (test_case == 2) { in SYSCALL()
233 } else if (test_case == 3) { in SYSCALL()
/Linux-v6.1/tools/testing/vsock/
Dutil.h24 struct test_case { struct
47 void run_tests(const struct test_case *test_cases, argument
49 void list_tests(const struct test_case *test_cases);
50 void skip_test(struct test_case *test_cases, size_t test_cases_len,
Dutil.c317 void run_tests(const struct test_case *test_cases, in run_tests()
365 void list_tests(const struct test_case *test_cases) in list_tests()
377 void skip_test(struct test_case *test_cases, size_t test_cases_len, in skip_test()
/Linux-v6.1/tools/testing/selftests/kvm/x86_64/
Dkvm_clock_test.c19 struct test_case { struct
24 static struct test_case test_cases[] = { argument
77 static void setup_clock(struct kvm_vm *vm, struct test_case *test_case) in setup_clock() argument
83 data.clock = test_case->kvmclock_base; in setup_clock()
84 if (test_case->realtime_offset) { in setup_clock()
99 data.realtime += test_case->realtime_offset; in setup_clock()
/Linux-v6.1/lib/
Dtest_kmod.c84 enum kmod_test_case test_case; member
147 static const char *test_case_str(enum kmod_test_case test_case) in test_case_str() argument
149 switch (test_case) { in test_case_str()
203 switch (config->test_case) { in test_kmod_put_module()
223 switch (config->test_case) { in run_request()
255 switch (config->test_case) { in tally_work_test()
430 test_case_str(config->test_case), in run_test_driver()
431 config->test_case); in run_test_driver()
447 test_case_str(config->test_case), in run_test_fs_type()
448 config->test_case); in run_test_fs_type()
[all …]
/Linux-v6.1/tools/testing/selftests/vm/
Dmremap_test.c306 static void run_mremap_test_case(struct test test_case, int *failures, in run_mremap_test_case() argument
310 long long remap_time = remap_region(test_case.config, threshold_mb, in run_mremap_test_case()
314 if (test_case.expect_failure) in run_mremap_test_case()
316 test_case.name); in run_mremap_test_case()
318 ksft_test_result_fail("%s\n", test_case.name); in run_mremap_test_case()
327 test_case.config.region_size <= threshold_mb * _1MB) in run_mremap_test_case()
329 test_case.name, remap_time); in run_mremap_test_case()
331 ksft_test_result_pass("%s\n", test_case.name); in run_mremap_test_case()
/Linux-v6.1/tools/testing/selftests/kmod/
Dkmod.sh600 test_case $TEST_ID $TEST_COUNT
631 function test_case() function
661 test_case $1 $(get_test_count $1)
666 test_case $1 $2
669 test_case $1 1
/Linux-v6.1/tools/perf/tests/
Dtests.h34 struct test_case { struct
43 struct test_case *test_cases; argument
66 struct test_case tests__##_name[] = { \
Dclang.c20 static struct test_case clang_tests[] = {
Dopenat-syscall.c73 static struct test_case tests__openat_syscall_event[] = {
Dopenat-syscall-all-cpus.c128 static struct test_case tests__openat_syscall_event_on_all_cpus[] = {
/Linux-v6.1/net/mptcp/
Dcrypto_test.c6 struct test_case { struct
15 static struct test_case tests[] = { argument
/Linux-v6.1/tools/testing/selftests/sysctl/
Dsysctl.sh903 test_case $TEST_ID $TEST_COUNT $TEST_TARGET
934 function test_case() function
966 test_case $1 $(get_test_count $1) $(get_test_target $1)
971 test_case $1 $2 $(get_test_target $1)
974 test_case $1 1 $(get_test_target $1)
/Linux-v6.1/include/kunit/
Dtest.h240 struct kunit_case *test_case);
308 #define kunit_suite_for_each_test_case(suite, test_case) \ argument
309 for (test_case = suite->test_cases; test_case->run_case; test_case++)
/Linux-v6.1/tools/testing/selftests/net/
Drxtimestamp.c43 struct test_case { struct
68 static struct test_case test_cases[] = { argument
128 void print_test_case(struct test_case *t) in print_test_case()

12