/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | migrate_reuseport.c | 211 test_case->link = NULL; in pass_ack() 225 &test_case->addr, &test_case->addrlen); in start_servers() 228 test_case->servers[i] = socket(test_case->family, SOCK_STREAM, in start_servers() 240 test_case->addrlen); in start_servers() 254 &test_case->addrlen); in start_servers() 259 if (test_case->fastopen) { in start_servers() 284 test_case->clients[i] = socket(test_case->family, SOCK_STREAM, in start_clients() 470 if (test_case->fastopen) { in run_test() 482 if (test_case->drop_ack) { in run_test() 518 if (test_case->link) { in run_test() [all …]
|
A D | core_reloc.c | 825 test_case = &test_cases[i]; in test_core_reloc() 834 if (test_case->setup) { in test_core_reloc() 835 err = test_case->setup(test_case); in test_core_reloc() 840 if (test_case->btf_src_file) { in test_core_reloc() 853 if (test_case->prog_sec_name) { in test_core_reloc() 865 if (!test_case->fails) in test_core_reloc() 884 memcpy(data->in, test_case->input, test_case->input_len); in test_core_reloc() 892 if (test_case->trigger) { in test_core_reloc() 893 if (!ASSERT_OK(test_case->trigger(test_case), "test_trigger")) in test_core_reloc() 908 test_case->output_len) == 0; in test_core_reloc() [all …]
|
A D | xdp_bonding.c | 554 struct bond_test_case *test_case = &bond_test_cases[i]; in serial_test_xdp_bonding() local 556 if (test__start_subtest(test_case->name)) in serial_test_xdp_bonding() 559 test_case->mode, in serial_test_xdp_bonding() 560 test_case->xmit_policy); in serial_test_xdp_bonding()
|
A D | core_extern.c | 23 static struct test_case { struct 130 struct test_case *t = &test_cases[i]; in test_core_extern()
|
/linux/lib/kunit/ |
A D | debugfs.c | 41 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() 110 struct kunit_case *test_case; in kunit_debugfs_destroy_suite() local 114 kunit_suite_for_each_test_case(suite, test_case) in kunit_debugfs_destroy_suite() [all …]
|
A D | test.c | 127 struct kunit_case *test_case; in kunit_suite_num_test_cases() local 205 struct kunit_case *test_case) in kunit_test_case_num() argument 211 if (tc == test_case) in kunit_test_case_num() 333 test_case->run_case(test); in kunit_run_case_internal() 357 struct kunit_case *test_case; member 365 struct kunit_case *test_case = ctx->test_case; in kunit_try_run_case() local 423 kunit_init_test(test, test_case->name, test_case->log); in kunit_run_case_catch_errors() 432 context.test_case = test_case; in kunit_run_case_catch_errors() 496 struct kunit_case *test_case; in kunit_run_tests() local 525 test_case->name, in kunit_run_tests() [all …]
|
A D | executor.c | 61 struct kunit_case *filtered, *test_case; in kunit_filter_tests() local 64 kunit_suite_for_each_test_case(suite, test_case) { in kunit_filter_tests() 65 if (!test_glob || glob_match(test_glob, test_case->name)) in kunit_filter_tests() 79 kunit_suite_for_each_test_case(suite, test_case) { in kunit_filter_tests() 80 if (!test_glob || glob_match(test_glob, test_case->name)) in kunit_filter_tests() 81 filtered[n++] = *test_case; in kunit_filter_tests() 220 struct kunit_case *test_case; in kunit_exec_list_tests() local 227 kunit_suite_for_each_test_case((*suites)[i], test_case) { in kunit_exec_list_tests() 228 pr_info("%s.%s\n", (*suites)[i]->name, test_case->name); in kunit_exec_list_tests()
|
/linux/tools/testing/selftests/kvm/ |
A D | system_counter_offset_test.c | 21 struct test_case { struct 25 static struct test_case test_cases[] = { argument 40 static void setup_system_counter(struct kvm_vm *vm, struct test_case *test) in setup_system_counter() 46 static uint64_t guest_read_system_counter(struct test_case *test) in guest_read_system_counter() 51 static uint64_t host_read_guest_system_counter(struct test_case *test) in host_read_guest_system_counter() 70 struct test_case *test = &test_cases[i]; in guest_main() 101 struct test_case *test = &test_cases[i]; in enter_guest()
|
/linux/samples/bpf/ |
A D | test_map_in_map_kern.c | 110 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()
|
A D | map_perf_test_kern.c | 179 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()
|
/linux/tools/testing/selftests/kvm/x86_64/ |
A D | kvm_clock_test.c | 21 struct test_case { struct 26 static struct test_case test_cases[] = { argument 80 static void setup_clock(struct kvm_vm *vm, struct test_case *test_case) in setup_clock() argument 86 data.clock = test_case->kvmclock_base; in setup_clock() 87 if (test_case->realtime_offset) { in setup_clock() 102 data.realtime += test_case->realtime_offset; in setup_clock()
|
/linux/tools/testing/vsock/ |
A D | util.h | 24 struct test_case { struct 47 void run_tests(const struct test_case *test_cases, argument 49 void list_tests(const struct test_case *test_cases); 50 void skip_test(struct test_case *test_cases, size_t test_cases_len,
|
A D | util.c | 317 void run_tests(const struct test_case *test_cases, in run_tests() 365 void list_tests(const struct test_case *test_cases) in list_tests() 377 void skip_test(struct test_case *test_cases, size_t test_cases_len, in skip_test()
|
/linux/lib/ |
A D | test_kmod.c | 84 enum kmod_test_case test_case; member 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() 431 config->test_case); in run_test_driver() 448 config->test_case); in run_test_fs_type() 480 config->test_case); in config_show() 522 config->test_case); in __trigger_config_run() 739 switch (test_case) { in trigger_config_run_type() 757 config->test_case = test_case; in trigger_config_run_type() [all …]
|
/linux/tools/testing/selftests/vm/ |
A D | mremap_test.c | 188 static void run_mremap_test_case(struct test test_case, int *failures, in run_mremap_test_case() argument 192 long long remap_time = remap_region(test_case.config, threshold_mb, in run_mremap_test_case() 196 if (test_case.expect_failure) in run_mremap_test_case() 198 test_case.name); in run_mremap_test_case() 200 ksft_test_result_fail("%s\n", test_case.name); in run_mremap_test_case() 209 test_case.config.region_size <= threshold_mb * _1MB) in run_mremap_test_case() 211 test_case.name, remap_time); in run_mremap_test_case() 213 ksft_test_result_pass("%s\n", test_case.name); in run_mremap_test_case()
|
/linux/tools/testing/kunit/ |
A D | kunit_json.py | 30 test_case = {"name": subtest.name, "status": "FAIL"} 32 test_case["status"] = "PASS" 34 test_case["status"] = "ERROR" 35 test_cases.append(test_case)
|
/linux/tools/testing/selftests/kmod/ |
A D | kmod.sh | 600 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
|
/linux/tools/perf/tests/ |
A D | tests.h | 34 struct test_case { struct 43 struct test_case *test_cases; argument 66 struct test_case tests__##_name[] = { \
|
A D | clang.c | 20 static struct test_case clang_tests[] = {
|
A D | pfm.c | 185 static struct test_case pfm_tests[] = {
|
A D | wp.c | 190 static struct test_case wp_tests[] = {
|
/linux/tools/testing/selftests/sysctl/ |
A D | sysctl.sh | 880 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)
|
/linux/net/mptcp/ |
A D | crypto_test.c | 6 struct test_case { struct 15 static struct test_case tests[] = { argument
|
/linux/tools/testing/selftests/net/ |
A D | rxtimestamp.c | 43 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()
|
/linux/include/kunit/ |
A D | test.h | 304 struct kunit_case *test_case); 382 #define kunit_suite_for_each_test_case(suite, test_case) \ argument 383 for (test_case = suite->test_cases; test_case->run_case; test_case++)
|