Home
last modified time | relevance | path

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

12

/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.c148 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 …]
Dwp.c167 test->test_cases[subtest].skip_reason = "missing kernel support"; in test__wp_modify()
208 .test_cases = wp_tests,
Dtests.h43 struct test_case *test_cases; member
72 .test_cases = tests__##_name, \
Dopenat-syscall.c83 .test_cases = tests__openat_syscall_event,
Dopenat-syscall-all-cpus.c137 .test_cases = tests__openat_syscall_event_on_all_cpus,
Dpfm.c193 .test_cases = pfm_tests,
Dperf-time-to-tsc.c218 .test_cases = time_to_tsc_tests,
/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()
Dctx_rewrite.c66 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/
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.c1180 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/
Dmremap_test.c446 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 …]
Dgup_longterm.c376 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/
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()
/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 …]
/tools/testing/kunit/
Dkunit_json.py32 test_cases = [] # List[JsonObj]
40 test_cases.append({"name": subtest.name, "status": status})
45 "test_cases": test_cases,
/tools/perf/arch/x86/tests/
Darch-tests.c19 .test_cases = intel_pt_tests,
35 .test_cases = hybrid_tests,
/tools/testing/selftests/bpf/
Dtest_bpftool.py94 test_cases = [
109 for tc in test_cases:
119 test_cases = [
125 for tc in test_cases:
/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()
112 for (i = 0; i < ARRAY_SIZE(test_cases); i++) { in enter_guest()
113 setup_clock(vm, &test_cases[i]); in enter_guest()

12