/tools/perf/tests/ |
D | demangle-ocaml-test.c | 18 } 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()
|
D | demangle-java-test.c | 18 } 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()
|
D | builtin-test.c | 148 if (!t->test_cases) in num_subtests() 152 while (t->test_cases[num].name) in num_subtests() 165 if (!t->test_cases) in skip_reason() 168 return t->test_cases[subtest >= 0 ? subtest : 0].skip_reason; in skip_reason() 173 if (t->test_cases && subtest >= 0) in test_description() 174 return t->test_cases[subtest].desc; in test_description() 182 return t->test_cases[0].run_case; in test_function() 184 return t->test_cases[subtest].run_case; in test_function() 336 struct test_case test_cases[] = { in run_shell_tests() local 344 .desc = test_cases[0].desc, in run_shell_tests() [all …]
|
D | wp.c | 167 test->test_cases[subtest].skip_reason = "missing kernel support"; in test__wp_modify() 208 .test_cases = wp_tests,
|
D | tests.h | 43 struct test_case *test_cases; member 72 .test_cases = tests__##_name, \
|
D | openat-syscall.c | 83 .test_cases = tests__openat_syscall_event,
|
D | openat-syscall-all-cpus.c | 137 .test_cases = tests__openat_syscall_event_on_all_cpus,
|
D | pfm.c | 193 .test_cases = pfm_tests,
|
D | perf-time-to-tsc.c | 218 .test_cases = time_to_tsc_tests,
|
/tools/testing/selftests/bpf/prog_tests/ |
D | cpu_mask.c | 36 } 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()
|
D | core_extern.c | 28 } 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()
|
D | migrate_reuseport.c | 61 } 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()
|
D | ctx_rewrite.c | 66 static struct test_case test_cases[] = { variable 910 for (i = 0; i < ARRAY_SIZE(test_cases); ++i) in test_ctx_rewrite() 911 run_one_testcase(btf, &test_cases[i]); in test_ctx_rewrite()
|
/tools/testing/vsock/ |
D | util.c | 317 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 …]
|
D | util.h | 47 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,
|
D | vsock_diag_test.c | 425 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()
|
D | vsock_test.c | 1180 static struct test_case test_cases[] = { variable 1373 list_tests(test_cases); in main() 1376 skip_test(test_cases, ARRAY_SIZE(test_cases) - 1, in main() 1401 run_tests(test_cases, &opts); in main()
|
/tools/testing/selftests/mm/ |
D | mremap_test.c | 446 struct test test_cases[MAX_TEST]; in main() local 463 test_cases[0] = MAKE_TEST(page_size, page_size, page_size, in main() 467 test_cases[1] = MAKE_TEST(page_size, page_size/4, page_size, in main() 470 test_cases[2] = MAKE_TEST(page_size/4, page_size, page_size, in main() 475 test_cases[3] = MAKE_TEST(PTE, PTE, PTE * 2, in main() 480 test_cases[4] = MAKE_TEST(_1MB, PTE, _2MB, NON_OVERLAPPING, EXPECT_SUCCESS, in main() 482 test_cases[5] = MAKE_TEST(_1MB, _1MB, _2MB, NON_OVERLAPPING, EXPECT_SUCCESS, in main() 486 test_cases[6] = MAKE_TEST(PMD, PTE, _4MB, NON_OVERLAPPING, EXPECT_SUCCESS, in main() 488 test_cases[7] = MAKE_TEST(PMD, _1MB, _4MB, NON_OVERLAPPING, EXPECT_SUCCESS, in main() 490 test_cases[8] = MAKE_TEST(PMD, PMD, _4MB, NON_OVERLAPPING, EXPECT_SUCCESS, in main() [all …]
|
D | gup_longterm.c | 376 static const struct test_case test_cases[] = { variable 447 ksft_set_plan(ARRAY_SIZE(test_cases) * tests_per_test_case()); in main() 451 for (i = 0; i < ARRAY_SIZE(test_cases); i++) in main() 452 run_test_case(&test_cases[i]); in main()
|
/tools/testing/selftests/kvm/ |
D | system_counter_offset_test.c | 23 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()
|
/tools/testing/selftests/net/ |
D | rxtimestamp.c | 68 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 …]
|
/tools/testing/kunit/ |
D | kunit_json.py | 32 test_cases = [] # List[JsonObj] 40 test_cases.append({"name": subtest.name, "status": status}) 45 "test_cases": test_cases,
|
/tools/perf/arch/x86/tests/ |
D | arch-tests.c | 19 .test_cases = intel_pt_tests, 35 .test_cases = hybrid_tests,
|
/tools/testing/selftests/bpf/ |
D | test_bpftool.py | 94 test_cases = [ 109 for tc in test_cases: 119 test_cases = [ 125 for tc in test_cases:
|
/tools/testing/selftests/kvm/x86_64/ |
D | kvm_clock_test.c | 24 static struct test_case test_cases[] = { variable 39 for (i = 0; i < ARRAY_SIZE(test_cases); i++) in guest_main() 112 for (i = 0; i < ARRAY_SIZE(test_cases); i++) { in enter_guest() 113 setup_clock(vm, &test_cases[i]); in enter_guest()
|