Home
last modified time | relevance | path

Searched refs:test_name (Results 1 – 16 of 16) sorted by relevance

/tools/testing/selftests/membarrier/
Dmembarrier_test_impl.h20 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/
Dpidfd_test.c57 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 …]
Dpidfd_wait.c37 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/
Dkselftest_harness.h148 #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/
Dsend_signal.c13 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/
Dlogging.h106 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/
Dphc.sh66 local test_name=$1
70 printf "TEST: %-60s [FAIL]\n" "$test_name"
74 printf "TEST: %-60s [ OK ]\n" "$test_name"
/tools/testing/selftests/size/
Dget_size.c89 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/
DTdcResults.py12 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/
Dalignment_handler.c152 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/
Dsk_storage_map.c595 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/
Dtest_progs.c16 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/
Dktest.pl175 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/
DvalgrindPlugin.py106 '{} memory leak check'.format(self.args.test_name))
/tools/testing/selftests/net/forwarding/
Dlib.sh194 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/
DREADME42 test_name: Description of the test