Home
last modified time | relevance | path

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

/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.c820 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 …]
Dcore_extern.c23 static struct test_case { struct
130 struct test_case *t = &test_cases[i]; in test_core_extern()
Dxdp_bonding.c554 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()
/tools/testing/kunit/
Dkunit_parser.py142 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 …]
Dkunit_json.py36 test_case = {"name": case.name, "status": "FAIL"}
38 test_case["status"] = "PASS"
40 test_case["status"] = "ERROR"
41 test_cases.append(test_case)
/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()
Dvsock_diag_test.c425 static struct test_case test_cases[] = {
Dvsock_test.c394 static struct test_case test_cases[] = {
/tools/testing/selftests/vm/
Dmremap_test.c262 static void run_mremap_test_case(struct test test_case, int *failures, in run_mremap_test_case() argument
266 long long remap_time = remap_region(test_case.config, threshold_mb, in run_mremap_test_case()
270 if (test_case.expect_failure) in run_mremap_test_case()
272 test_case.name); in run_mremap_test_case()
274 ksft_test_result_fail("%s\n", test_case.name); in run_mremap_test_case()
283 test_case.config.region_size <= threshold_mb * _1MB) in run_mremap_test_case()
285 test_case.name, remap_time); in run_mremap_test_case()
287 ksft_test_result_pass("%s\n", test_case.name); in run_mremap_test_case()
/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
/tools/testing/selftests/sysctl/
Dsysctl.sh880 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)
/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()
/tools/testing/ktest/
Dktest.pl1022 my $test_case = 0;
1063 $test_case = 1;
1166 $test_case = 1;
1247 return $test_case;
1263 my $test_case;
1266 $test_case = __read_config $config, \$test_num;
1272 if (!$test_case) {
/tools/testing/selftests/filesystems/fuse/
Dfuse_test.c2249 struct test_case { struct
2255 const struct test_case *test_case) in run_one_test() argument
2257 ksft_print_msg("Running %s\n", test_case->name); in run_one_test()
2258 if (test_case->pfunc(mount_dir) == TEST_SUCCESS) in run_one_test()
2259 ksft_test_result_pass("%s\n", test_case->name); in run_one_test()
2261 ksft_test_result_fail("%s\n", test_case->name); in run_one_test()
2275 const struct test_case cases[] = { in main()
/tools/testing/selftests/filesystems/incfs/
Dincfs_test.c4705 struct test_case { struct
4710 void run_one_test(const char *mount_dir, struct test_case *test_case) in run_one_test() argument
4714 ksft_print_msg("Running %s\n", test_case->name); in run_one_test()
4715 ret = test_case->pfunc(mount_dir); in run_one_test()
4718 ksft_test_result_pass("%s\n", test_case->name); in run_one_test()
4720 ksft_test_result_skip("%s\n", test_case->name); in run_one_test()
4722 ksft_test_result_fail("%s\n", test_case->name); in run_one_test()
4757 struct test_case cases[] = { in main()