/Linux-v5.15/tools/testing/selftests/bpf/prog_tests/ |
D | migrate_reuseport.c | 185 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__detach(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 …]
|
D | core_reloc.c | 820 struct core_reloc_test_case *test_case; in test_core_reloc() local 834 test_case = &test_cases[i]; in test_core_reloc() 835 if (!test__start_subtest(test_case->case_name)) in test_core_reloc() 838 if (test_case->needs_testmod && !env.has_testmod) { in test_core_reloc() 843 if (test_case->setup) { in test_core_reloc() 844 err = test_case->setup(test_case); in test_core_reloc() 849 if (test_case->btf_src_file) { in test_core_reloc() 850 err = access(test_case->btf_src_file, R_OK); in test_core_reloc() 855 open_opts.btf_custom_path = test_case->btf_src_file; in test_core_reloc() 856 obj = bpf_object__open_file(test_case->bpf_obj_file, &open_opts); in test_core_reloc() [all …]
|
D | xdp_bonding.c | 554 struct bond_test_case *test_case = &bond_test_cases[i]; in test_xdp_bonding() local 556 if (test__start_subtest(test_case->name)) in test_xdp_bonding() 559 test_case->mode, in test_xdp_bonding() 560 test_case->xmit_policy); in test_xdp_bonding()
|
D | core_extern.c | 23 static struct test_case { struct 130 struct test_case *t = &test_cases[i]; in test_core_extern()
|
/Linux-v5.15/lib/kunit/ |
D | debugfs.c | 41 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 …]
|
D | test.c | 127 struct kunit_case *test_case; in kunit_suite_num_test_cases() local 130 kunit_suite_for_each_test_case(suite, test_case) in kunit_suite_num_test_cases() 179 const struct kunit_case *test_case; in kunit_suite_has_succeeded() local 182 kunit_suite_for_each_test_case(suite, test_case) { in kunit_suite_has_succeeded() 183 if (test_case->status == KUNIT_FAILURE) in kunit_suite_has_succeeded() 185 else if (test_case->status == KUNIT_SUCCESS) in kunit_suite_has_succeeded() 205 struct kunit_case *test_case) in kunit_test_case_num() argument 211 if (tc == test_case) in kunit_test_case_num() 320 struct kunit_case *test_case) in kunit_run_case_internal() argument 333 test_case->run_case(test); in kunit_run_case_internal() [all …]
|
/Linux-v5.15/tools/testing/kunit/ |
D | kunit_parser.py | 142 def save_non_diagnostic(lines: LineStream, test_case: TestCase) -> None: 144 test_case.log.append(lines.peek()) 155 def parse_ok_not_ok_test_case(lines: LineStream, test_case: TestCase) -> bool: 156 save_non_diagnostic(lines, test_case) 158 test_case.status = TestStatus.TEST_CRASHED 166 test_case.log.append(lines.pop()) 167 test_case.name = match.group(2) 170 test_case.status = TestStatus.SKIPPED 172 if test_case.status == TestStatus.TEST_CRASHED: 175 test_case.status = TestStatus.SUCCESS [all …]
|
D | kunit_json.py | 36 test_case = {"name": case.name, "status": "FAIL"} 38 test_case["status"] = "PASS" 40 test_case["status"] = "ERROR" 41 test_cases.append(test_case)
|
/Linux-v5.15/samples/bpf/ |
D | test_map_in_map_kern.c | 110 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()
|
D | map_perf_test_kern.c | 179 u16 test_case; in SYSCALL() local 199 test_case = test_params.tcase; in SYSCALL() 200 if (test_case != 3) in SYSCALL() 203 if (test_case == 0) { in SYSCALL() 205 } else if (test_case == 1) { in SYSCALL() 208 } else if (test_case == 2) { in SYSCALL() 221 } else if (test_case == 3) { in SYSCALL()
|
/Linux-v5.15/tools/testing/vsock/ |
D | util.h | 24 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,
|
D | util.c | 317 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()
|
D | vsock_diag_test.c | 425 static struct test_case test_cases[] = {
|
D | vsock_test.c | 394 static struct test_case test_cases[] = {
|
/Linux-v5.15/lib/ |
D | test_kmod.c | 84 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-v5.15/tools/testing/selftests/vm/ |
D | mremap_test.c | 188 static void run_mremap_test_case(struct test test_case, int *failures, in run_mremap_test_case() argument 192 long long remap_time = remap_region(test_case.config, threshold_mb, in run_mremap_test_case() 196 if (test_case.expect_failure) in run_mremap_test_case() 198 test_case.name); in run_mremap_test_case() 200 ksft_test_result_fail("%s\n", test_case.name); in run_mremap_test_case() 209 test_case.config.region_size <= threshold_mb * _1MB) in run_mremap_test_case() 211 test_case.name, remap_time); in run_mremap_test_case() 213 ksft_test_result_pass("%s\n", test_case.name); in run_mremap_test_case()
|
/Linux-v5.15/tools/testing/selftests/kmod/ |
D | kmod.sh | 600 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-v5.15/net/mptcp/ |
D | crypto_test.c | 6 struct test_case { struct 15 static struct test_case tests[] = { argument
|
/Linux-v5.15/tools/testing/selftests/sysctl/ |
D | sysctl.sh | 880 test_case $TEST_ID $TEST_COUNT $TEST_TARGET 911 function test_case() function 943 test_case $1 $(get_test_count $1) $(get_test_target $1) 948 test_case $1 $2 $(get_test_target $1) 951 test_case $1 1 $(get_test_target $1)
|
/Linux-v5.15/tools/testing/selftests/net/ |
D | rxtimestamp.c | 43 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()
|
/Linux-v5.15/include/kunit/ |
D | test.h | 295 struct kunit_case *test_case); 373 #define kunit_suite_for_each_test_case(suite, test_case) \ argument 374 for (test_case = suite->test_cases; test_case->run_case; test_case++)
|
/Linux-v5.15/tools/testing/ktest/ |
D | ktest.pl | 1020 my $test_case = 0; 1061 $test_case = 1; 1164 $test_case = 1; 1245 return $test_case; 1261 my $test_case; 1264 $test_case = __read_config $config, \$test_num; 1270 if (!$test_case) {
|