| /tools/testing/selftests/hid/tests/ |
| D | test_keyboard.py | 270 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 …]
|
| D | test_apple_keyboard.py | 171 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 …]
|
| D | test_mouse.py | 704 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 …]
|
| D | test_ite_keyboard.py | 155 expected = [syn_event] 156 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_RFKILL, 1)) 159 self.assertInputEventsIn(expected, events) 161 expected = [syn_event] 162 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_RFKILL, 0)) 166 self.assertInputEventsIn(expected, events)
|
| /tools/testing/selftests/clone3/ |
| D | clone3.c | 112 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 …]
|
| /tools/perf/tests/shell/ |
| D | record+probe_libc_inet_pton.sh | 36 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\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" >> $expected 44 echo "main\+0x[[:xdigit:]]+[[:space:]]\(.*/bin/ping.*\)$" >> $expected 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 57 echo ".*(\+0x[[:xdigit:]]+|\[unknown\])[[:space:]]\(.*/bin/ping.*\)$" >> $expected 80 exec 4<$expected [all …]
|
| /tools/testing/selftests/powerpc/pmu/ebb/ |
| D | reg_access_test.c | 18 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()
|
| D | cycles_with_mmcr2_test.c | 25 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()
|
| /tools/testing/selftests/net/mptcp/ |
| D | diag.sh | 50 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 …]
|
| /tools/testing/selftests/damon/ |
| D | _debugfs_common.sh | 9 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"
|
| /tools/testing/selftests/ftrace/test.d/ftrace/ |
| D | func_set_ftrace_file.tc | 126 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
|
| /tools/testing/selftests/riscv/vector/ |
| D | vstate_prctl.c | 51 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()
|
| /tools/testing/selftests/bpf/ |
| D | test_progs.h | 241 #define ASSERT_EQ(actual, expected, name) ({ \ argument 244 typeof(expected) ___exp = (expected); \ 252 #define ASSERT_NEQ(actual, expected, name) ({ \ argument 255 typeof(expected) ___exp = (expected); \ 263 #define ASSERT_LT(actual, expected, name) ({ \ argument 266 typeof(expected) ___exp = (expected); \ 274 #define ASSERT_LE(actual, expected, name) ({ \ argument 277 typeof(expected) ___exp = (expected); \ 285 #define ASSERT_GT(actual, expected, name) ({ \ argument 288 typeof(expected) ___exp = (expected); \ [all …]
|
| /tools/testing/selftests/ |
| D | kselftest_harness.h | 511 #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 …]
|
| /tools/testing/selftests/bpf/progs/ |
| D | setget_sockopt.c | 28 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 …]
|
| /tools/testing/selftests/bpf/prog_tests/ |
| D | tc_helpers.h | 52 static inline void __assert_mprog_count(int target, int expected, int ifindex) in __assert_mprog_count() argument 59 ASSERT_EQ(count, expected, "count"); in __assert_mprog_count() 63 static inline void assert_mprog_count(int target, int expected) in assert_mprog_count() argument 65 __assert_mprog_count(target, expected, loopback); in assert_mprog_count() 68 static inline void assert_mprog_count_ifindex(int ifindex, int target, int expected) in assert_mprog_count_ifindex() argument 70 __assert_mprog_count(target, expected, ifindex); in assert_mprog_count_ifindex()
|
| D | select_reuseport.c | 230 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 …]
|
| /tools/testing/selftests/drivers/net/ |
| D | queues.py | 28 expected = sys_get_queues(cfg.dev['ifname']) 29 ksft_eq(queues, expected) 47 expected = curr_queues - 1 50 ksft_eq(queues, expected) 52 expected = curr_queues 55 ksft_eq(queues, expected)
|
| /tools/testing/selftests/powerpc/vphn/ |
| D | test-vphn.c | 24 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()
|
| /tools/testing/selftests/firmware/ |
| D | fw_upload.sh | 77 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
|
| /tools/perf/tests/ |
| D | hists_cumulate.c | 190 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() 282 struct result expected[] = { in test1() local 305 err = do_test(hists, expected, ARRAY_SIZE(expected), NULL, 0); in test1() 380 struct result expected[] = { in test2() local 452 err = do_test(hists, expected, ARRAY_SIZE(expected), in test2() [all …]
|
| /tools/testing/selftests/net/ |
| D | bpf_offload.py | 177 def bpftool_prog_list(expected=None, ns="", exclude_orphaned=True): argument 185 if expected is not None: 186 if len(progs) != expected: 188 (len(progs), expected)) 191 def bpftool_map_list(expected=None, ns=""): argument 195 if expected is not None: 196 if len(maps) != expected: 198 (len(maps), expected)) 201 def bpftool_prog_list_wait(expected=0, n_retry=20): argument 204 if nprogs == expected: [all …]
|
| D | rxtimestamp.c | 45 struct tstamps expected; member 163 if (t->expected.tstamp) in print_test_case() 165 if (t->expected.tstampns) in print_test_case() 167 if (t->expected.swtstamp || t->expected.hwtstamp) { in print_test_case() 169 if (t->expected.swtstamp) in print_test_case() 171 if (t->expected.swtstamp && t->expected.hwtstamp) in print_test_case() 173 if (t->expected.hwtstamp) in print_test_case() 193 bool do_recv(int rcv, int read_size, struct tstamps expected) in do_recv() argument 251 if (expected.field != actual.field) { \ in do_recv() 252 if (expected.field) \ in do_recv() [all …]
|
| /tools/testing/selftests/exec/ |
| D | non-regular.c | 44 int expected; in FIXTURE_VARIANT() local 76 .expected = ELOOP, in FIXTURE_VARIANT_ADD() 91 .expected = EACCES, in FIXTURE_VARIANT_ADD() 114 .expected = EACCES, in FIXTURE_VARIANT_ADD() 125 .expected = EACCES, in FIXTURE_VARIANT_ADD() 143 .expected = EACCES, in FIXTURE_VARIANT_ADD() 166 EXPECT_EQ(errno, variant->expected); in TEST_F()
|
| /tools/testing/selftests/powerpc/dexcr/ |
| D | lsdexcr.c | 78 bool expected = actual; /* Assume it's fine if we don't expect a specific set/clear value */ in print_aspect_config() local 93 expected = true; in print_aspect_config() 96 expected = false; in print_aspect_config() 108 expected = true; in print_aspect_config() 125 if (actual != expected) in print_aspect_config()
|