/kernel/linux/linux-6.6/tools/testing/selftests/hid/tests/ |
H A 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, event [all...] |
H A 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, event [all...] |
H A D | test_mouse.py | 425 f"Unexpected data: {data}, expected {self.set_feature_report}" 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 [all...] |
/kernel/linux/linux-6.6/drivers/iio/test/ |
H A D | iio-test-rescale.c | 28 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 [all...] |
/kernel/linux/linux-5.10/tools/perf/tests/shell/ |
H A D | record+probe_libc_inet_pton.sh | 33 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 [all...] |
/kernel/linux/linux-5.10/fs/ext4/ |
H A D | inode-test.c | 77 struct timespec64 expected; member 110 .expected = {.tv_sec = -0x80000000LL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding() 118 .expected = {.tv_sec = -1LL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding() 126 .expected = {0LL, 0L}, in inode_test_xtimestamp_decoding() 134 .expected = {.tv_sec = 0x7fffffffLL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding() 142 .expected = {.tv_sec = 0x80000000LL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding() 150 .expected = {.tv_sec = 0xffffffffLL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding() 158 .expected = {.tv_sec = 0x100000000LL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding() 166 .expected = {.tv_sec = 0x17fffffffLL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding() 174 .expected in inode_test_xtimestamp_decoding() [all...] |
/kernel/linux/linux-6.6/fs/ext4/ |
H A D | inode-test.c | 77 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 [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/tests/ |
H A D | drm_format_helper_test.c | 21 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 u16 expected[TEST_BUF_SIZE]; member 42 const u16 expected[TEST_BUF_SIZE]; member 47 const u16 expected[TEST_BUF_SIZE]; member 52 const u8 expected[TEST_BUF_SIZE]; member 57 const u32 expected[TEST_BUF_SIZE]; member 62 const u32 expected[TEST_BUF_SIZE]; member 67 const u32 expected[TEST_BUF_SIZ member 72 const u8 expected[TEST_BUF_SIZE]; global() member [all...] |
/kernel/liteos_m/testsuites/unittest/posix/src/math/ |
H A D | math_func_test.c | 105 int expected[] = {3, 0, 3}; variable 109 LOG("\n [POSIXTEST][abs]abs(%d) = %d, expected is %d", testValues[i], ret, expected[i]); 110 ICUNIT_ASSERT_EQUAL(ret, expected[i], ret); 124 int expected[] = {-2147483648, 2147483647, 2147483647}; variable 128 LOG("\n [POSIXTEST][abs]abs(%d) = %d, expected is %d", testValues[i], ret, expected[i]); 129 ICUNIT_ASSERT_EQUAL(ret, expected[i], ret); 143 double expected[] = { -0.69314718055994528623, 1.70474809223842527217, 0.00000000000000000000}; variable 149 LOG("\n [POSIXTEST][log]log(%lf) = %lf, expected i 165 double expected[] = { -INFINITY, NAN, NAN, NAN}; global() variable 188 double expected[] = { 2.00000000000000000000, 1.73205080756887719318, 3.16227766016837952279 }; global() variable 208 double expected[] = { 0.00000000000000000000, INFINITY, NAN, NAN, NAN}; global() variable 313 double expected[] = { -1.00000000000000000000, 3.00000000000000000000, -4.00000000000000000000, global() variable 334 double expected[] = { NAN, -INFINITY, INFINITY, 0.00000000000000000000}; global() variable [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/net/mptcp/ |
H A D | diag.sh | 57 local expected=$2 65 if [ "$nr" != "$expected" ]; then 70 echo "[ fail ] expected $expected found $nr" 97 local expected=$1 108 [ $nr == $expected ] && break; 116 echo "[ fail ] timeout while expecting $expected max $max last $nr" 119 elif [ $nr != $expected ]; then 120 echo "[ fail ] expected $expected foun [all...] |
/kernel/linux/linux-6.6/tools/perf/tests/shell/ |
H A D | record+probe_libc_inet_pton.sh | 34 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 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 ".*(\+0x[[:xdigit:]]+|\[unknown\])[[:space:]]\(.*/bin/ping.*\)$" >> $expected [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/ |
H A D | kselftest_harness.h | 167 * Defines a test by name and the expected term signal. 437 * @expected: expected value 440 * ASSERT_EQ(expected, measured): expected == measured 442 #define ASSERT_EQ(expected, seen) \ 443 __EXPECT(expected, #expected, seen, #seen, ==, 1) 448 * @expected: expected valu [all...] |
/kernel/linux/linux-5.10/scripts/kconfig/tests/ |
H A D | conftest.py | 220 def _read_and_compare(self, compare, expected): 224 expected: file that contains the expected data 226 with open(os.path.join(self._test_dir, expected)) as f: 230 def _contains(self, attr, expected): 233 expected) 235 def _matches(self, attr, expected): 237 expected) 239 def config_contains(self, expected): 240 """Check if resulted configuration contains expected dat [all...] |
/kernel/linux/linux-6.6/scripts/kconfig/tests/ |
H A D | conftest.py | 224 def _read_and_compare(self, compare, expected): 228 expected: file that contains the expected data 230 with open(os.path.join(self._test_dir, expected)) as f: 234 def _contains(self, attr, expected): 237 expected) 239 def _matches(self, attr, expected): 241 expected) 243 def config_contains(self, expected): 244 """Check if resulted configuration contains expected dat [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/pmu/ebb/ |
H 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()
|
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/pmu/ebb/ |
H 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()
|
/kernel/linux/linux-6.6/tools/testing/selftests/ |
H A D | kselftest_harness.h | 173 * Defines a test by name and the expected term signal. 450 * @expected: expected value 453 * ASSERT_EQ(expected, measured): expected == measured 455 #define ASSERT_EQ(expected, seen) \ 456 __EXPECT(expected, #expected, seen, #seen, ==, 1) 461 * @expected: expected valu [all...] |
/kernel/linux/linux-6.6/mm/damon/ |
H A D | vaddr-test.h | 115 * 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() 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 129 damon_do_test_apply_three_regions(struct kunit *test, unsigned long *regions, int nr_regions, struct damon_addr_range *three_regions, unsigned long *expected, int nr_expected) damon_do_test_apply_three_regions() argument 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...] |
/kernel/linux/linux-6.6/drivers/hid/ |
H A D | hid-uclogic-rdesc-test.c | 18 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 [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/riscv/vector/ |
H A D | vstate_prctl.c | 59 int test_and_compare_child(long provided, long expected, int inherit) in test_and_compare_child() argument 70 if (rc != expected) { in test_and_compare_child() 72 expected); in test_and_compare_child() 84 long flag, expected; in main() local 144 expected = flag | PR_RISCV_V_VSTATE_CTRL_ON; in main() 145 if (test_and_compare_child(flag, expected, 0)) in main() 148 if (test_and_compare_child(flag, expected, 1)) in main() 154 expected = flag | PR_RISCV_V_VSTATE_CTRL_OFF; in main() 155 if (test_and_compare_child(flag, expected, 0)) in main() 158 if (test_and_compare_child(flag, expected, in main() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/damon/ |
H A D | _debugfs_common.sh | 9 expected=$5 12 if [ $? -ne "$expected" ] 14 echo "writing $content to $file doesn't return $expected" 15 echo "expected because: $expect_reason" 32 expected=$3 36 if [ "$content" != "$expected" ] 38 echo "reading $file expected $expected but $content" 39 echo "expected because: $expect_reason"
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
H A D | select_reuseport.c | 249 struct data_check expected = {}, result; in check_data() local 265 expected.len = MIN_TCPHDR_LEN; in check_data() 266 expected.ip_protocol = IPPROTO_TCP; in check_data() 268 expected.len = UDPHDR_LEN; in check_data() 269 expected.ip_protocol = IPPROTO_UDP; in check_data() 273 expected.eth_protocol = htons(ETH_P_IPV6); in check_data() 274 expected.bind_inany = !srv_sa.v6.sin6_addr.s6_addr32[3] && in check_data() 279 memcpy(&expected.skb_addrs[0], cli_sa.v6.sin6_addr.s6_addr32, in check_data() 281 memcpy(&expected.skb_addrs[4], &in6addr_loopback, in check_data() 283 expected in check_data() 383 send_data(int type, sa_family_t family, void *data, size_t len, enum result expected) send_data() argument 405 do_test(int type, sa_family_t family, struct cmd *cmd, enum result expected) do_test() argument [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | select_reuseport.c | 240 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 in check_data() 374 send_data(int type, sa_family_t family, void *data, size_t len, enum result expected) send_data() argument 396 do_test(int type, sa_family_t family, struct cmd *cmd, enum result expected) do_test() argument [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
H A D | test_progs.h | 237 #define ASSERT_EQ(actual, expected, name) ({ \ 240 typeof(expected) ___exp = (expected); \ 243 "unexpected %s: actual %lld != expected %lld\n", \ 248 #define ASSERT_NEQ(actual, expected, name) ({ \ 251 typeof(expected) ___exp = (expected); \ 254 "unexpected %s: actual %lld == expected %lld\n", \ 259 #define ASSERT_LT(actual, expected, name) ({ \ 262 typeof(expected) ___ex [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | setget_sockopt.c | 31 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, }, 49 { .opt = SO_MAX_PACING_RATE, .new = 0xeb9f, .expected = 0xeb9f, }, 56 { .opt = TCP_KEEPIDLE, .new = 123, .expected = 123, .restore = 321, }, 57 { .opt = TCP_KEEPINTVL, .new = 123, .expected = 123, .restore = 321, }, 58 { .opt = TCP_KEEPCNT, .new = 123, .expected 115 int old, tmp, new, expected, opt; bpf_test_sockopt_int() local [all...] |