Home
last modified time | relevance | path

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

12345678910>>...28

/linux/tools/testing/selftests/hid/tests/
H A Dtest_keyboard.py270 expected = [syn_event]
271 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_A, 1))
274 self.assertInputEventsIn(expected, events)
278 expected = [syn_event]
279 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_A, 0))
282 self.assertInputEventsIn(expected, events)
291 expected = [syn_event]
292 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_A, 1))
293 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_Q, 1))
296 self.assertInputEventsIn(expected, events)
[all …]
H A Dtest_apple_keyboard.py171 expected = [syn_event]
172 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_ALL_APPLICATIONS, 1))
175 self.assertInputEventsIn(expected, events)
180 expected = [syn_event]
181 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_ALL_APPLICATIONS, 0))
184 self.assertInputEventsIn(expected, events)
195 expected = [syn_event]
196 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_F4, 1))
197 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_FN, 1))
200 self.assertInputEventsIn(expected, events)
[all …]
H A Dtest_mouse.py704 expected = [syn_event]
705 expected.append(libevdev.InputEvent(libevdev.EV_REL.REL_WHEEL, 1))
707 expected.append(libevdev.InputEvent(libevdev.EV_REL.REL_WHEEL_HI_RES, 120))
710 self.assertInputEvents(expected, events)
713 expected = [syn_event]
714 expected.append(libevdev.InputEvent(libevdev.EV_REL.REL_WHEEL, -1))
716 expected.append(libevdev.InputEvent(libevdev.EV_REL.REL_WHEEL_HI_RES, -120))
719 self.assertInputEvents(expected, events)
722 expected = [syn_event]
723 expected.append(libevdev.InputEvent(libevdev.EV_REL.REL_X, -1))
[all …]
/linux/drivers/iio/test/
H A 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/drivers/firewire/
H A Dohci-serdes-test.c15 const u32 expected = 0x803d0594; in test_self_id_count_register_deserialization() local
17 bool is_error = ohci1394_self_id_count_is_error(expected); in test_self_id_count_register_deserialization()
18 u8 generation = ohci1394_self_id_count_get_generation(expected); in test_self_id_count_register_deserialization()
19 u32 size = ohci1394_self_id_count_get_size(expected); in test_self_id_count_register_deserialization()
45 static const __le32 expected[] = { in test_at_data_serdes() local
51 bool has_src_bus_id = ohci1394_at_data_get_src_bus_id(expected); in test_at_data_serdes()
52 unsigned int speed = ohci1394_at_data_get_speed(expected); in test_at_data_serdes()
53 unsigned int tlabel = ohci1394_at_data_get_tlabel(expected); in test_at_data_serdes()
54 unsigned int retry = ohci1394_at_data_get_retry(expected); in test_at_data_serdes()
55 unsigned int tcode = ohci1394_at_data_get_tcode(expected); in test_at_data_serdes()
[all …]
H A Dpacket-serdes-test.c276 static const u32 expected[ASYNC_HEADER_QUADLET_COUNT] = { in test_async_header_write_quadlet_request() local
293 deserialize_async_header_quadlet_request(expected, &dst_id, &tlabel, &retry, &tcode, in test_async_header_write_quadlet_request()
295 quadlet_data = async_header_get_quadlet_data(expected); in test_async_header_write_quadlet_request()
310 KUNIT_EXPECT_MEMEQ(test, header, expected, sizeof(expected)); in test_async_header_write_quadlet_request()
315 static const u32 expected[ASYNC_HEADER_QUADLET_COUNT] = { in test_async_header_write_block_request() local
333 deserialize_async_header_block_request(expected, &dst_id, &tlabel, &retry, &tcode, in test_async_header_write_block_request()
350 KUNIT_EXPECT_MEMEQ(test, header, expected, sizeof(expected)); in test_async_header_write_block_request()
355 static const u32 expected[ASYNC_HEADER_QUADLET_COUNT] = { in test_async_header_write_response() local
371 deserialize_async_header_quadlet_response(expected, &dst_id, &tlabel, &retry, &tcode, in test_async_header_write_response()
385 KUNIT_EXPECT_MEMEQ(test, header, expected, sizeof(expected) - sizeof(expected[0])); in test_async_header_write_response()
[all …]
/linux/drivers/gpu/drm/tests/
H A Ddrm_format_helper_test.c29 const u8 expected[TEST_BUF_SIZE]; member
34 const u8 expected[TEST_BUF_SIZE]; member
39 const u16 expected[TEST_BUF_SIZE]; member
45 const u16 expected[TEST_BUF_SIZE]; member
50 const u16 expected[TEST_BUF_SIZE]; member
55 const u16 expected[TEST_BUF_SIZE]; member
60 const u8 expected[TEST_BUF_SIZE]; member
65 const u32 expected[TEST_BUF_SIZE]; member
70 const u32 expected[TEST_BUF_SIZE]; member
75 const u32 expected[TEST_BUF_SIZE]; member
[all …]
H A Ddrm_dp_mst_helper_test.c19 const int expected; member
27 .expected = 689
33 .expected = 1047
39 .expected = 1063
45 .expected = 1191
51 .expected = 1161
60 params->expected); in drm_test_dp_mst_calc_pbn_mode()
74 fixed20_12 expected; member
95 .expected = fp_init(179, 9259), /* 179.09259 */
100 .expected = fp_init(89, 54629),
[all …]
/linux/tools/testing/selftests/clone3/
H A Dclone3.c112 static bool test_clone3(uint64_t flags, size_t size, int expected, in test_clone3() argument
122 getpid(), ret, expected); in test_clone3()
123 if (ret != expected) { in test_clone3()
126 getpid(), ret, expected); in test_clone3()
168 int expected; member
178 .expected = 0,
185 .expected = 0,
193 .expected = 0,
200 .expected = -EINVAL,
207 .expected = 0,
[all …]
/linux/fs/ext4/
H 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},
145 .expected = {.tv_sec = 0x17fffffffLL, .tv_nsec = 0L},
153 .expected = {.tv_sec = 0x180000000LL, .tv_nsec = 0L},
[all …]
/linux/tools/testing/selftests/net/mptcp/
H A Ddiag.sh50 local expected=$2
58 if [ "$nr" != "$expected" ]; then
63 mptcp_lib_pr_fail "expected $expected found $nr"
88 local expected=$1
91 __chk_nr "ss -nlHMON $ns | wc -l" "$expected" "$msg - mptcp" 0
92 __chk_nr "ss -nlHtON $ns | wc -l" "$expected" "$msg - subflows"
98 local expected=$1
109 [ $nr == $expected ] && break;
117 mptcp_lib_pr_fail "timeout while expecting $expected max $max last $nr"
120 elif [ $nr != $expected ]; then
[all …]
/linux/tools/perf/tests/shell/
H A Drecord+probe_libc_inet_pton.sh36 expected=`mktemp -u /tmp/expected.XXX`
38 echo "ping[][0-9 \.:]+$event_name: \([[:xdigit:]]+\)" > $expected
39 echo ".*inet_pton\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" >> $expected
43 echo "((__GI_)?getaddrinfo|text_to_binary_address)\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" >> $expected
44 echo "(gaih_inet|main)\+0x[[:xdigit:]]+[[:space:]]\(inlined|.*/bin/ping.*\)$" >> $expected
48 # Add gaih_inet to expected backtrace only if it is part of libc.
50 echo "gaih_inet.*\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" >> $expected
52 echo "getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" >> $expected
53 echo ".*(\+0x[[:xdigit:]]+|\[unknown\])[[:space:]]\(.*/bin/ping.*\)$" >> $expected
[all...]
/linux/scripts/kconfig/tests/
H A Dconftest.py228 def _read_and_compare(self, compare, expected): argument
234 with open(os.path.join(self._test_dir, expected)) as f:
238 def _contains(self, attr, expected): argument
241 expected)
243 def _matches(self, attr, expected): argument
245 expected)
247 def config_contains(self, expected): argument
253 return self._contains('config', expected)
255 def config_matches(self, expected): argument
261 return self._matches('config', expected)
[all …]
/linux/tools/testing/selftests/
H A Dkselftest_harness.h511 #define ASSERT_EQ(expected, seen) \ argument
512 __EXPECT(expected, #expected, seen, #seen, ==, 1)
522 #define ASSERT_NE(expected, seen) \ argument
523 __EXPECT(expected, #expected, seen, #seen, !=, 1)
533 #define ASSERT_LT(expected, seen) \ argument
534 __EXPECT(expected, #expected, seen, #seen, <, 1)
544 #define ASSERT_LE(expected, seen) \ argument
545 __EXPECT(expected, #expected, seen, #seen, <=, 1)
555 #define ASSERT_GT(expected, seen) \ argument
556 __EXPECT(expected, #expected, seen, #seen, >, 1)
[all …]
/linux/tools/testing/selftests/powerpc/pmu/ebb/
H 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()
/linux/tools/testing/selftests/bpf/progs/
H A Dsetget_sockopt.c28 int expected; member
39 { .opt = SO_SNDBUF, .new = 8123, .expected = 8123 * 2, },
40 { .opt = SO_RCVBUF, .new = 8123, .expected = 8123 * 2, },
42 { .opt = SO_PRIORITY, .new = 0xeb9f, .expected = 0xeb9f, },
44 { .opt = SO_RCVLOWAT, .new = 8123, .expected = 8123, },
45 { .opt = SO_MARK, .new = 0xeb9f, .expected = 0xeb9f, },
46 { .opt = SO_MAX_PACING_RATE, .new = 0xeb9f, .expected = 0xeb9f, },
53 { .opt = TCP_KEEPIDLE, .new = 123, .expected = 123, .restore = 321, },
54 { .opt = TCP_KEEPINTVL, .new = 123, .expected = 123, .restore = 321, },
55 { .opt = TCP_KEEPCNT, .new = 123, .expected = 123, .restore = 124, },
[all …]
/linux/tools/testing/selftests/bpf/
H A Dtest_progs.h247 #define ASSERT_EQ(actual, expected, name) ({ \ argument
250 typeof(expected) ___exp = (expected); \
258 #define ASSERT_NEQ(actual, expected, name) ({ \ argument
261 typeof(expected) ___exp = (expected); \
269 #define ASSERT_LT(actual, expected, name) ({ \ argument
272 typeof(expected) ___exp = (expected); \
280 #define ASSERT_LE(actual, expected, name) ({ \ argument
283 typeof(expected) ___exp = (expected); \
291 #define ASSERT_GT(actual, expected, name) ({ \ argument
294 typeof(expected) ___exp = (expected); \
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dselect_reuseport.c230 struct data_check expected = {}, result; in check_data() local
246 expected.len = MIN_TCPHDR_LEN; in check_data()
247 expected.ip_protocol = IPPROTO_TCP; in check_data()
249 expected.len = UDPHDR_LEN; in check_data()
250 expected.ip_protocol = IPPROTO_UDP; in check_data()
254 expected.eth_protocol = htons(ETH_P_IPV6); in check_data()
255 expected.bind_inany = !srv_sa.v6.sin6_addr.s6_addr32[3] && in check_data()
260 memcpy(&expected.skb_addrs[0], cli_sa.v6.sin6_addr.s6_addr32, in check_data()
262 memcpy(&expected.skb_addrs[4], &in6addr_loopback, in check_data()
264 expected.skb_ports[0] = cli_sa.v6.sin6_port; in check_data()
[all …]
/linux/drivers/hid/
H A Dhid-uclogic-rdesc-test.c20 const __u8 *expected; member
107 .expected = template_empty,
115 .expected = template_small,
123 .expected = template_no_ph,
131 .expected = template_pen_ph_end,
139 .expected = template_btn_ph_end,
147 .expected = expected_pen_all_params,
155 .expected = expected_frame_all_params,
163 .expected = expected_pen_some_params,
171 .expected = expected_pen_some_params,
[all …]
/linux/tools/testing/selftests/riscv/vector/
H A Dvstate_prctl.c51 int test_and_compare_child(long provided, long expected, int inherit) in test_and_compare_child() argument
62 if (rc != expected) { in test_and_compare_child()
64 expected); in test_and_compare_child()
76 long flag, expected; in main() local
136 expected = flag | PR_RISCV_V_VSTATE_CTRL_ON; in main()
137 if (test_and_compare_child(flag, expected, 0)) in main()
140 if (test_and_compare_child(flag, expected, 1)) in main()
146 expected = flag | PR_RISCV_V_VSTATE_CTRL_OFF; in main()
147 if (test_and_compare_child(flag, expected, 0)) in main()
150 if (test_and_compare_child(flag, expected, 1)) in main()
/linux/tools/testing/selftests/ftrace/test.d/ftrace/
H A Dfunc_set_ftrace_file.tc126 DIFF=`diff $TMPDIR/actual $TMPDIR/expected`
131 cat available_filter_functions | cut -d' ' -f1 | grep 'lock' | sort -u > $TMPDIR/expected
136 grep -v 'try.*lock$' $TMPDIR/expected > $TMPDIR/expected2
137 mv $TMPDIR/expected2 $TMPDIR/expected
142 grep -v '^m.*lock$' $TMPDIR/expected > $TMPDIR/expected2
143 mv $TMPDIR/expected2 $TMPDIR/expected
148 grep -v '^c.*unlock' $TMPDIR/expected > $TMPDIR/expected2
149 mv $TMPDIR/expected2 $TMPDIR/expected
154 > $TMPDIR/expected
158 rm $TMPDIR/expected
/linux/mm/damon/tests/
H A Dvaddr-kunit.h115 * expected start/end addresses of monitoring target regions that
117 * nr_expected the number of addresses in 'expected'
127 * as expected.
132 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()
172 unsigned long expected[] = {5, 20, 20, 27, 45, 55, in damon_test_apply_three_regions1() local
176 new_three_regions, expected, ARRAY_SIZE(expected)); in damon_test_apply_three_regions1()
194 unsigned long expected[] in damon_test_apply_three_regions2() local
218 unsigned long expected[] = {5, 20, 20, 27, 61, 63, damon_test_apply_three_regions3() local
243 unsigned long expected[] = {5, 7, 30, 32, 65, 68}; damon_test_apply_three_regions4() local
[all...]
/linux/tools/testing/selftests/net/
H A Dbpf_offload.py177 def bpftool_prog_list(expected=None, ns="", exclude_orphaned=True): argument
185 if expected is not None:
186 if len(progs) != expected:
187 fail(True, "%d BPF programs loaded, expected %d" %
188 (len(progs), expected))
191 def bpftool_map_list(expected=None, ns=""): argument
195 if expected is not None:
196 if len(maps) != expected:
197 fail(True, "%d BPF maps loaded, expected %d" %
198 (len(maps), expected))
201 bpftool_prog_list_wait(expected=0, n_retry=20) global() argument
209 bpftool_map_list_wait(expected=0, n_retry=20, ns="") global() argument
358 dfs_get_bound_progs(self, expected) global() argument
451 tc_show_ingress(self, expected=None) global() argument
543 pin_map(file_name, idx=0, expected=1) global() argument
[all...]
/linux/tools/testing/selftests/damon/
H A D_debugfs_common.sh9 expected=$5
11 if [ "$expected" = "0" ]
17 if [ $? -ne "$expected" ]
19 echo "writing $content to $file doesn't return $expected"
20 echo "expected because: $expect_reason"
37 expected=$3
41 if [ "$content" != "$expected" ]
43 echo "reading $file expected $expected but $content"
44 echo "expected becaus
[all...]
/linux/tools/perf/tests/
H A Dhists_cumulate.c190 static int do_test(struct hists *hists, struct result *expected, size_t nr_expected, in do_test() argument
223 TEST_ASSERT_VAL(buf, he->stat.period == expected[i].self && in do_test()
224 !strcmp(COMM(he), expected[i].comm) && in do_test()
225 !strcmp(DSO(he), expected[i].dso) && in do_test()
226 !strcmp(SYM(he), expected[i].sym)); in do_test()
229 TEST_ASSERT_VAL(buf, he->stat_acc->period == expected[i].children); in do_test()
237 TEST_ASSERT_VAL("callchains expected", !RB_EMPTY_ROOT(root)); in do_test()
268 * expected output: in test1()
282 struct result expected[] = { in test1() local
305 err = do_test(hists, expected, ARRAY_SIZ in test1()
380 struct result expected[] = { test2() local
484 struct result expected[] = { test3() local
604 struct result expected[] = { test4() local
[all...]

12345678910>>...28