/tools/testing/selftests/membarrier/ |
D | membarrier_test_impl.h | 20 const char *test_name = "sys membarrier invalid command"; in test_membarrier_cmd_fail() local 25 test_name, cmd, flags); in test_membarrier_cmd_fail() 30 test_name, flags, EINVAL, strerror(EINVAL), in test_membarrier_cmd_fail() 36 test_name, cmd, flags, errno); in test_membarrier_cmd_fail() 43 const char *test_name = "sys membarrier MEMBARRIER_CMD_QUERY invalid flags"; in test_membarrier_flags_fail() local 48 test_name, flags); in test_membarrier_flags_fail() 53 test_name, flags, EINVAL, strerror(EINVAL), in test_membarrier_flags_fail() 59 test_name, flags, errno); in test_membarrier_flags_fail() 66 const char *test_name = "sys membarrier MEMBARRIER_CMD_GLOBAL"; in test_membarrier_global_success() local 71 test_name, flags, errno); in test_membarrier_global_success() [all …]
|
/tools/testing/selftests/pidfd/ |
D | pidfd_test.c | 57 const char *test_name = "pidfd_send_signal send SIGUSR1"; in test_pidfd_send_signal_simple_success() local 63 test_name); in test_pidfd_send_signal_simple_success() 71 test_name); in test_pidfd_send_signal_simple_success() 75 test_name); in test_pidfd_send_signal_simple_success() 78 ksft_test_result_pass("%s test: Sent signal\n", test_name); in test_pidfd_send_signal_simple_success() 87 const char *test_name = "pidfd_send_signal signal exited process"; in test_pidfd_send_signal_exited_fail() local 92 test_name); in test_pidfd_send_signal_exited_fail() 106 test_name); in test_pidfd_send_signal_exited_fail() 114 test_name); in test_pidfd_send_signal_exited_fail() 119 test_name, saved_errno); in test_pidfd_send_signal_exited_fail() [all …]
|
D | pidfd_wait.c | 37 const char *test_name = "pidfd wait simple"; in test_pidfd_wait_simple() local 55 test_name, strerror(errno)); in test_pidfd_wait_simple() 61 test_name, strerror(errno)); in test_pidfd_wait_simple() 68 test_name, strerror(errno)); in test_pidfd_wait_simple() 74 test_name, strerror(errno)); in test_pidfd_wait_simple() 81 test_name, strerror(errno)); in test_pidfd_wait_simple() 90 test_name, parent_tid, pidfd, strerror(errno)); in test_pidfd_wait_simple() 95 test_name, parent_tid, pidfd, strerror(errno)); in test_pidfd_wait_simple() 101 test_name, info.si_signo, parent_tid, pidfd, in test_pidfd_wait_simple() 107 test_name, info.si_code, parent_tid, pidfd, in test_pidfd_wait_simple() [all …]
|
/tools/testing/selftests/ |
D | kselftest_harness.h | 148 #define TEST(test_name) __TEST_IMPL(test_name, -1) argument 167 #define TEST_SIGNAL(test_name, signal) __TEST_IMPL(test_name, signal) argument 169 #define __TEST_IMPL(test_name, _signal) \ argument 170 static void test_name(struct __test_metadata *_metadata); \ 171 static struct __test_metadata _##test_name##_object = \ 172 { .name = "global." #test_name, \ 173 .fn = &test_name, .termsig = _signal, \ 175 static void __attribute__((constructor)) _register_##test_name(void) \ 177 __register_test(&_##test_name##_object); \ 179 static void test_name( \ [all …]
|
/tools/testing/selftests/bpf/prog_tests/ |
D | send_signal.c | 13 const char *test_name) in test_send_signal_common() argument 24 if (CHECK(pipe(pipe_c2p), test_name, in test_send_signal_common() 28 if (CHECK(pipe(pipe_p2c), test_name, in test_send_signal_common() 36 if (CHECK(pid < 0, test_name, "fork error: %s\n", strerror(errno))) { in test_send_signal_common() 77 if (CHECK(err < 0, test_name, "bpf_prog_load error: %s\n", in test_send_signal_common() 83 if (CHECK(pmu_fd < 0, test_name, "perf_event_open error: %s\n", in test_send_signal_common() 90 if (CHECK(err < 0, test_name, "ioctl perf_event_ioc_enable error: %s\n", in test_send_signal_common() 95 if (CHECK(err < 0, test_name, "ioctl perf_event_ioc_set_bpf error: %s\n", in test_send_signal_common() 101 if (CHECK(info_map_fd < 0, test_name, "find map %s error\n", "info_map")) in test_send_signal_common() 105 if (CHECK(status_map_fd < 0, test_name, "find map %s error\n", "status_map")) in test_send_signal_common() [all …]
|
/tools/testing/selftests/futex/include/ |
D | logging.h | 106 void print_result(const char *test_name, int ret) in print_result() argument 110 ksft_test_result_pass("%s\n", test_name); in print_result() 114 ksft_test_result_error("%s\n", test_name); in print_result() 118 ksft_test_result_fail("%s\n", test_name); in print_result()
|
/tools/testing/selftests/ptp/ |
D | phc.sh | 66 local test_name=$1 70 printf "TEST: %-60s [FAIL]\n" "$test_name" 74 printf "TEST: %-60s [ OK ]\n" "$test_name"
|
/tools/testing/selftests/size/ |
D | get_size.c | 89 static const char *test_name = " get runtime memory use\n"; in _start() local 97 print(test_name); in _start() 102 print(test_name); in _start()
|
/tools/testing/selftests/tc-testing/ |
D | TdcResults.py | 12 def __init__(self, test_id="", test_name=""): argument 14 self.test_name = test_name 96 ftap += 'ok {} {} - {}'.format(str(index), t.test_id, t.test_name) 115 xunit += 'name=\"{}\">\n'.format(escape(t.test_name))
|
/tools/testing/selftests/powerpc/alignment/ |
D | alignment_handler.c | 152 void dumpdata(char *s1, char *s2, int n, char *test_name) in dumpdata() argument 156 printf(" %s: unexpected result:\n", test_name); in dumpdata() 167 int test_memcmp(void *s1, void *s2, int n, int offset, char *test_name) in test_memcmp() argument 180 dumpdata(s1c, s2c, n, test_name); in test_memcmp() 191 int do_test(char *test_name, void (*test_func)(char *, char *)) in do_test() argument 196 printf("\tDoing %s:\t", test_name); in do_test() 241 test_memcmp(mem0, ci0, width, offset, test_name); in do_test() 251 r |= test_memcmp(mem1, ci1, width, offset, test_name); in do_test()
|
/tools/testing/selftests/bpf/map_tests/ |
D | sk_storage_map.c | 595 const char *test_name, *env_opt; in test_sk_storage_map() local 598 test_name = getenv(BPF_SK_STORAGE_MAP_TEST_NAME); in test_sk_storage_map() 612 if (!test_name || !strcmp(test_name, "basic")) { in test_sk_storage_map() 616 if (!test_name || !strcmp(test_name, "stress_free")) { in test_sk_storage_map() 620 if (!test_name || !strcmp(test_name, "stress_change")) { in test_sk_storage_map() 628 CHECK(1, "Invalid test_name", "%s\n", test_name); in test_sk_storage_map()
|
/tools/testing/selftests/bpf/ |
D | test_progs.c | 16 const char *test_name; member 144 env.test->test_num, env.test->test_name); in test__join_cgroup() 155 env.test->test_num, env.test->test_name, path, errno); in test__join_cgroup() 162 env.test->test_num, env.test->test_name, path, errno); in test__join_cgroup() 325 .test_name = #name, \ 558 test->test_num, test->test_name)) in main() 576 test->test_num, test->test_name, in main()
|
/tools/testing/ktest/ |
D | ktest.pl | 175 my $test_name; 335 "TEST_NAME" => \$test_name, 1458 if (defined($test_name)) { 1459 $name = "$test_name:$test_type"; 1736 if (defined($test_name)) { 1737 $name = " ($test_name)"; 2639 if (defined($test_name)) { 2640 $name = " ($test_name)"; 4369 if (defined($test_name)) { 4370 $name = " ($test_name)";
|
/tools/testing/selftests/tc-testing/plugin-lib/ |
D | valgrindPlugin.py | 106 '{} memory leak check'.format(self.args.test_name))
|
/tools/testing/selftests/net/forwarding/ |
D | lib.sh | 194 local test_name=$1 203 printf "TEST: %-60s [FAIL]\n" "$test_name $opt_str" 215 printf "TEST: %-60s [ OK ]\n" "$test_name $opt_str"
|
/tools/testing/selftests/futex/ |
D | README | 42 test_name: Description of the test
|