Home
last modified time | relevance | path

Searched refs:expected (Results 1 – 25 of 726) sorted by relevance

12345678910>>...30

/linux-6.3-rc2/drivers/iio/test/
A Diio-test-rescale.c28 const char *expected; member
42 .expected = "5210.918114143",
59 .expected = "260.545905707",
68 .expected = "-260.545905707",
77 .expected = "0.049528301",
86 .expected = "-0.049528301",
113 .expected = "1240.84789",
122 .expected = "-1240.84789",
269 .expected = "2.500617",
278 .expected = "-2.500617",
[all …]
/linux-6.3-rc2/drivers/gpu/drm/tests/
A Ddrm_format_helper_test.c202 .expected = {
211 .expected = {
220 .expected = {
235 .expected = {
244 .expected = {
253 .expected = {
262 .expected = {
271 .expected = {
280 .expected = {
289 .expected = {
[all …]
A Ddrm_modes_test.c79 struct drm_display_mode *expected, *mode; in drm_test_modes_analog_tv_ntsc_480i_inlined() local
81 expected = drm_analog_tv_mode(priv->drm, in drm_test_modes_analog_tv_ntsc_480i_inlined()
85 KUNIT_ASSERT_NOT_NULL(test, expected); in drm_test_modes_analog_tv_ntsc_480i_inlined()
90 KUNIT_EXPECT_TRUE(test, drm_mode_equal(expected, mode)); in drm_test_modes_analog_tv_ntsc_480i_inlined()
126 struct drm_display_mode *expected, *mode; in drm_test_modes_analog_tv_pal_576i_inlined() local
128 expected = drm_analog_tv_mode(priv->drm, in drm_test_modes_analog_tv_pal_576i_inlined()
132 KUNIT_ASSERT_NOT_NULL(test, expected); in drm_test_modes_analog_tv_pal_576i_inlined()
137 KUNIT_EXPECT_TRUE(test, drm_mode_equal(expected, mode)); in drm_test_modes_analog_tv_pal_576i_inlined()
/linux-6.3-rc2/tools/perf/tests/shell/
A Drecord+probe_libc_inet_pton.sh34 expected=`mktemp -u /tmp/expected.XXX`
36 echo "ping[][0-9 \.:]+$event_name: \([[:xdigit:]]+\)" > $expected
37 echo ".*inet_pton\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" >> $expected
42 echo "gaih_inet.*\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" >> $expected
44 echo "main\+0x[[:xdigit:]]+[[:space:]]\(.*/bin/ping.*\)$" >> $expected
48 echo "gaih_inet.*\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" >> $expected
49 echo "getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" >> $expected
50 echo ".*(\+0x[[:xdigit:]]+|\[unknown\])[[:space:]]\(.*/bin/ping.*\)$" >> $expected
54 echo "getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" >> $expected
75 exec 4<$expected
[all …]
/linux-6.3-rc2/fs/ext4/
A Dinode-test.c77 struct timespec64 expected; member
89 .expected = {.tv_sec = -0x80000000LL, .tv_nsec = 0L},
97 .expected = {.tv_sec = -1LL, .tv_nsec = 0L},
105 .expected = {0LL, 0L},
113 .expected = {.tv_sec = 0x7fffffffLL, .tv_nsec = 0L},
121 .expected = {.tv_sec = 0x80000000LL, .tv_nsec = 0L},
129 .expected = {.tv_sec = 0xffffffffLL, .tv_nsec = 0L},
137 .expected = {.tv_sec = 0x100000000LL, .tv_nsec = 0L},
193 .expected = {.tv_sec = 0x300000000LL,
253 test_param->expected.tv_sec, in inode_test_xtimestamp_decoding()
[all …]
/linux-6.3-rc2/scripts/kconfig/tests/
A Dconftest.py234 def _contains(self, attr, expected): argument
237 expected)
239 def _matches(self, attr, expected): argument
241 expected)
243 def config_contains(self, expected): argument
251 def config_matches(self, expected): argument
257 return self._matches('config', expected)
259 def stdout_contains(self, expected): argument
267 def stdout_matches(self, expected): argument
275 def stderr_contains(self, expected): argument
[all …]
/linux-6.3-rc2/tools/testing/selftests/net/mptcp/
A Ddiag.sh53 local expected=$2
61 if [ $nr != $expected ]; then
62 echo "[ fail ] expected $expected found $nr"
86 local expected=$1
97 [ $nr == $expected ] && break;
107 elif [ $nr != $expected ]; then
129 local expected=$2
137 if [ $nr != $expected ]; then
165 local expected=$1
171 expected=$((expected + listen_nr))
[all …]
/linux-6.3-rc2/tools/testing/selftests/bpf/
A Dtest_progs.h236 #define ASSERT_EQ(actual, expected, name) ({ \ argument
239 typeof(expected) ___exp = (expected); \
250 typeof(expected) ___exp = (expected); \
258 #define ASSERT_LT(actual, expected, name) ({ \ argument
261 typeof(expected) ___exp = (expected); \
269 #define ASSERT_LE(actual, expected, name) ({ \ argument
272 typeof(expected) ___exp = (expected); \
283 typeof(expected) ___exp = (expected); \
294 typeof(expected) ___exp = (expected); \
305 const char *___exp = expected; \
[all …]
A Dtest_offload.py178 if expected is not None:
179 if len(progs) != expected:
188 if expected is not None:
189 if len(maps) != expected:
197 if nprogs == expected:
205 if nmaps == expected:
409 if expected is not None:
538 if expected is not None:
606 maps = bpftool_map_list(expected=expected)
614 bpftool_prog_list(expected=0)
[all …]
/linux-6.3-rc2/tools/testing/selftests/
A Dkselftest_harness.h456 __EXPECT(expected, #expected, seen, #seen, ==, 1)
467 __EXPECT(expected, #expected, seen, #seen, !=, 1)
478 __EXPECT(expected, #expected, seen, #seen, <, 1)
489 __EXPECT(expected, #expected, seen, #seen, <=, 1)
500 __EXPECT(expected, #expected, seen, #seen, >, 1)
511 __EXPECT(expected, #expected, seen, #seen, >=, 1)
574 __EXPECT(expected, #expected, seen, #seen, ==, 0)
585 __EXPECT(expected, #expected, seen, #seen, !=, 0)
596 __EXPECT(expected, #expected, seen, #seen, <, 0)
607 __EXPECT(expected, #expected, seen, #seen, <=, 0)
[all …]
/linux-6.3-rc2/tools/testing/selftests/powerpc/pmu/ebb/
A Dreg_access_test.c18 uint64_t val, expected; in reg_access() local
22 expected = 0x8000000100000000ull; in reg_access()
23 mtspr(SPRN_BESCR, expected); in reg_access()
26 FAIL_IF(val != expected); in reg_access()
28 expected = 0x0000000001000000ull; in reg_access()
29 mtspr(SPRN_EBBHR, expected); in reg_access()
32 FAIL_IF(val != expected); in reg_access()
A Dcycles_with_mmcr2_test.c25 uint64_t val, expected[2], actual; in cycles_with_mmcr2() local
49 expected[0] = MMCR2_EXPECTED_1; in cycles_with_mmcr2()
50 expected[1] = MMCR2_EXPECTED_2; in cycles_with_mmcr2()
59 mtspr(SPRN_MMCR2, expected[i % 2]); in cycles_with_mmcr2()
64 if (val != expected[i % 2]) { in cycles_with_mmcr2()
/linux-6.3-rc2/drivers/hid/
A Dhid-uclogic-rdesc-test.c18 const __u8 *expected; member
105 .expected = template_empty,
113 .expected = template_small,
121 .expected = template_no_ph,
129 .expected = template_pen_ph_end,
137 .expected = template_btn_ph_end,
145 .expected = expected_pen_all_params,
153 .expected = expected_frame_all_params,
161 .expected = expected_pen_some_params,
169 .expected = expected_pen_some_params,
[all …]
A Dhid-uclogic-core-test.c17 bool expected; member
35 .expected = true,
40 .expected = true,
45 .expected = false,
50 .expected = false,
55 .expected = false,
87 KUNIT_ASSERT_EQ(test, res, test_events[n].expected); in hid_test_uclogic_exec_event_hook_test()
/linux-6.3-rc2/tools/testing/selftests/ftrace/test.d/ftrace/
A Dfunc_set_ftrace_file.tc119 DIFF=`diff $TMPDIR/actual $TMPDIR/expected`
124 cat available_filter_functions | cut -d' ' -f1 | grep 'lock' | sort -u > $TMPDIR/expected
129 grep -v 'try.*lock$' $TMPDIR/expected > $TMPDIR/expected2
130 mv $TMPDIR/expected2 $TMPDIR/expected
135 grep -v '^m.*lock$' $TMPDIR/expected > $TMPDIR/expected2
136 mv $TMPDIR/expected2 $TMPDIR/expected
141 grep -v '^c.*unlock' $TMPDIR/expected > $TMPDIR/expected2
142 mv $TMPDIR/expected2 $TMPDIR/expected
147 > $TMPDIR/expected
151 rm $TMPDIR/expected
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/
A Dselect_reuseport.c256 expected.len = MIN_TCPHDR_LEN; in check_data()
257 expected.ip_protocol = IPPROTO_TCP; in check_data()
259 expected.len = UDPHDR_LEN; in check_data()
293 expected.eth_protocol, expected.ip_protocol, in check_data()
294 expected.bind_inany); in check_data()
375 enum result expected) in send_data() argument
391 family, err, errno, expected); in send_data()
397 enum result expected) in do_test() argument
405 expected); in do_test()
413 nev, expected, type, family, in do_test()
[all …]
/linux-6.3-rc2/mm/damon/
A Dvaddr-test.h132 unsigned long *expected, int nr_expected) in damon_do_test_apply_three_regions() argument
148 KUNIT_EXPECT_EQ(test, r->ar.start, expected[i * 2]); in damon_do_test_apply_three_regions()
149 KUNIT_EXPECT_EQ(test, r->ar.end, expected[i * 2 + 1]); in damon_do_test_apply_three_regions()
170 unsigned long expected[] = {5, 20, 20, 27, 45, 55, in damon_test_apply_three_regions1() local
174 new_three_regions, expected, ARRAY_SIZE(expected)); in damon_test_apply_three_regions1()
192 unsigned long expected[] = {5, 20, 20, 27, 56, 57, in damon_test_apply_three_regions2() local
196 new_three_regions, expected, ARRAY_SIZE(expected)); in damon_test_apply_three_regions2()
216 unsigned long expected[] = {5, 20, 20, 27, 61, 63, in damon_test_apply_three_regions3() local
220 new_three_regions, expected, ARRAY_SIZE(expected)); in damon_test_apply_three_regions3()
241 unsigned long expected[] = {5, 7, 30, 32, 65, 68}; in damon_test_apply_three_regions4() local
[all …]
/linux-6.3-rc2/tools/testing/selftests/bpf/progs/
A Dsetget_sockopt.c31 int expected; member
42 { .opt = SO_SNDBUF, .new = 8123, .expected = 8123 * 2, },
43 { .opt = SO_RCVBUF, .new = 8123, .expected = 8123 * 2, },
45 { .opt = SO_PRIORITY, .new = 0xeb9f, .expected = 0xeb9f, },
47 { .opt = SO_RCVLOWAT, .new = 8123, .expected = 8123, },
48 { .opt = SO_MARK, .new = 0xeb9f, .expected = 0xeb9f, },
64 { .opt = TCP_NOTSENT_LOWAT, .new = 1314, .expected = 1314, },
115 int old, tmp, new, expected, opt; in bpf_test_sockopt_int() local
120 expected = t->tcp_expected; in bpf_test_sockopt_int()
122 expected = t->expected; in bpf_test_sockopt_int()
[all …]
/linux-6.3-rc2/tools/testing/selftests/damon/
A D_debugfs_common.sh9 expected=$5
12 if [ $? -ne "$expected" ]
14 echo "writing $content to $file doesn't return $expected"
32 expected=$3
36 if [ "$content" != "$expected" ]
38 echo "reading $file expected $expected but $content"
/linux-6.3-rc2/tools/perf/tests/
A Dhists_cumulate.c211 !strcmp(COMM(he), expected[i].comm) && in do_test()
212 !strcmp(DSO(he), expected[i].dso) && in do_test()
213 !strcmp(SYM(he), expected[i].sym)); in do_test()
269 struct result expected[] = { in test1() local
292 err = do_test(hists, expected, ARRAY_SIZE(expected), NULL, 0); in test1()
367 struct result expected[] = { in test2() local
439 err = do_test(hists, expected, ARRAY_SIZE(expected), in test2()
471 struct result expected[] = { in test3() local
497 err = do_test(hists, expected, ARRAY_SIZE(expected), NULL, 0); in test3()
591 struct result expected[] = { in test4() local
[all …]
/linux-6.3-rc2/lib/
A Dtest_user_copy.c96 ret |= test(retval != expected, in test_check_nonzero_user()
98 retval, expected, start, end); in test_check_nonzero_user()
109 char *umem_src = NULL, *expected = NULL; in test_copy_struct_from_user() local
117 expected = kmalloc(size, GFP_KERNEL); in test_copy_struct_from_user()
131 memcpy(expected, umem_src, ksize); in test_copy_struct_from_user()
136 ret |= test(memcmp(kmem, expected, ksize), in test_copy_struct_from_user()
143 memcpy(expected, umem_src, usize); in test_copy_struct_from_user()
149 ret |= test(memcmp(kmem, expected, ksize), in test_copy_struct_from_user()
164 memcpy(expected, umem_src, ksize); in test_copy_struct_from_user()
171 ret |= test(memcmp(kmem, expected, ksize), in test_copy_struct_from_user()
[all …]
A Dpercpu_test.c5 #define CHECK(native, pcp, expected) \ argument
7 WARN((native) != (expected), \
10 (long long)(expected), (long long)(expected)); \
11 WARN(__this_cpu_read(pcp) != (expected), \
14 (long long)(expected), (long long)(expected)); \
A Dglobtest.c16 bool expected; member
19 static bool __pure __init test(char const *pat, char const *str, bool expected) in test() argument
22 bool success = match == expected; in test()
144 bool expected = *p++ & 1; in glob_init() local
148 successes += test(pat, p, expected); in glob_init()
A Ddhry_1.c220 #define dhry_assert_int_eq(val, expected) \ in dhry() argument
221 if (val != expected) \ in dhry()
223 expected); \ in dhry()
227 #define dhry_assert_char_eq(val, expected) \ in dhry() argument
228 if (val != expected) \ in dhry()
230 expected); \ in dhry()
234 #define dhry_assert_string_eq(val, expected) \ in dhry() argument
235 if (strcmp(val, expected)) \ in dhry()
237 expected); \ in dhry()
/linux-6.3-rc2/tools/testing/selftests/firmware/
A Dfw_upload.sh77 local expected="$2"
84 if [ "$status" = "$expected" ]; then
91 echo "$0: Invalid status: Expected $expected, Actual $status" >&2
104 local expected="$2"
107 if [ "$error" != "$expected" ]; then
108 echo "Invalid error: Expected $expected, Actual $error" >&2
174 local expected="preparing:invalid-file-size"
183 if ! expect_error $name $expected; then

Completed in 53 milliseconds

12345678910>>...30