Home
last modified time | relevance | path

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

123

/linux/tools/testing/selftests/membarrier/
H A 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 …]
/linux/tools/testing/selftests/pidfd/
H A 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 …]
H A Dpidfd_fdinfo_test.c43 static void error_report(struct error *err, const char *test_name) in error_report() argument
47 ksft_exit_fail_msg("%s test: Fatal: %s\n", test_name, err->msg); in error_report()
52 ksft_test_result_error("%s test: %s\n", test_name, err->msg); in error_report()
57 ksft_test_result_skip("%s test: %s\n", test_name, err->msg); in error_report()
62 test_name, err->msg); in error_report()
66 ksft_test_result_pass("%s test: Passed\n", test_name); in error_report()
71 test_name, err->code, err->msg); in error_report()
76 static inline int error_check(struct error *err, const char *test_name) in error_check() argument
80 error_report(err, test_name); in error_check()
257 const char *test_name = "pidfd check for NSpid in fdinfo"; in test_pidfd_fdinfo_nspid() local
[all …]
/linux/fs/hfs/
H A Dstring_test.c78 struct qstr test_name; in hfs_compare_dentry_test() local
82 test_name.name = name; in hfs_compare_dentry_test()
83 test_name.len = strlen(name); in hfs_compare_dentry_test()
87 "TestFile", &test_name)); in hfs_compare_dentry_test()
91 "testfile", &test_name)); in hfs_compare_dentry_test()
93 "TESTFILE", &test_name)); in hfs_compare_dentry_test()
97 "DiffFile", &test_name)); in hfs_compare_dentry_test()
101 "TestFil", &test_name)); in hfs_compare_dentry_test()
103 "TestFiles", &test_name)); in hfs_compare_dentry_test()
106 test_name.name = ""; in hfs_compare_dentry_test()
[all …]
/linux/tools/testing/selftests/net/forwarding/
H A Dlocal_termination.sh137 local test_name="$1"; shift
147 log_test "$test_name: $type"
174 local test_name="$1"; shift
251 true "$test_name"
255 true "$test_name"
260 $should_receive "$test_name"
264 true "$test_name"
270 $should_receive "$test_name"
274 true "$test_name"
280 false "$test_name"
[all …]
H A 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 …]
H A 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"
/linux/tools/testing/selftests/
H A Dkselftest_harness.h162 #define TEST(test_name) __TEST_IMPL(test_name, -1) argument
181 #define TEST_SIGNAL(test_name, signal) __TEST_IMPL(test_name, signal) argument
183 #define __TEST_IMPL(test_name, _signal) \ argument
184 static void test_name(struct __test_metadata *_metadata); \
185 static void wrapper_##test_name( \
189 test_name(_metadata); \
191 static struct __test_metadata _##test_name##_object = \
192 { .name = #test_name, \
193 .fn = &wrapper_##test_name, \
197 static void __attribute__((constructor)) _register_##test_name(void) \
[all …]
/linux/tools/testing/selftests/net/
H A Dtest_so_rcv.sh37 for test_name in "${!TESTS[@]}"; do
38 echo "Running $test_name test, $PROTOCOL"
39 arg=${TESTS[$test_name]}
47 echo "Sender failed for $test_name, $PROTOCOL"
58 echo "Rcv test OK for $test_name, $PROTOCOL"
61 echo "Rcv test FAILED for $test_name, $PROTOCOL"
H A Dlib.sh336 local test_name=$1; shift
341 printf "TEST: %-60s [%s]\n" "$test_name $opt_str" "$result"
358 local test_name=$1; shift
361 log_test_result "$test_name" "$opt_str" " OK "
366 local test_name=$1; shift
369 log_test_result "$test_name" "$opt_str" FAIL "$retmsg"
375 local test_name=$1; shift
378 log_test_result "$test_name" "$opt_str" XFAIL "$retmsg"
384 local test_name=$1; shift
387 log_test_result "$test_name" "$opt_str" SKIP "$retmsg"
[all …]
/linux/tools/testing/selftests/drivers/net/
H A Dgro.py116 def _setup(cfg, mode, test_name): argument
129 if test_name.startswith("large_"):
216 for test_name in common_tests:
217 yield mode, protocol, test_name
220 for test_name in ipv4_tests:
221 yield mode, protocol, test_name
223 for test_name in ipv6_tests:
224 yield mode, protocol, test_name
228 def test(cfg, mode, protocol, test_name): argument
234 _setup(cfg, mode, test_name)
[all …]
/linux/tools/testing/selftests/exec/
H A Dexecveat.c51 char test_name[TEST_NAME_LEN]; in _check_execveat_fail() local
55 snprintf(test_name, sizeof(test_name), in _check_execveat_fail()
62 ksft_test_result_fail("%s\n", test_name); in _check_execveat_fail()
69 ksft_test_result_fail("%s\n", test_name); in _check_execveat_fail()
72 ksft_test_result_pass("%s\n", test_name); in _check_execveat_fail()
79 char test_name[TEST_NAME_LEN]; in check_execveat_invoked_rc() local
86 snprintf(test_name, sizeof(test_name), in check_execveat_invoked_rc()
90 snprintf(test_name, sizeof(test_name), in check_execveat_invoked_rc()
97 ksft_test_result_fail("%s\n", test_name); in check_execveat_invoked_rc()
111 ksft_test_result_fail("%s\n", test_name); in check_execveat_invoked_rc()
[all …]
/linux/tools/power/x86/amd_pstate_tracer/
H A 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 …]
/linux/tools/testing/selftests/bpf/
H A Dtest_progs.c163 const char *test_name; member
195 char test_name[256]; in watchdog_timer_func() local
199 snprintf(test_name, sizeof(test_name), "%s/%s", in watchdog_timer_func()
200 env.test->test_name, env.subtest_state->name); in watchdog_timer_func()
202 snprintf(test_name, sizeof(test_name), "%s", in watchdog_timer_func()
203 env.test->test_name); in watchdog_timer_func()
208 test_name, env.secs_till_notify); in watchdog_timer_func()
218 test_name, env.secs_till_kill); in watchdog_timer_func()
290 const char *test_name, in match_subtest() argument
296 if (glob_match(test_name, filter->tests[i].name)) { in match_subtest()
[all …]
/linux/tools/testing/selftests/mm/
H A Dmremap_test.c67 overlaps, should_fail, test_name) \ argument
69 .name = test_name, \
255 char *test_name = "mremap expand merge"; in mremap_expand_merge() local
282 ksft_test_result_pass("%s\n", test_name); in mremap_expand_merge()
284 ksft_test_result_fail("%s\n", test_name); in mremap_expand_merge()
295 char *test_name = "mremap expand merge offset"; in mremap_expand_merge_offset() local
322 ksft_test_result_pass("%s\n", test_name); in mremap_expand_merge_offset()
324 ksft_test_result_fail("%s\n", test_name); in mremap_expand_merge_offset()
343 char *test_name = "mremap mremap move within range"; in mremap_move_within_range() local
392 ksft_test_result_pass("%s\n", test_name); in mremap_move_within_range()
[all …]
H A Dvm_util.h126 static char test_name[1024]; variable
133 vsnprintf(test_name, sizeof(test_name), name, args); in log_test_start()
134 ksft_print_msg("[RUN] %s\n", test_name); in log_test_start()
141 ksft_test_result_report(result, "%s\n", test_name); in log_test_result()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dstring_kfuncs.c33 char test_name[256]; in run_too_long_tests()
43 sprintf(test_name, "test_%s_too_long", test_cases[i]); in run_too_long_tests()
44 if (!test__start_subtest(test_name)) in run_too_long_tests()
47 prog = bpf_object__find_program_by_name(skel->obj, test_name); in run_too_long_tests()
32 char test_name[256]; run_too_long_tests() local
/linux/tools/testing/selftests/drivers/net/mlxsw/
H A 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
/linux/include/kunit/
H A Dtest.h164 #define KUNIT_CASE(test_name) \ argument
165 { .run_case = test_name, .name = #test_name, \
176 #define KUNIT_CASE_ATTR(test_name, attributes) \ argument
177 { .run_case = test_name, .name = #test_name, \
187 #define KUNIT_CASE_SLOW(test_name) \ argument
188 { .run_case = test_name, .name = #test_name, \
208 #define KUNIT_CASE_PARAM(test_name, gen_params) \ argument
209 { .run_case = test_name, .name = #test_name, \
221 #define KUNIT_CASE_PARAM_ATTR(test_name, gen_params, attributes) \ argument
222 { .run_case = test_name, .name = #test_name, \
[all …]
/linux/tools/testing/selftests/ptp/
H A Dphc.sh70 local test_name=$1
73 printf "TEST: %-60s [SKIP]\n" "$test_name"
79 printf "TEST: %-60s [FAIL]\n" "$test_name"
84 printf "TEST: %-60s [ OK ]\n" "$test_name"
/linux/tools/testing/selftests/drivers/net/virtio_net/
H A 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"
/linux/tools/testing/selftests/tc-testing/
H A 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))
/linux/tools/testing/selftests/size/
H A 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()
/linux/tools/testing/selftests/bpf/map_tests/
H A 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()
/linux/drivers/iommu/generic_pt/
H A Dkunit_iommu.h33 #define KUNIT_CASE_FMT(test_name) \ argument
34 KUNIT_CASE_PARAM(test_name, kunit_pt_gen_params_cfg)
36 #define KUNIT_CASE_FMT(test_name) KUNIT_CASE(test_name) argument

123