Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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.c46 struct kunit_case *test_case; in kunit_suite_num_test_cases() local
49 kunit_suite_for_each_test_case(suite, test_case) in kunit_suite_num_test_cases()
93 const struct kunit_case *test_case; in kunit_suite_has_succeeded() local
95 kunit_suite_for_each_test_case(suite, test_case) { in kunit_suite_has_succeeded()
96 if (!test_case->success) in kunit_suite_has_succeeded()
115 struct kunit_case *test_case) in kunit_test_case_num() argument
121 if (tc == test_case) in kunit_test_case_num()
229 struct kunit_case *test_case) in kunit_run_case_internal() argument
242 test_case->run_case(test); in kunit_run_case_internal()
266 struct kunit_case *test_case; member
[all …]
/kernel/linux/linux-5.10/tools/testing/kunit/
Dkunit_parser.py104 def save_non_diagnositic(lines: List[str], test_case: TestCase) -> None:
106 test_case.log.append(lines[0])
115 def parse_ok_not_ok_test_case(lines: List[str], test_case: TestCase) -> bool:
116 save_non_diagnositic(lines, test_case)
118 test_case.status = TestStatus.TEST_CRASHED
126 test_case.log.append(lines.pop(0))
127 test_case.name = match.group(2)
128 if test_case.status == TestStatus.TEST_CRASHED:
131 test_case.status = TestStatus.SUCCESS
133 test_case.status = TestStatus.FAILURE
[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)
/kernel/linux/linux-5.10/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.c179 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()
/kernel/linux/linux-5.10/tools/testing/vsock/
Dutil.h24 struct test_case { struct
44 void run_tests(const struct test_case *test_cases, argument
46 void list_tests(const struct test_case *test_cases);
47 void skip_test(struct test_case *test_cases, size_t test_cases_len,
Dutil.c295 void run_tests(const struct test_case *test_cases, in run_tests()
343 void list_tests(const struct test_case *test_cases) in list_tests()
355 void skip_test(struct test_case *test_cases, size_t test_cases_len, in skip_test()
Dvsock_test.c282 static struct test_case test_cases[] = {
Dvsock_diag_test.c427 static struct test_case test_cases[] = {
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dcore_reloc.c770 struct core_reloc_test_case *test_case; in test_core_reloc() local
784 test_case = &test_cases[i]; in test_core_reloc()
785 if (!test__start_subtest(test_case->case_name)) in test_core_reloc()
788 if (test_case->setup) { in test_core_reloc()
789 err = test_case->setup(test_case); in test_core_reloc()
794 obj = bpf_object__open_file(test_case->bpf_obj_file, NULL); in test_core_reloc()
796 test_case->bpf_obj_file, PTR_ERR(obj))) in test_core_reloc()
800 if (test_case->direct_raw_tp) { in test_core_reloc()
814 if (test_case->btf_src_file) { in test_core_reloc()
815 err = access(test_case->btf_src_file, R_OK); 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()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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
/kernel/linux/linux-5.10/net/mptcp/
Dcrypto_test.c6 struct test_case { struct
15 static struct test_case tests[] = { argument
/kernel/linux/linux-5.10/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)
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/include/kunit/
Dtest.h240 struct kunit_case *test_case);
318 #define kunit_suite_for_each_test_case(suite, test_case) \ argument
319 for (test_case = suite->test_cases; test_case->run_case; test_case++)
/kernel/linux/linux-5.10/tools/testing/ktest/
Dktest.pl958 my $test_case = 0;
1000 $test_case = 1;
1104 $test_case = 1;
1185 return $test_case;
1201 my $test_case;
1204 $test_case = __read_config $config, \$test_num;
1210 if (!$test_case) {