Home
last modified time | relevance | path

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

/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()
/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
129 for (i = 0; i < ARRAY_SIZE(test_cases); i++) { in test_core_extern()
130 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 test_migrate_reuseport()
554 test__start_subtest(test_cases[i].name); in test_migrate_reuseport()
555 run_test(&test_cases[i], skel); in test_migrate_reuseport()
Dcore_reloc.c495 static struct core_reloc_test_case test_cases[] = { variable
833 for (i = 0; i < ARRAY_SIZE(test_cases); i++) { in test_core_reloc()
834 test_case = &test_cases[i]; in test_core_reloc()
/tools/testing/selftests/vm/
Dmremap_test.c339 struct test test_cases[MAX_TEST]; in main() local
355 test_cases[0] = MAKE_TEST(page_size, page_size, page_size, in main()
359 test_cases[1] = MAKE_TEST(page_size, page_size/4, page_size, in main()
362 test_cases[2] = MAKE_TEST(page_size/4, page_size, page_size, in main()
367 test_cases[3] = MAKE_TEST(PTE, PTE, PTE * 2, in main()
372 test_cases[4] = MAKE_TEST(_1MB, PTE, _2MB, NON_OVERLAPPING, EXPECT_SUCCESS, in main()
374 test_cases[5] = MAKE_TEST(_1MB, _1MB, _2MB, NON_OVERLAPPING, EXPECT_SUCCESS, in main()
378 test_cases[6] = MAKE_TEST(PMD, PTE, _4MB, NON_OVERLAPPING, EXPECT_SUCCESS, in main()
380 test_cases[7] = MAKE_TEST(PMD, _1MB, _4MB, NON_OVERLAPPING, EXPECT_SUCCESS, in main()
382 test_cases[8] = MAKE_TEST(PMD, PMD, _4MB, NON_OVERLAPPING, EXPECT_SUCCESS, in main()
[all …]
/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.c394 static struct test_case test_cases[] = { variable
546 list_tests(test_cases); in main()
549 skip_test(test_cases, ARRAY_SIZE(test_cases) - 1, in main()
574 run_tests(test_cases, &opts); in main()
/tools/testing/kunit/
Dkunit_json.py32 test_cases = []
41 test_cases.append(test_case)
42 sub_group["test_cases"] = test_cases
/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/selftests/bpf/
Dtest_bpftool.py92 test_cases = [
110 for tc in test_cases:
120 test_cases = [
129 for tc in test_cases: