Home
last modified time | relevance | path

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

12345678910>>...29

/linux-6.1.9/drivers/iio/test/
Diio-test-rescale.c28 const char *expected; member
42 .expected = "5210.918114143",
50 .expected = "-5210.918114143",
59 .expected = "260.545905707",
68 .expected = "-260.545905707",
77 .expected = "0.049528301",
86 .expected = "-0.049528301",
95 .expected = "1240.710106203",
104 .expected = "-1240.710106203",
113 .expected = "1240.84789",
[all …]
/linux-6.1.9/tools/perf/tests/shell/
Drecord+probe_libc_inet_pton.sh33 expected=`mktemp -u /tmp/expected.XXX`
35 echo "ping[][0-9 \.:]+$event_name: \([[:xdigit:]]+\)" > $expected
36 echo ".*inet_pton\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" >> $expected
40 echo "gaih_inet.*\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" >> $expected
41 echo "(__GI_)?getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" >> $expected
42 echo "main\+0x[[:xdigit:]]+[[:space:]]\(.*/bin/ping.*\)$" >> $expected
46 echo "gaih_inet.*\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" >> $expected
47 echo "getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" >> $expected
48 echo ".*(\+0x[[:xdigit:]]+|\[unknown\])[[:space:]]\(.*/bin/ping.*\)$" >> $expected
52 echo "getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" >> $expected
[all …]
/linux-6.1.9/fs/ext4/
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},
145 .expected = {.tv_sec = 0x17fffffffLL, .tv_nsec = 0L},
153 .expected = {.tv_sec = 0x180000000LL, .tv_nsec = 0L},
[all …]
/linux-6.1.9/drivers/gpu/drm/tests/
Ddrm_format_helper_test.c21 const u8 expected[TEST_BUF_SIZE]; member
26 const u8 expected[TEST_BUF_SIZE]; member
31 const u16 expected[TEST_BUF_SIZE]; member
37 const u8 expected[TEST_BUF_SIZE]; member
42 const u32 expected[TEST_BUF_SIZE]; member
65 .expected = { 0x4C },
69 .expected = { 0xE0 },
73 .expected = { 0xF800 },
78 .expected = { 0x00, 0x00, 0xFF },
82 .expected = { 0x3FF00000 },
[all …]
/linux-6.1.9/tools/testing/selftests/
Dkselftest_harness.h454 #define ASSERT_EQ(expected, seen) \ argument
455 __EXPECT(expected, #expected, seen, #seen, ==, 1)
465 #define ASSERT_NE(expected, seen) \ argument
466 __EXPECT(expected, #expected, seen, #seen, !=, 1)
476 #define ASSERT_LT(expected, seen) \ argument
477 __EXPECT(expected, #expected, seen, #seen, <, 1)
487 #define ASSERT_LE(expected, seen) \ argument
488 __EXPECT(expected, #expected, seen, #seen, <=, 1)
498 #define ASSERT_GT(expected, seen) \ argument
499 __EXPECT(expected, #expected, seen, #seen, >, 1)
[all …]
/linux-6.1.9/scripts/kconfig/tests/
Dconftest.py224 def _read_and_compare(self, compare, expected): argument
230 with open(os.path.join(self._test_dir, expected)) as f:
234 def _contains(self, attr, expected): argument
237 expected)
239 def _matches(self, attr, expected): argument
241 expected)
243 def config_contains(self, expected): argument
249 return self._contains('config', expected)
251 def config_matches(self, expected): argument
257 return self._matches('config', expected)
[all …]
/linux-6.1.9/tools/testing/selftests/bpf/
Dtest_progs.h227 #define ASSERT_EQ(actual, expected, name) ({ \ argument
230 typeof(expected) ___exp = (expected); \
238 #define ASSERT_NEQ(actual, expected, name) ({ \ argument
241 typeof(expected) ___exp = (expected); \
249 #define ASSERT_LT(actual, expected, name) ({ \ argument
252 typeof(expected) ___exp = (expected); \
260 #define ASSERT_LE(actual, expected, name) ({ \ argument
263 typeof(expected) ___exp = (expected); \
271 #define ASSERT_GT(actual, expected, name) ({ \ argument
274 typeof(expected) ___exp = (expected); \
[all …]
Dtest_offload.py172 def bpftool_prog_list(expected=None, ns=""): argument
178 if expected is not None:
179 if len(progs) != expected:
181 (len(progs), expected))
184 def bpftool_map_list(expected=None, ns=""): argument
188 if expected is not None:
189 if len(maps) != expected:
191 (len(maps), expected))
194 def bpftool_prog_list_wait(expected=0, n_retry=20): argument
197 if nprogs == expected:
[all …]
/linux-6.1.9/tools/testing/selftests/powerpc/pmu/ebb/
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()
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.1.9/drivers/hid/
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 …]
/linux-6.1.9/tools/testing/selftests/ftrace/test.d/ftrace/
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.1.9/tools/testing/selftests/bpf/prog_tests/
Dselect_reuseport.c240 struct data_check expected = {}, result; in check_data() local
256 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()
260 expected.ip_protocol = IPPROTO_UDP; in check_data()
264 expected.eth_protocol = htons(ETH_P_IPV6); in check_data()
265 expected.bind_inany = !srv_sa.v6.sin6_addr.s6_addr32[3] && in check_data()
270 memcpy(&expected.skb_addrs[0], cli_sa.v6.sin6_addr.s6_addr32, in check_data()
272 memcpy(&expected.skb_addrs[4], &in6addr_loopback, in check_data()
274 expected.skb_ports[0] = cli_sa.v6.sin6_port; in check_data()
[all …]
/linux-6.1.9/mm/damon/
Dvaddr-test.h124 unsigned long *expected, int nr_expected) in damon_do_test_apply_three_regions() argument
140 KUNIT_EXPECT_EQ(test, r->ar.start, expected[i * 2]); in damon_do_test_apply_three_regions()
141 KUNIT_EXPECT_EQ(test, r->ar.end, expected[i * 2 + 1]); in damon_do_test_apply_three_regions()
162 unsigned long expected[] = {5, 20, 20, 27, 45, 55, in damon_test_apply_three_regions1() local
166 new_three_regions, expected, ARRAY_SIZE(expected)); in damon_test_apply_three_regions1()
184 unsigned long expected[] = {5, 20, 20, 27, 56, 57, in damon_test_apply_three_regions2() local
188 new_three_regions, expected, ARRAY_SIZE(expected)); in damon_test_apply_three_regions2()
208 unsigned long expected[] = {5, 20, 20, 27, 61, 63, in damon_test_apply_three_regions3() local
212 new_three_regions, expected, ARRAY_SIZE(expected)); in damon_test_apply_three_regions3()
233 unsigned long expected[] = {5, 7, 30, 32, 65, 68}; in damon_test_apply_three_regions4() local
[all …]
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dsetget_sockopt.c30 int expected; member
41 { .opt = SO_SNDBUF, .new = 8123, .expected = 8123 * 2, },
42 { .opt = SO_RCVBUF, .new = 8123, .expected = 8123 * 2, },
44 { .opt = SO_PRIORITY, .new = 0xeb9f, .expected = 0xeb9f, },
46 { .opt = SO_RCVLOWAT, .new = 8123, .expected = 8123, },
47 { .opt = SO_MARK, .new = 0xeb9f, .expected = 0xeb9f, },
48 { .opt = SO_MAX_PACING_RATE, .new = 0xeb9f, .expected = 0xeb9f, },
55 { .opt = TCP_KEEPIDLE, .new = 123, .expected = 123, .restore = 321, },
56 { .opt = TCP_KEEPINTVL, .new = 123, .expected = 123, .restore = 321, },
57 { .opt = TCP_KEEPCNT, .new = 123, .expected = 123, .restore = 124, },
[all …]
/linux-6.1.9/tools/testing/selftests/damon/
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.1.9/tools/testing/selftests/net/mptcp/
Ddiag.sh42 local expected=$2
50 if [ $nr != $expected ]; then
51 echo "[ fail ] expected $expected found $nr"
67 local expected=$1
78 [ $nr == $expected ] && break;
86 echo "[ fail ] timeout while expecting $expected max $max last $nr"
88 elif [ $nr != $expected ]; then
89 echo "[ fail ] expected $expected found $nr"
110 local expected=$2
118 if [ $nr != $expected ]; then
[all …]
/linux-6.1.9/tools/perf/tests/
Dhists_cumulate.c177 static int do_test(struct hists *hists, struct result *expected, size_t nr_expected, in do_test() argument
210 TEST_ASSERT_VAL(buf, he->stat.period == expected[i].self && in do_test()
211 !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()
216 TEST_ASSERT_VAL(buf, he->stat_acc->period == expected[i].children); 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()
[all …]
/linux-6.1.9/lib/
Dtest_user_copy.c94 int expected = is_zeroed(kmem + start, len); in test_check_nonzero_user() local
96 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()
118 ret = test(expected == NULL, "kmalloc failed"); 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()
144 memset(expected + usize, 0x0, ksize - usize); in test_copy_struct_from_user()
[all …]
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)); \
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()
/linux-6.1.9/tools/testing/selftests/firmware/
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
/linux-6.1.9/tools/testing/selftests/net/
Drxtimestamp.c45 struct tstamps expected; member
145 if (t->expected.tstamp) in print_test_case()
147 if (t->expected.tstampns) in print_test_case()
149 if (t->expected.swtstamp || t->expected.hwtstamp) { in print_test_case()
151 if (t->expected.swtstamp) in print_test_case()
153 if (t->expected.swtstamp && t->expected.hwtstamp) in print_test_case()
155 if (t->expected.hwtstamp) in print_test_case()
175 bool do_recv(int rcv, int read_size, struct tstamps expected) in do_recv() argument
233 if (expected.field != actual.field) { \ in do_recv()
234 if (expected.field) \ in do_recv()
[all …]
/linux-6.1.9/tools/testing/selftests/powerpc/vphn/
Dtest-vphn.c24 u32 expected[VPHN_ASSOC_BUFSIZE]; member
374 if (len != test->expected[0]) { in test_one()
375 printf("expected %d elements, got %d\n", test->expected[0], in test_one()
382 if (val != test->expected[i]) { in test_one()
384 test->expected[i]); in test_one()
/linux-6.1.9/fs/squashfs/
Dfile.c422 static int squashfs_readpage_fragment(struct page *page, int expected) in squashfs_readpage_fragment() argument
435 squashfs_copy_cache(page, buffer, expected, in squashfs_readpage_fragment()
442 static int squashfs_readpage_sparse(struct page *page, int expected) in squashfs_readpage_sparse() argument
444 squashfs_copy_cache(page, NULL, expected, 0); in squashfs_readpage_sparse()
455 int expected = index == file_end ? in squashfs_read_folio() local
477 res = squashfs_readpage_sparse(page, expected); in squashfs_read_folio()
479 res = squashfs_readpage_block(page, block, res, expected); in squashfs_read_folio()
481 res = squashfs_readpage_fragment(page, expected); in squashfs_read_folio()
501 unsigned int pages, unsigned int expected) in squashfs_readahead_fragment() argument
514 expected += squashfs_i(inode)->fragment_offset; in squashfs_readahead_fragment()
[all …]

12345678910>>...29