| /linux/lib/tests/ |
| H A D | glob_kunit.c | 14 * @expected: Expected glob_match result, true if matched. 19 bool expected; member 24 { .pat = "a", .str = "a", .expected = true }, 25 { .pat = "a", .str = "b", .expected = false }, 26 { .pat = "a", .str = "aa", .expected = false }, 27 { .pat = "a", .str = "", .expected = false }, 28 { .pat = "", .str = "", .expected = true }, 29 { .pat = "", .str = "a", .expected = false }, 31 { .pat = "[a]", .str = "a", .expected = true }, 32 { .pat = "[a]", .str = "b", .expected = false }, [all …]
|
| /linux/scripts/kconfig/tests/ |
| H A D | conftest.py | 243 def _read_and_compare(self, compare, expected): argument 247 expected: file that contains the expected data 249 with open(os.path.join(self._test_dir, expected)) as f: 253 def _contains(self, attr, expected): argument 256 expected) 258 def _matches(self, attr, expected): argument 260 expected) 262 def config_contains(self, expected): argument 263 """Check if resulted configuration contains expected data. 265 expected: file that contains the expected data [all …]
|
| /linux/tools/testing/selftests/hid/tests/ |
| H A D | test_apple_keyboard.py | 172 expected = [syn_event] 173 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_ALL_APPLICATIONS, 1)) 176 self.assertInputEventsIn(expected, events) 181 expected = [syn_event] 182 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_ALL_APPLICATIONS, 0)) 185 self.assertInputEventsIn(expected, events) 196 expected = [syn_event] 197 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_F4, 1)) 198 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_FN, 1)) 201 self.assertInputEventsIn(expected, events) [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, events) [all …]
|
| H A D | test_mouse.py | 425 f"Unexpected data: {data}, expected {self.set_feature_report}" 497 raise InvalidHIDCommunication(f"Unexpected data: {data}, expected '[0]'") 766 expected = [syn_event] 767 expected.append(libevdev.InputEvent(libevdev.EV_REL.REL_WHEEL, 1)) 769 expected.append(libevdev.InputEvent(libevdev.EV_REL.REL_WHEEL_HI_RES, 120)) 772 self.assertInputEvents(expected, events) 775 expected = [syn_event] 776 expected.append(libevdev.InputEvent(libevdev.EV_REL.REL_WHEEL, -1)) 778 expected.append(libevdev.InputEvent(libevdev.EV_REL.REL_WHEEL_HI_RES, -120)) 781 self.assertInputEvents(expected, events) [all …]
|
| /linux/tools/testing/selftests/ |
| H A D | kselftest_harness.h | 174 * Defines a test by name and the expected term signal. 516 * @expected: expected value 519 * ASSERT_EQ(expected, measured): expected == measured 521 #define ASSERT_EQ(expected, seen) \ argument 522 __EXPECT(expected, #expected, seen, #seen, ==, 1) 527 * @expected: expected value 530 * ASSERT_NE(expected, measured): expected != measured 532 #define ASSERT_NE(expected, seen) \ argument 533 __EXPECT(expected, #expected, seen, #seen, !=, 1) 538 * @expected: expected value [all …]
|
| /linux/drivers/firewire/ |
| H A D | ohci-serdes-test.c | 15 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 D | packet-serdes-test.c | 276 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/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 = "1240.84789", [all …]
|
| /linux/drivers/gpu/drm/tests/ |
| H A D | drm_format_helper_test.c | 29 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 u8 expected[TEST_BUF_SIZE]; member 70 const u32 expected[TEST_BUF_SIZE]; member 75 const u32 expected[TEST_BUF_SIZE]; member [all …]
|
| H A D | drm_dp_mst_helper_test.c | 19 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 86 * .expected = .link_rate * .lane_count * 0.9671 / 8 / 54 / 100 88 * .expected = .link_rate * .lane_count * 0.8000 / 8 / 54 / 100 [all …]
|
| /linux/scripts/ |
| H A D | rust_is_available_test.py | 7 under their canonical name (and with the expected versions). 20 class Expected(enum.Enum): class in TestRustIsAvailable 122 def run_script(self, expected, override_env): argument 140 if expected == self.Expected.SUCCESS: 145 elif expected == self.Expected.SUCCESS_WITH_EXTRA_OUTPUT: 152 elif expected == self.Expected.SUCCESS_WITH_WARNINGS: 170 result = self.run_script(self.Expected.FAILURE, { "RUSTC": None }) 175 result = self.run_script(self.Expected.FAILURE, { "BINDGEN": None }) 180 result = self.run_script(self.Expected.FAILURE, { "CC": None }) 185 result = self.run_script(self.Expected.FAILURE, { "RUSTC": self.missing }) [all …]
|
| /linux/tools/testing/selftests/ftrace/test.d/ftrace/ |
| H A D | func_set_ftrace_file.tc | 75 fail "Expected only $ALL_FUNCS" 80 fail "Expected $ALL_FUNCS and $FUNC1:traceoff:unlimited" 85 fail "Expected $FUNC1 and $FUNC1:traceoff:unlimited" 90 fail "Expected $FUNC1 $FUNC2 and $FUNC1:traceoff:unlimited" 95 fail "Expected $FUNC1 $FUNC2 $FUNC1:traceoff:unlimited and $FUNC2:traceoff:unlimited" 100 fail "Expected $FUNC1 $FUNC1:traceoff:unlimited and $FUNC2:traceoff:unlimited" 105 fail "Expected $ALL_FUNCS $FUNC1:traceoff:unlimited and $FUNC2:traceoff:unlimited" 111 fail "Expected $ALL_FUNCS" 116 fail "Expected $FUNC1" 121 fail "Expected $FUNC1 and $FUNC2" [all …]
|
| /linux/tools/testing/selftests/clone3/ |
| H A D | clone3.c | 112 static bool test_clone3(uint64_t flags, size_t size, int expected, in test_clone3() argument 121 ksft_print_msg("[%d] clone3() with flags says: %d expected %d\n", in test_clone3() 122 getpid(), ret, expected); in test_clone3() 123 if (ret != expected) { in test_clone3() 125 "[%d] Result (%d) is different than expected (%d)\n", in test_clone3() 126 getpid(), ret, expected); in test_clone3() 168 int expected; member 178 .expected = 0, 185 .expected = 0, 193 .expected = 0, [all …]
|
| /linux/tools/testing/selftests/livepatch/ |
| H A D | test-shadow-vars.sh | 21 $MOD_TEST: got expected NULL result 35 $MOD_TEST: got expected PTR3 -> PTR2 result 37 $MOD_TEST: got expected PTR6 -> PTR5 result 39 $MOD_TEST: got expected PTR8 -> PTR7 result 41 $MOD_TEST: got expected PTR11 -> PTR10 result 43 $MOD_TEST: got expected PTR13 -> PTR12 result 45 $MOD_TEST: got expected PTR16 -> PTR15 result 47 $MOD_TEST: got expected PTR3 -> PTR2 result 49 $MOD_TEST: got expected PTR8 -> PTR7 result 51 $MOD_TEST: got expected PTR13 -> PTR12 result [all …]
|
| /linux/tools/testing/selftests/kvm/s390/ |
| H A D | keyop.c | 38 static unsigned char expected[BUF_PAGES]; variable 124 static inline void compare(const unsigned char what[], const unsigned char expected[], in compare() argument 130 if (expected[i] != what[i]) { in compare() 131 dump_sk(expected, "Expected"); in compare() 134 TEST_ASSERT(expected[i] == what[i], in compare() 135 "%s! fault-in location %d, page %d, expected %#x, got %#x", in compare() 136 descr, fault_in_loc, i, expected[i], what[i]); in compare() 144 memset(expected, 0, BUF_PAGES); in clear_all() 151 set_skeys(vcpu, expected); in test_init() 155 compare(tmp, expected, "Setting keys not zero", fault_in); in test_init() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/hubp/dcn21/ |
| H A D | dcn21_hubp.c | 291 …DC_LOG_DEBUG("DML Validation | HUBPRET_CONTROL:DET_BUF_PLANE1_BASE_ADDRESS - Expected: %u Actual:… in hubp21_validate_dml_output() 294 …DC_LOG_DEBUG("DML Validation | DCN_EXPANSION_MODE:DRQ_EXPANSION_MODE - Expected: %u Actual: %u\n", in hubp21_validate_dml_output() 297 …DC_LOG_DEBUG("DML Validation | DCN_EXPANSION_MODE:MRQ_EXPANSION_MODE - Expected: %u Actual: %u\n", in hubp21_validate_dml_output() 300 …DC_LOG_DEBUG("DML Validation | DCN_EXPANSION_MODE:DET_BUF_PLANE1_BASE_ADDRESS - Expected: %u Actu… in hubp21_validate_dml_output() 303 …DC_LOG_DEBUG("DML Validation | DCN_EXPANSION_MODE:CRQ_EXPANSION_MODE - Expected: %u Actual: %u\n", in hubp21_validate_dml_output() 307 DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:CHUNK_SIZE - Expected: %u Actual: %u\n", in hubp21_validate_dml_output() 310 …DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:MIN_CHUNK_SIZE - Expected: %u Actual: %u\… in hubp21_validate_dml_output() 313 …DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:META_CHUNK_SIZE - Expected: %u Actual: %u… in hubp21_validate_dml_output() 316 …DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:MIN_META_CHUNK_SIZE - Expected: %u Actual… in hubp21_validate_dml_output() 319 …DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:DPTE_GROUP_SIZE - Expected: %u Actual: %u… in hubp21_validate_dml_output() [all …]
|
| /linux/tools/testing/selftests/net/mptcp/ |
| H A 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 …]
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | test_progs.h | 249 #define ASSERT_EQ(actual, expected, name) ({ \ argument 252 typeof(expected) ___exp = (expected); \ 255 "unexpected %s: actual %lld != expected %lld\n", \ 260 #define ASSERT_NEQ(actual, expected, name) ({ \ argument 263 typeof(expected) ___exp = (expected); \ 266 "unexpected %s: actual %lld == expected %lld\n", \ 271 #define ASSERT_LT(actual, expected, name) ({ \ argument 274 typeof(expected) ___exp = (expected); \ 277 "unexpected %s: actual %lld >= expected %lld\n", \ 282 #define ASSERT_LE(actual, expected, name) ({ \ argument [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | btf_dump_test_case_padding.c | 9 /* ----- START-EXPECTED-OUTPUT ----- */ 16 /* ------ END-EXPECTED-OUTPUT ------ */ 18 /* ----- START-EXPECTED-OUTPUT ----- */ 27 /* ------ END-EXPECTED-OUTPUT ------ */ 35 /* ----- START-EXPECTED-OUTPUT ----- */ 43 /* ------ END-EXPECTED-OUTPUT ------ */ 45 /* ----- START-EXPECTED-OUTPUT ----- */ 59 /* ------ END-EXPECTED-OUTPUT ------ */ 66 /* ----- START-EXPECTED-OUTPUT ----- */ 80 /* ------ END-EXPECTED-OUTPUT ------ */ [all …]
|
| H 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, }, 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/prog_tests/ |
| H A D | select_reuseport.c | 226 struct data_check expected = {}, result; in check_data() local 242 expected.len = MIN_TCPHDR_LEN; in check_data() 243 expected.ip_protocol = IPPROTO_TCP; in check_data() 245 expected.len = UDPHDR_LEN; in check_data() 246 expected.ip_protocol = IPPROTO_UDP; in check_data() 253 expected.eth_protocol = htons(ETH_P_IPV6); in check_data() 254 expected.bind_inany = !srv_v6->sin6_addr.s6_addr32[3] && in check_data() 259 memcpy(&expected.skb_addrs[0], cli_v6->sin6_addr.s6_addr32, in check_data() 261 memcpy(&expected.skb_addrs[4], &in6addr_loopback, in check_data() 263 expected.skb_ports[0] = cli_v6->sin6_port; in check_data() [all …]
|
| /linux/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 = {.tv_sec = 0x180000000LL, .tv_nsec = 0L}, [all …]
|
| /linux/tools/testing/selftests/powerpc/pmu/ebb/ |
| H A D | event_attributes_test.c | 23 /* Expected to succeed */ in event_attributes() 30 /* Expected to fail, no PMC specified */ in event_attributes() 37 /* Expected to fail, not exclusive */ in event_attributes() 44 /* Expected to fail, sets freq */ in event_attributes() 51 /* Expected to fail, sets sample_period */ in event_attributes() 58 /* Expected to fail, sets enable_on_exec */ in event_attributes() 65 /* Expected to fail, sets inherit */ in event_attributes() 76 /* Expected to succeed */ in event_attributes() 88 /* Expected to fail, event doesn't request EBB, leader does */ in event_attributes() 103 /* Expected to fail, leader doesn't request EBB */ in event_attributes() [all …]
|
| /linux/tools/testing/selftests/riscv/vector/ |
| H A D | vstate_prctl.c | 14 int test_and_compare_child(long provided, long expected, int inherit, int xtheadvector) in test_and_compare_child() argument 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() 165 EXPECT_EQ(0, test_and_compare_child(flag, expected, 1, xtheadvector)); in TEST() 170 long flag, expected; in TEST() local [all …]
|