Home
last modified time | relevance | path

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

12

/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.c60 const char *test_name = "pidfd_send_signal send SIGUSR1"; in test_pidfd_send_signal_simple_success() local
65 test_name); in test_pidfd_send_signal_simple_success()
73 test_name); in test_pidfd_send_signal_simple_success()
81 test_name); in test_pidfd_send_signal_simple_success()
85 test_name); in test_pidfd_send_signal_simple_success()
88 ksft_test_result_pass("%s test: Sent signal\n", test_name); in test_pidfd_send_signal_simple_success()
97 const char *test_name = "pidfd_send_signal signal exited process"; in test_pidfd_send_signal_exited_fail() local
102 test_name); in test_pidfd_send_signal_exited_fail()
109 test_name); in test_pidfd_send_signal_exited_fail()
123 test_name); in test_pidfd_send_signal_exited_fail()
[all …]
Dpidfd_fdinfo_test.c42 static void error_report(struct error *err, const char *test_name) in error_report() argument
46 ksft_exit_fail_msg("%s test: Fatal: %s\n", test_name, err->msg); in error_report()
51 ksft_test_result_error("%s test: %s\n", test_name, err->msg); in error_report()
56 ksft_test_result_skip("%s test: %s\n", test_name, err->msg); in error_report()
61 test_name, err->msg); in error_report()
65 ksft_test_result_pass("%s test: Passed\n", test_name); in error_report()
70 test_name, err->code, err->msg); in error_report()
75 static inline int error_check(struct error *err, const char *test_name) in error_check() argument
79 error_report(err, test_name); in error_check()
255 const char *test_name = "pidfd check for NSpid in fdinfo"; in test_pidfd_fdinfo_nspid() local
[all …]
/tools/testing/selftests/
Dkselftest_harness.h159 #define TEST(test_name) __TEST_IMPL(test_name, -1) argument
178 #define TEST_SIGNAL(test_name, signal) __TEST_IMPL(test_name, signal) argument
180 #define __TEST_IMPL(test_name, _signal) \ argument
181 static void test_name(struct __test_metadata *_metadata); \
182 static inline void wrapper_##test_name( \
186 test_name(_metadata); \
188 static struct __test_metadata _##test_name##_object = \
189 { .name = #test_name, \
190 .fn = &wrapper_##test_name, \
194 static void __attribute__((constructor)) _register_##test_name(void) \
[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/landlock/
Dcommon.h33 #define TEST_F_FORK(fixture_name, test_name) \ argument
34 static void fixture_name##_##test_name##_child( \
38 TEST_F(fixture_name, test_name) \
46 fixture_name##_##test_name##_child(_metadata, self, variant); \
74 static void fixture_name##_##test_name##_child( \
/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/bpf/prog_tests/
Dsockmap_ktls.c97 char test_name[MAX_TEST_NAME]; in run_tests() local
106 snprintf(test_name, MAX_TEST_NAME, in run_tests()
110 if (!test__start_subtest(test_name)) in run_tests()
Dflow_dissector_reattach.c575 const char *test_name; in run_tests() member
608 char test_name[80]; in run_tests() local
617 snprintf(test_name, sizeof(test_name), in run_tests()
619 tests[i].test_name, in run_tests()
621 if (test__start_subtest(test_name)) in run_tests()
/tools/testing/selftests/net/forwarding/
Dtc_police.sh127 local test_name=$1; shift
149 log_test "$test_name"
182 local test_name=$1; shift
199 log_test "$test_name"
236 local test_name=$1; shift
279 log_test "$test_name"
299 local test_name=$1; shift
321 log_test "$test_name"
354 local test_name=$1; shift
388 log_test "$test_name"
Ddevlink_lib.sh508 local test_name=$1; shift
526 log_test "$test_name"
/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/futex/functional/
Dfutex_wait_timeout.c63 static void test_timeout(int res, int *ret, char *test_name, int err) in test_timeout() argument
66 ksft_test_result_fail("%s returned %d\n", test_name, in test_timeout()
70 ksft_test_result_pass("%s succeeds\n", test_name); in test_timeout()
/tools/testing/selftests/powerpc/alignment/
Dalignment_handler.c182 void dumpdata(char *s1, char *s2, int n, char *test_name) in dumpdata() argument
186 printf(" %s: unexpected result:\n", test_name); in dumpdata()
197 int test_memcmp(void *s1, void *s2, int n, int offset, char *test_name) in test_memcmp() argument
210 dumpdata(s1c, s2c, n, test_name); in test_memcmp()
221 int do_test(char *test_name, void (*test_func)(char *, char *)) in do_test() argument
226 printf("\tDoing %s:\t", test_name); in do_test()
276 test_memcmp(mem0, ci0, width, offset, test_name); in do_test()
286 r |= test_memcmp(mem1, ci1, width, offset, test_name); in do_test()
/tools/testing/selftests/vm/
Dksm_tests.c539 int test_name = CHECK_KSM_MERGE; in main() local
587 test_name = CHECK_KSM_UNMERGE; in main()
590 test_name = CHECK_KSM_ZERO_PAGE_MERGE; in main()
593 test_name = CHECK_KSM_NUMA_MERGE; in main()
596 test_name = KSM_MERGE_TIME; in main()
599 test_name = KSM_COW_TIME; in main()
625 switch (test_name) { in main()
Dmremap_test.c56 overlaps, should_fail, test_name) \ argument
58 .name = test_name, \
/tools/testing/selftests/bpf/
Dtest_progs.c45 const char *test_name; member
176 test->test_num, test->subtest_num, test->test_name, test->subtest_name, in test__end_subtest()
242 env.test->test_num, env.test->test_name); in test__join_cgroup()
253 env.test->test_num, env.test->test_name, path, errno); in test__join_cgroup()
260 env.test->test_num, env.test->test_name, path, errno); in test__join_cgroup()
455 .test_name = #name, \
815 test->test_num, test->test_name)) in main()
824 fprintf(env.stdout, "%s\n", test->test_name); in main()
839 test->test_num, test->test_name, in main()
/tools/testing/selftests/arm64/bti/
Dtest.c56 #define puttestname(test_name, trampoline_name) do { \ argument
57 putstr(test_name); \
/tools/testing/selftests/drivers/net/mlxsw/
Dsharedbuffer_configuration.py132 def log_test(test_name, err_msg=None): argument
135 print("TEST: %-80s [FAIL]" % test_name)
137 print("TEST: %-80s [ OK ]" % test_name)
/tools/testing/selftests/filesystems/fuse/
Dfuse_test.c137 const char *test_name = "test"; in basic_test() local
151 filename = concat_file_name(mount_dir, test_name); in basic_test()
163 TESTFUSELOOKUP(test_name, 0); in basic_test()
202 const char *test_name = "real"; in bpf_test_real() local
215 TEST(fd = openat(src_fd, test_name, O_CREAT | O_RDWR | O_CLOEXEC, 0777), in bpf_test_real()
225 filename = concat_file_name(mount_dir, test_name); in bpf_test_real()
246 const char *test_name = "partial"; in bpf_test_partial() local
257 TESTEQUAL(create_file(src_fd, s(test_name), 1, 2), 0); in bpf_test_partial()
266 TEST(filename = concat_file_name(mount_dir, test_name), in bpf_test_partial()
310 const char *test_name = "partial"; in bpf_test_attrs() local
[all …]
/tools/testing/ktest/
Dktest.pl179 my $test_name;
342 "TEST_NAME" => \$test_name,
1521 if (defined($test_name)) {
1522 $name = "$test_name:$test_type";
1820 if (defined($test_name)) {
1821 $name = " ($test_name)";
2717 if (defined($test_name)) {
2718 $name = " ($test_name)";
4424 if (defined($test_name)) {
4425 $name = " ($test_name)";
/tools/testing/selftests/tc-testing/plugin-lib/
DvalgrindPlugin.py106 '{} memory leak check'.format(self.args.test_name))
/tools/testing/selftests/futex/
DREADME42 test_name: Description of the test

12