Home
last modified time | relevance | path

Searched refs:test_cases (Results 1 – 25 of 104) sorted by relevance

12345

/linux-6.1.9/tools/perf/tests/
Ddemangle-ocaml-test.c18 } test_cases[] = { in test__demangle_ocaml() local
29 for (i = 0; i < ARRAY_SIZE(test_cases); i++) { in test__demangle_ocaml()
30 buf = ocaml_demangle_sym(test_cases[i].mangled); in test__demangle_ocaml()
31 if ((buf == NULL && test_cases[i].demangled != NULL) in test__demangle_ocaml()
32 || (buf != NULL && test_cases[i].demangled == NULL) in test__demangle_ocaml()
33 || (buf != NULL && strcmp(buf, test_cases[i].demangled))) { in test__demangle_ocaml()
34 pr_debug("FAILED: %s: %s != %s\n", test_cases[i].mangled, in test__demangle_ocaml()
36 test_cases[i].demangled == NULL ? "(null)" : test_cases[i].demangled); in test__demangle_ocaml()
Ddemangle-java-test.c18 } test_cases[] = { in test__demangle_java() local
31 for (i = 0; i < sizeof(test_cases) / sizeof(test_cases[0]); i++) { in test__demangle_java()
32 buf = java_demangle_sym(test_cases[i].mangled, 0); in test__demangle_java()
33 if (strcmp(buf, test_cases[i].demangled)) { in test__demangle_java()
34 pr_debug("FAILED: %s: %s != %s\n", test_cases[i].mangled, in test__demangle_java()
35 buf, test_cases[i].demangled); in test__demangle_java()
Dbuiltin-test.c125 if (!t->test_cases) in num_subtests()
129 while (t->test_cases[num].name) in num_subtests()
142 if (!t->test_cases) in skip_reason()
145 return t->test_cases[subtest >= 0 ? subtest : 0].skip_reason; in skip_reason()
150 if (t->test_cases && subtest >= 0) in test_description()
151 return t->test_cases[subtest].desc; in test_description()
159 return t->test_cases[0].run_case; in test_function()
161 return t->test_cases[subtest].run_case; in test_function()
313 struct test_case test_cases[] = { in run_shell_tests() local
321 .desc = test_cases[0].desc, in run_shell_tests()
[all …]
Dtests.h43 struct test_case *test_cases; member
72 .test_cases = tests__##_name, \
Dwp.c165 test->test_cases[subtest].skip_reason = "missing kernel support"; in test__wp_modify()
206 .test_cases = wp_tests,
Dclang.c31 .test_cases = clang_tests,
/linux-6.1.9/tools/testing/selftests/vm/
Dmremap_test.c384 struct test test_cases[MAX_TEST]; in main() local
400 test_cases[0] = MAKE_TEST(page_size, page_size, page_size, in main()
404 test_cases[1] = MAKE_TEST(page_size, page_size/4, page_size, in main()
407 test_cases[2] = MAKE_TEST(page_size/4, page_size, page_size, in main()
412 test_cases[3] = MAKE_TEST(PTE, PTE, PTE * 2, in main()
417 test_cases[4] = MAKE_TEST(_1MB, PTE, _2MB, NON_OVERLAPPING, EXPECT_SUCCESS, in main()
419 test_cases[5] = MAKE_TEST(_1MB, _1MB, _2MB, NON_OVERLAPPING, EXPECT_SUCCESS, in main()
423 test_cases[6] = MAKE_TEST(PMD, PTE, _4MB, NON_OVERLAPPING, EXPECT_SUCCESS, in main()
425 test_cases[7] = MAKE_TEST(PMD, _1MB, _4MB, NON_OVERLAPPING, EXPECT_SUCCESS, in main()
427 test_cases[8] = MAKE_TEST(PMD, PMD, _4MB, NON_OVERLAPPING, EXPECT_SUCCESS, in main()
[all …]
/linux-6.1.9/tools/testing/vsock/
Dutil.c317 void run_tests(const struct test_case *test_cases, in run_tests() argument
322 for (i = 0; test_cases[i].name; i++) { in run_tests()
326 printf("%d - %s...", i, test_cases[i].name); in run_tests()
336 if (test_cases[i].skip) in run_tests()
342 if (control_cmpln(line, "SKIP", false) || test_cases[i].skip) { in run_tests()
354 run = test_cases[i].run_client; in run_tests()
356 run = test_cases[i].run_server; in run_tests()
365 void list_tests(const struct test_case *test_cases) in list_tests() argument
371 for (i = 0; test_cases[i].name; i++) in list_tests()
372 printf("%d\t%s\n", i, test_cases[i].name); in list_tests()
[all …]
Dutil.h47 void run_tests(const struct test_case *test_cases,
49 void list_tests(const struct test_case *test_cases);
50 void skip_test(struct test_case *test_cases, size_t test_cases_len,
Dvsock_diag_test.c425 static struct test_case test_cases[] = { variable
551 list_tests(test_cases); in main()
554 skip_test(test_cases, ARRAY_SIZE(test_cases) - 1, in main()
579 run_tests(test_cases, &opts); in main()
Dvsock_test.c702 static struct test_case test_cases[] = { variable
869 list_tests(test_cases); in main()
872 skip_test(test_cases, ARRAY_SIZE(test_cases) - 1, in main()
897 run_tests(test_cases, &opts); in main()
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dcpu_mask.c36 } test_cases[] = { variable
63 for (i = 0; i < ARRAY_SIZE(test_cases); i++) { in test_cpu_mask()
65 err = parse_cpu_mask_str(test_cases[i].cpu_mask, &mask, &n); in test_cpu_mask()
66 if (test_cases[i].fails) { in test_cpu_mask()
74 validate_mask(i + 1, test_cases[i].expect, mask, n); in test_cpu_mask()
Dcore_extern.c28 } test_cases[] = { variable
130 for (i = 0; i < ARRAY_SIZE(test_cases); i++) { in test_core_extern()
131 struct test_case *t = &test_cases[i]; in test_core_extern()
Dmigrate_reuseport.c61 } test_cases[] = { variable
553 for (i = 0; i < ARRAY_SIZE(test_cases); i++) { in serial_test_migrate_reuseport()
554 test__start_subtest(test_cases[i].name); in serial_test_migrate_reuseport()
555 run_test(&test_cases[i], skel); in serial_test_migrate_reuseport()
/linux-6.1.9/lib/kunit/
Dexecutor_test.c14 struct kunit_case *test_cases);
88 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, got.start[0]->test_cases); in filter_suites_test_glob_test()
89 KUNIT_EXPECT_STREQ(test, (const char *)got.start[0]->test_cases[0].name, "test2"); in filter_suites_test_glob_test()
90 KUNIT_EXPECT_FALSE(test, got.start[0]->test_cases[1].name); in filter_suites_test_glob_test()
121 .test_cases = executor_test_cases,
147 struct kunit_case *test_cases) in alloc_fake_suite() argument
154 suite->test_cases = test_cases; in alloc_fake_suite()
Dkunit-test.c103 .test_cases = kunit_try_catch_test_cases,
443 .test_cases = kunit_resource_test_cases,
455 .test_cases = kunit_log_test_cases,
521 .test_cases = kunit_status_test_cases,
/linux-6.1.9/tools/testing/selftests/net/
Drxtimestamp.c68 static struct test_case test_cases[] = { variable
334 config_so_flags(rcv, test_cases[test_num].sockopt); in run_test_case()
338 failed = do_recv(rcv, read_size, test_cases[test_num].expected); in run_test_case()
346 print_test_case(&test_cases[test_num]); in run_test_case()
347 if (!strict && test_cases[test_num].warn_on_fail) in run_test_case()
368 for (t = 0; t < ARRAY_SIZE(test_cases); t++) { in main()
370 print_test_case(&test_cases[t]); in main()
375 if (t >= ARRAY_SIZE(test_cases)) in main()
378 test_cases[t].enabled = true; in main()
414 for (t = 0; t < ARRAY_SIZE(test_cases); t++) { in main()
[all …]
/linux-6.1.9/tools/testing/selftests/kvm/
Dsystem_counter_offset_test.c23 static struct test_case test_cases[] = { variable
65 for (i = 0; i < ARRAY_SIZE(test_cases); i++) { in guest_main()
66 struct test_case *test = &test_cases[i]; in guest_main()
95 for (i = 0; i < ARRAY_SIZE(test_cases); i++) { in enter_guest()
96 struct test_case *test = &test_cases[i]; in enter_guest()
/linux-6.1.9/tools/testing/kunit/
Dkunit_json.py32 test_cases = [] # List[JsonObj]
40 test_cases.append({"name": subtest.name, "status": status})
45 "test_cases": test_cases,
/linux-6.1.9/tools/testing/selftests/bpf/
Dtest_bpftool.py94 test_cases = [
109 for tc in test_cases:
119 test_cases = [
125 for tc in test_cases:
/linux-6.1.9/tools/testing/selftests/kvm/x86_64/
Dkvm_clock_test.c24 static struct test_case test_cases[] = { variable
39 for (i = 0; i < ARRAY_SIZE(test_cases); i++) in guest_main()
113 for (i = 0; i < ARRAY_SIZE(test_cases); i++) { in enter_guest()
114 setup_clock(vm, &test_cases[i]); in enter_guest()
/linux-6.1.9/lib/
Dslub_kunit.c132 static struct kunit_case test_cases[] = { variable
148 .test_cases = test_cases,
Dtest_sort.c43 .test_cases = sort_test_cases,
/linux-6.1.9/drivers/clk/
Dclk-gate_test.c127 .test_cases = clk_gate_register_test_cases,
236 .test_cases = clk_gate_test_cases,
309 .test_cases = clk_gate_test_invert_cases,
381 .test_cases = clk_gate_test_hiword_cases,
454 .test_cases = clk_gate_test_enabled_cases,
/linux-6.1.9/arch/s390/lib/
Dtest_modules.c27 .test_cases = modules_testcases,

12345