/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | skb_load_bytes.c | 9 int err, prog_fd, test_result; in test_skb_load_bytes() local 31 test_result = skel->bss->test_result; in test_skb_load_bytes() 32 if (!ASSERT_EQ(test_result, -EFAULT, "offset -1")) in test_skb_load_bytes() 39 test_result = skel->bss->test_result; in test_skb_load_bytes() 40 if (!ASSERT_EQ(test_result, 0, "offset 10")) in test_skb_load_bytes()
|
H A D | load_bytes_relative.c | 16 struct bpf_map *test_result; in test_load_bytes_relative() local 35 test_result = bpf_object__find_map_by_name(obj, "test_result"); in test_load_bytes_relative() 36 if (CHECK_FAIL(!test_result)) in test_load_bytes_relative() 39 map_fd = bpf_map__fd(test_result); in test_load_bytes_relative()
|
/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | unicast_extensions.sh | 126 test_result=0 127 _do_segmenttest "$@" || test_result=1 135 [ -n "$expect_failure" ] && test_result=`expr 1 - $test_result` 137 show_result $test_result "$4" 151 test_result=0 152 _do_route_test "$@" || test_result=1 162 [ -n "$expect_failure" ] && test_result=`expr 1 - $test_result` 163 show_result $test_result " [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
H A D | load_bytes_relative.c | 16 struct bpf_map *test_result; in test_load_bytes_relative() local 35 test_result = bpf_object__find_map_by_name(obj, "test_result"); in test_load_bytes_relative() 36 if (CHECK_FAIL(!test_result)) in test_load_bytes_relative() 39 map_fd = bpf_map__fd(test_result); in test_load_bytes_relative()
|
/kernel/linux/linux-6.6/tools/perf/tests/ |
H A D | dlfilter-test.c | 59 static int test_result(const char *msg, int ret) in test_result() function 195 return test_result("perf_event__synthesize_sample() failed", TEST_FAIL); in write_sample() 199 return test_result("Failed to write sample", TEST_FAIL); in write_sample() 329 return test_result("dlfilters not found", TEST_SKIP); in test__dlfilter_test() 332 return test_result("Failed to get expected filter description", TEST_FAIL); in test__dlfilter_test() 335 return test_result("gcc not found", TEST_SKIP); in test__dlfilter_test() 340 return test_result("Failed to write test C file", TEST_FAIL); in test__dlfilter_test() 352 return test_result("Failed to find program symbols", TEST_FAIL); in test__dlfilter_test() 360 return test_result("Failed to create test perf.data file", TEST_FAIL); in test__dlfilter_test() 364 return test_result("perf_header__write_pip in test__dlfilter_test() [all...] |
/kernel/linux/linux-5.10/tools/testing/kunit/ |
H A D | kunit.py | 107 test_result = kunit_parser.TestResult(kunit_parser.TestStatus.SUCCESS, 114 test_result = kunit_parser.parse_run_tests(request.input_data) 119 test_result=test_result, 126 if test_result.status != kunit_parser.TestStatus.SUCCESS: 127 return KunitResult(KunitStatus.TEST_FAILURE, test_result, 130 return KunitResult(KunitStatus.SUCCESS, test_result,
|
H A D | kunit_parser.py | 314 def print_and_count_results(test_result: TestResult) -> Tuple[int, int, int]: 318 for test_suite in test_result.suites: 345 test_result = parse_test_result(list(isolate_kunit_output(kernel_output))) 346 if test_result.status == TestStatus.NO_TESTS: 348 elif test_result.status == TestStatus.FAILURE_TO_PARSE_TESTS: 353 crashed_tests) = print_and_count_results(test_result) 355 fmt = green if test_result.status == TestStatus.SUCCESS else red 359 return test_result
|
H A D | kunit_json.py | 16 def get_json_result(test_result, def_config, build_dir, json_path): 20 for test_suite in test_result.suites:
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | skb_load_bytes.c | 9 int test_result = 0; variable 16 test_result = bpf_skb_load_bytes(skb, load_offset, buf, 10); in skb_process()
|
H A D | fexit_bpf2bpf_simple.c | 11 __u64 test_result = 0; variable 24 test_result = 1; in BPF_PROG()
|
H A D | load_bytes_relative.c | 18 } test_result SEC(".maps"); 45 bpf_map_update_elem(&test_result, &map_key, &test_passed, BPF_ANY); in load_bytes_relative()
|
H A D | fexit_bpf2bpf.c | 16 __u64 test_result = 0; variable 27 test_result = 1; in BPF_PROG()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | fexit_bpf2bpf_simple.c | 11 __u64 test_result = 0; variable 24 test_result = 1; in BPF_PROG()
|
H A D | load_bytes_relative.c | 18 } test_result SEC(".maps"); 45 bpf_map_update_elem(&test_result, &map_key, &test_passed, BPF_ANY); in load_bytes_relative()
|
H A D | fexit_bpf2bpf.c | 16 __u64 test_result = 0; variable 27 test_result = 1; in BPF_PROG()
|
/kernel/linux/linux-5.10/lib/ |
H A D | test_firmware.c | 68 * @test_result: a test may use this to collect the result from the call 112 int test_result; member 207 test_fw_config->test_result = 0; in __test_firmware_config_init() 797 test_fw_config->test_result = -EINVAL; in test_fw_run_batch_request() 836 if (!test_fw_config->test_result) in test_fw_run_batch_request() 837 test_fw_config->test_result = req->rc; in test_fw_run_batch_request() 919 test_fw_config->test_result = rc; in trigger_batched_requests_store() 936 test_fw_config->test_result = -EINVAL; in trigger_batched_cb() 952 if (!fw && !test_fw_config->test_result) in trigger_batched_cb() 953 test_fw_config->test_result in trigger_batched_cb() [all...] |
H A D | test_kmod.c | 85 int test_result; member 314 config->test_result = err_ret; in tally_up_work() 539 config->test_result); in trigger_config_run() 544 * then userspace must just check the result of config->test_result. in trigger_config_run() 825 config->test_result = 0; in __kmod_config_init() 984 &config->test_result); in test_result_store() 1041 return test_dev_config_show_int(test_dev, buf, config->test_result); in test_result_show() 1043 static DEVICE_ATTR_RW(test_result); 1056 TEST_KMOD_DEV_ATTR(test_result),
|
/kernel/linux/linux-6.6/tools/testing/selftests/media_tests/ |
H A D | video_device_test.c | 122 int test_result; in main() local 149 test_result = priority_test(fd); in main() 150 if (!test_result) in main()
|
/kernel/linux/linux-6.6/lib/ |
H A D | test_firmware.c | 72 * @test_result: a test may use this to collect the result from the call 117 int test_result; member 238 test_fw_config->test_result = 0; in __test_firmware_config_init() 862 test_fw_config->test_result = -EINVAL; in test_fw_run_batch_request() 901 if (!test_fw_config->test_result) in test_fw_run_batch_request() 902 test_fw_config->test_result = req->rc; in test_fw_run_batch_request() 984 test_fw_config->test_result = rc; in trigger_batched_requests_store() 1001 test_fw_config->test_result = -EINVAL; in trigger_batched_cb() 1017 if (!fw && !test_fw_config->test_result) in trigger_batched_cb() 1018 test_fw_config->test_result in trigger_batched_cb() [all...] |
H A D | test_kmod.c | 74 int test_result; member 303 config->test_result = err_ret; in tally_up_work() 528 config->test_result); in trigger_config_run() 533 * then userspace must just check the result of config->test_result. in trigger_config_run() 814 config->test_result = 0; in __kmod_config_init() 973 &config->test_result); in test_result_store() 1030 return test_dev_config_show_int(test_dev, buf, config->test_result); in test_result_show() 1032 static DEVICE_ATTR_RW(test_result); 1045 TEST_KMOD_DEV_ATTR(test_result),
|
/kernel/linux/linux-6.6/tools/testing/selftests/iommu/ |
H A D | iommufd_fail_nth.c | 101 int test_result) in fail_nth_next() 141 test_result, atoi(buf)); */ in fail_nth_next() 148 test_result); */ in fail_nth_next() 182 int test_result = 0; \ 190 while (fail_nth_next(_metadata, &nth_state, test_result)) { \ 193 test_result = test_nth_##name(_metadata, self, \ 196 ASSERT_EQ(0, test_result); \ 99 fail_nth_next(struct __test_metadata *_metadata, struct fail_nth_state *nth_state, int test_result) fail_nth_next() argument
|
/kernel/linux/linux-5.10/tools/testing/selftests/arm64/signal/ |
H A D | test_signals.c | 26 test_result(current); in main()
|
H A D | test_signals_utils.h | 17 void test_result(struct tdescr *td);
|
/kernel/linux/linux-6.6/tools/testing/selftests/arm64/signal/ |
H A D | test_signals.c | 24 test_result(current); in main()
|
/kernel/linux/linux-6.6/lib/kunit/ |
H A D | attributes.c | 344 bool suite_result, test_result, default_result, result; in kunit_filter_attr_tests() local 375 test_result = filter.attr->filter(filter.attr->get_attr(test_case, true), in kunit_filter_attr_tests() 387 if (test_result) in kunit_filter_attr_tests()
|