Home
last modified time | relevance | path

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

12

/tools/testing/selftests/membarrier/
Dmembarrier_test_impl.h22 const char *test_name = in test_membarrier_get_registrations() local
31 test_name, flags, errno); in test_membarrier_get_registrations()
35 test_name, flags, ret, registrations); in test_membarrier_get_registrations()
39 test_name, flags, ret, registrations); in test_membarrier_get_registrations()
47 const char *test_name = "sys membarrier invalid command"; in test_membarrier_cmd_fail() local
52 test_name, cmd, flags); in test_membarrier_cmd_fail()
57 test_name, flags, EINVAL, strerror(EINVAL), in test_membarrier_cmd_fail()
63 test_name, cmd, flags, errno); in test_membarrier_cmd_fail()
70 const char *test_name = "sys membarrier MEMBARRIER_CMD_QUERY invalid flags"; in test_membarrier_flags_fail() local
75 test_name, flags); in test_membarrier_flags_fail()
[all …]
/tools/testing/selftests/pidfd/
Dpidfd_test.c89 const char *test_name = "pidfd_send_signal send SIGUSR1"; in test_pidfd_send_signal_simple_success() local
97 test_name); in test_pidfd_send_signal_simple_success()
108 test_name); in test_pidfd_send_signal_simple_success()
113 test_name, err); in test_pidfd_send_signal_simple_success()
121 test_name, err); in test_pidfd_send_signal_simple_success()
130 test_name); in test_pidfd_send_signal_simple_success()
133 test_name); in test_pidfd_send_signal_simple_success()
138 test_name, err); in test_pidfd_send_signal_simple_success()
140 ksft_test_result_pass("%s test: Sent signal\n", test_name); in test_pidfd_send_signal_simple_success()
149 const char *test_name = "pidfd_send_signal signal exited process"; in test_pidfd_send_signal_exited_fail() local
[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()
256 const char *test_name = "pidfd check for NSpid in fdinfo"; in test_pidfd_fdinfo_nspid() local
[all …]
/tools/testing/selftests/net/
Dlib.sh258 local test_name=$1; shift
263 printf "TEST: %-60s [%s]\n" "$test_name $opt_str" "$result"
280 local test_name=$1; shift
283 log_test_result "$test_name" "$opt_str" " OK "
288 local test_name=$1; shift
291 log_test_result "$test_name" "$opt_str" FAIL "$retmsg"
297 local test_name=$1; shift
300 log_test_result "$test_name" "$opt_str" XFAIL "$retmsg"
306 local test_name=$1; shift
309 log_test_result "$test_name" "$opt_str" SKIP "$retmsg"
[all …]
/tools/testing/selftests/net/forwarding/
Dno_forwarding.sh92 local test_name="$1"
98 echo "$test_name: Sending packets"
128 echo "$test_name: Checking which packets were received"
132 check_rcv $h2 "$test_name: Unicast non-IP untagged" \
135 check_rcv $h2 "$test_name: Multicast non-IP untagged" \
138 check_rcv $h2 "$test_name: Broadcast non-IP untagged" \
141 check_rcv $h2 "$test_name: Unicast IPv4 untagged" \
144 check_rcv $h2 "$test_name: Multicast IPv4 untagged" \
147 check_rcv $h2 "$test_name: Unicast IPv6 untagged" \
150 check_rcv $h2 "$test_name: Multicast IPv6 untagged" \
[all …]
Dlocal_termination.sh137 local test_name="$1"; shift
147 log_test "$test_name: $type"
174 local test_name="$1"; shift
249 true "$test_name"
253 true "$test_name"
258 $should_receive "$test_name"
262 true "$test_name"
268 $should_receive "$test_name"
272 true "$test_name"
278 false "$test_name"
[all …]
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"
/tools/testing/selftests/
Dkselftest_harness.h152 #define TEST(test_name) __TEST_IMPL(test_name, -1) argument
171 #define TEST_SIGNAL(test_name, signal) __TEST_IMPL(test_name, signal) argument
173 #define __TEST_IMPL(test_name, _signal) \ argument
174 static void test_name(struct __test_metadata *_metadata); \
175 static inline void wrapper_##test_name( \
181 test_name(_metadata); \
184 static struct __test_metadata _##test_name##_object = \
185 { .name = #test_name, \
186 .fn = &wrapper_##test_name, \
190 static void __attribute__((constructor)) _register_##test_name(void) \
[all …]
/tools/testing/selftests/exec/
Dexecveat.c49 char test_name[TEST_NAME_LEN]; in _check_execveat_fail() local
53 snprintf(test_name, sizeof(test_name), in _check_execveat_fail()
60 ksft_test_result_fail("%s\n", test_name); in _check_execveat_fail()
67 ksft_test_result_fail("%s\n", test_name); in _check_execveat_fail()
70 ksft_test_result_pass("%s\n", test_name); in _check_execveat_fail()
77 char test_name[TEST_NAME_LEN]; in check_execveat_invoked_rc() local
84 snprintf(test_name, sizeof(test_name), in check_execveat_invoked_rc()
88 snprintf(test_name, sizeof(test_name), in check_execveat_invoked_rc()
95 ksft_test_result_fail("%s\n", test_name); in check_execveat_invoked_rc()
109 ksft_test_result_fail("%s\n", test_name); in check_execveat_invoked_rc()
[all …]
/tools/power/x86/amd_pstate_tracer/
Damd_pstate_trace.py56 global sample_num, last_sec_cpu, last_usec_cpu, start_time, test_name, trace_file
75 …g_plot('set title "{} : frequency : CPU {:0>3} : {:%F %H:%M}"'.format(test_name, cpu_index, dateti…
91 …g_plot('set title "{} : cpu des perf : CPU {:0>3} : {:%F %H:%M}"'.format(test_name, cpu_index, dat…
107 …g_plot('set title "{} : cpu load : CPU {:0>3} : {:%F %H:%M}"'.format(test_name, cpu_index, datetim…
119 g_plot('set title "{} : cpu frequencies : {:%F %H:%M}"'.format(test_name, datetime.now()))
133 g_plot('set title "{} : cpu des perf : {:%F %H:%M}"'.format(test_name, datetime.now()))
148 g_plot('set title "{} : cpu load : {:%F %H:%M}"'.format(test_name, datetime.now()))
256 test_name = "" variable
286 test_name = arg variable
307 if os.path.exists(test_name):
[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/drivers/net/virtio_net/
Dbasic_features.sh49 local test_name="mac feature filtered"
53 log_test_skip "$test_name" "Device $h1 is missing feature $VIRTIO_NET_F_MAC."
58 log_test_skip "$test_name" "Device $h2 is missing feature $VIRTIO_NET_F_MAC."
83 log_test "$test_name"
/tools/testing/selftests/drivers/net/mlxsw/
Drif_mac_profiles.sh102 local test_name=$@; shift
131 log_test "h1->h2: $test_name"
140 local test_name=$@; shift
164 log_test "h2->h1: $test_name"
173 local test_name=$@; shift
177 h1_to_h2 $test_name
183 h2_to_h1 $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/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/tc-testing/
DTdcResults.py12 def __init__(self, test_id="", test_name=""): argument
14 self.test_name = test_name
97 ftap += 'ok {} {} - {}'.format(str(index), t.test_id, t.test_name)
116 xunit += 'name=\"{}\">\n'.format(escape(t.test_name))
/tools/testing/selftests/bpf/
Dtest_progs.c159 const char *test_name; member
204 const char *test_name, in match_subtest() argument
210 if (glob_match(test_name, filter->tests[i].name)) { in match_subtest()
228 const char *test_name, in should_run_subtest() argument
231 if (match_subtest(&sel->blacklist, test_name, subtest_name)) in should_run_subtest()
234 if (match_subtest(&sel->whitelist, test_name, subtest_name)) in should_run_subtest()
268 fprintf(env.stdout_saved, "#%-*d %s:", TEST_NUM_WIDTH, test->test_num, test->test_name); in print_test_result()
290 const char *test_name, char *subtest_name, in print_subtest_name() argument
299 test_name, subtest_name); in print_subtest_name()
349 jsonw_string_field(w, "name", test->test_name); in dump_test_log()
[all …]
/tools/testing/selftests/mm/
Dmremap_test.c63 overlaps, should_fail, test_name) \ argument
65 .name = test_name, \
241 char *test_name = "mremap expand merge"; in mremap_expand_merge() local
268 ksft_test_result_pass("%s\n", test_name); in mremap_expand_merge()
270 ksft_test_result_fail("%s\n", test_name); in mremap_expand_merge()
281 char *test_name = "mremap expand merge offset"; in mremap_expand_merge_offset() local
308 ksft_test_result_pass("%s\n", test_name); in mremap_expand_merge_offset()
310 ksft_test_result_fail("%s\n", test_name); in mremap_expand_merge_offset()
329 char *test_name = "mremap mremap move within range"; in mremap_move_within_range() local
378 ksft_test_result_pass("%s\n", test_name); in mremap_move_within_range()
[all …]
/tools/testing/selftests/x86/bugs/
Dits_permutations.py90 test_name = f"{bug} {test_params}" variable
96 ksft.test_result_pass(test_name)
98 ksft.test_result_fail(test_name)
/tools/testing/selftests/futex/functional/
Dfutex_wait_timeout.c64 static void test_timeout(int res, int *ret, char *test_name, int err) in test_timeout() argument
68 ksft_test_result_skip("%s returned %d\n", test_name, in test_timeout()
71 ksft_test_result_fail("%s returned %d\n", test_name, in test_timeout()
76 ksft_test_result_pass("%s succeeds\n", test_name); in test_timeout()
/tools/testing/selftests/damon/
Ddamon_nr_regions.py66 test_name = 'nr_regions test with %d/%d/%d real/min/max nr_regions' % (
71 print('fail %s' % test_name)
76 print('pass %s ' % test_name)
/tools/testing/selftests/bpf/map_tests/
Dsk_storage_map.c593 const char *test_name, *env_opt; in test_sk_storage_map() local
596 test_name = getenv(BPF_SK_STORAGE_MAP_TEST_NAME); in test_sk_storage_map()
610 if (!test_name || !strcmp(test_name, "basic")) { in test_sk_storage_map()
614 if (!test_name || !strcmp(test_name, "stress_free")) { in test_sk_storage_map()
618 if (!test_name || !strcmp(test_name, "stress_change")) { in test_sk_storage_map()
626 CHECK(1, "Invalid test_name", "%s\n", test_name); in test_sk_storage_map()
/tools/testing/selftests/bpf/prog_tests/
Dsockmap_ktls.c139 static char test_name[MAX_TEST_NAME]; in fmt_test_name() local
141 snprintf(test_name, MAX_TEST_NAME, in fmt_test_name()
145 return test_name; in fmt_test_name()
/tools/testing/selftests/alsa/
Dpcm-test.c285 const char *test_name, snd_config_t *pcm_cfg) in test_pcm_time() argument
325 test_class_name, test_name, in test_pcm_time()
383 test_name, in test_pcm_time()
461 test_class_name, test_name, in test_pcm_time()
522 test_class_name, test_name, in test_pcm_time()
533 test_class_name, test_name, in test_pcm_time()
539 test_class_name, test_name, in test_pcm_time()
557 const char *test_name, *test_type; in run_time_tests() local
570 if (snd_config_get_id(pcm_cfg, &test_name) < 0) in run_time_tests()
574 test_pcm_time(pcm, class, test_name, pcm_cfg); in run_time_tests()
/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()

12