| /tools/testing/selftests/hid/tests/ |
| A D | test_keyboard.py | 270 expected = [syn_event] 278 expected = [syn_event] 291 expected = [syn_event] 300 expected = [syn_event] 310 expected = [syn_event] 318 expected = [syn_event] 328 expected = [syn_event] 382 expected = [syn_event] 398 expected = [syn_event] 432 expected = [syn_event] [all …]
|
| A D | test_apple_keyboard.py | 172 expected = [syn_event] 181 expected = [syn_event] 196 expected = [syn_event] 205 expected = [syn_event] 214 expected = [syn_event] 228 expected = [syn_event] 237 expected = [syn_event] 244 expected = [syn_event] 259 expected = [syn_event] 268 expected = [syn_event] [all …]
|
| A D | test_mouse.py | 766 expected = [syn_event] 775 expected = [syn_event] 784 expected = [syn_event] 819 expected = [syn_event] 831 expected.append( 900 expected.append( 909 expected.append( 919 expected.append( 989 expected.append( 998 expected.append( [all …]
|
| A D | test_ite_keyboard.py | 156 expected = [syn_event] 157 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_RFKILL, 1)) 160 self.assertInputEventsIn(expected, events) 162 expected = [syn_event] 163 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_RFKILL, 0)) 167 self.assertInputEventsIn(expected, events)
|
| /tools/testing/selftests/clone3/ |
| A D | clone3.c | 168 int expected; member 178 .expected = 0, 185 .expected = 0, 193 .expected = 0, 207 .expected = 0, 242 .expected = 0, 249 .expected = -E2BIG, 256 .expected = -E2BIG, 270 .expected = 0, 285 .expected = 0, [all …]
|
| /tools/testing/selftests/powerpc/pmu/ebb/ |
| A 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()
|
| A 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/riscv/vector/ |
| A D | vstate_prctl.c | 25 if (rc != expected) { in test_and_compare_child() 26 printf("Test failed, check %d != %ld\n", rc, expected); in test_and_compare_child() 130 long flag, expected; in TEST() local 143 expected = flag | PR_RISCV_V_VSTATE_CTRL_ON; in TEST() 145 EXPECT_EQ(0, test_and_compare_child(flag, expected, 0, xtheadvector)); in TEST() 150 long flag, expected; in TEST() local 163 expected = flag | PR_RISCV_V_VSTATE_CTRL_ON; in TEST() 170 long flag, expected; in TEST() local 182 expected = flag | PR_RISCV_V_VSTATE_CTRL_OFF; in TEST() 189 long flag, expected; in TEST() local [all …]
|
| /tools/testing/selftests/net/mptcp/ |
| A D | diag.sh | 50 local expected=$2 58 if [ "$nr" != "$expected" ]; then 88 local expected=$1 98 local expected=$1 109 [ $nr == $expected ] && break; 120 elif [ $nr != $expected ]; then 143 local expected=$2 168 local expected=$1 177 expected=$((expected + listen_nr)) 192 local expected=$1 [all …]
|
| /tools/perf/tests/shell/ |
| A D | record+probe_libc_inet_pton.sh | 37 expected=`mktemp -u /tmp/expected.XXX` 39 echo "ping[][0-9 \.:]+$event_name: \([[:xdigit:]]+\)" > $expected 40 echo ".*inet_pton\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" >> $expected 44 …I_)?getaddrinfo|text_to_binary_address)\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" >> $expected 45 echo "(gaih_inet|main)\+0x[[:xdigit:]]+[[:space:]]\(inlined|.*/bin/ping.*\)$" >> $expected 49 echo ".*(\+0x[[:xdigit:]]+|\[unknown\])[[:space:]]\(.*/bin/ping.*\)$" >> $expected 71 exec 4<$expected 115 rm -f ${perf_data} ${perf_script} ${expected}
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | tc_helpers.h | 24 static inline void __assert_mprog_count(int target, int expected, int ifindex) in __assert_mprog_count() argument 31 ASSERT_EQ(count, expected, "count"); in __assert_mprog_count() 35 static inline void assert_mprog_count(int target, int expected) in assert_mprog_count() argument 37 __assert_mprog_count(target, expected, loopback); in assert_mprog_count() 40 static inline void assert_mprog_count_ifindex(int ifindex, int target, int expected) in assert_mprog_count_ifindex() argument 42 __assert_mprog_count(target, expected, ifindex); in assert_mprog_count_ifindex()
|
| A D | select_reuseport.c | 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() 283 expected.eth_protocol, expected.ip_protocol, in check_data() 284 expected.bind_inany); in check_data() 365 enum result expected) in send_data() argument 381 family, err, errno, expected); in send_data() 387 enum result expected) in do_test() argument 395 expected); in do_test() 403 nev, expected, type, family, in do_test() [all …]
|
| /tools/testing/selftests/ftrace/test.d/ftrace/ |
| A 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/bpf/progs/ |
| A 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, }, 63 .expected = BPF_SOCK_OPS_ALL_CB_FLAGS, }, 128 int old, tmp, new, expected, opt; in bpf_test_sockopt_int() local 133 expected = t->tcp_expected; in bpf_test_sockopt_int() 135 expected = t->expected; in bpf_test_sockopt_int() [all …]
|
| /tools/testing/selftests/bpf/ |
| A D | test_progs.h | 248 #define ASSERT_EQ(actual, expected, name) ({ \ argument 251 typeof(expected) ___exp = (expected); \ 262 typeof(expected) ___exp = (expected); \ 270 #define ASSERT_LT(actual, expected, name) ({ \ argument 273 typeof(expected) ___exp = (expected); \ 284 typeof(expected) ___exp = (expected); \ 295 typeof(expected) ___exp = (expected); \ 306 typeof(expected) ___exp = (expected); \ 317 const char *___exp = expected; \ 328 const char *___exp = expected; \ [all …]
|
| /tools/testing/selftests/ |
| A D | kselftest_harness.h | 513 __EXPECT(expected, #expected, seen, #seen, ==, 1) 524 __EXPECT(expected, #expected, seen, #seen, !=, 1) 535 __EXPECT(expected, #expected, seen, #seen, <, 1) 546 __EXPECT(expected, #expected, seen, #seen, <=, 1) 557 __EXPECT(expected, #expected, seen, #seen, >, 1) 568 __EXPECT(expected, #expected, seen, #seen, >=, 1) 631 __EXPECT(expected, #expected, seen, #seen, ==, 0) 642 __EXPECT(expected, #expected, seen, #seen, !=, 0) 653 __EXPECT(expected, #expected, seen, #seen, <, 0) 664 __EXPECT(expected, #expected, seen, #seen, <=, 0) [all …]
|
| /tools/testing/selftests/powerpc/vphn/ |
| A 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/ |
| A 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/ |
| A D | hists_cumulate.c | 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() 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() 484 struct result expected[] = { in test3() local 510 err = do_test(hists, expected, ARRAY_SIZE(expected), NULL, 0); in test3() 604 struct result expected[] = { in test4() local [all …]
|
| /tools/testing/selftests/net/ |
| A D | bpf_offload.py | 185 if expected is not None: 186 if len(progs) != expected: 195 if expected is not None: 196 if len(maps) != expected: 204 if nprogs == expected: 214 if nmaps == expected: 364 if expected is not None: 480 if expected is not None: 548 maps = bpftool_map_list_wait(expected=expected) 556 bpftool_prog_list(expected=0) [all …]
|
| A 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/ |
| A 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/arm64/signal/testcases/ |
| A D | gcs_frame.c | 23 unsigned long expected, gcspr; in gcs_regs() local 27 ret = prctl(PR_GET_SHADOW_STACK_STATUS, &expected, 0, 0, 0); in gcs_regs() 64 if (gcs->features_enabled != expected) { in gcs_regs() 66 gcs->features_enabled, expected); in gcs_regs()
|
| /tools/testing/selftests/drivers/net/ |
| A D | queues.py | 69 expected = sys_get_queues(cfg.dev['ifname'], qtype) 70 ksft_eq(queues, expected) 88 expected = curr_queues - 1 91 ksft_eq(queues, expected) 93 expected = curr_queues 96 ksft_eq(queues, expected)
|
| /tools/testing/selftests/powerpc/dexcr/ |
| A 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()
|