/kernel/linux/linux-5.10/scripts/kconfig/tests/ |
D | conftest.py | 220 def _read_and_compare(self, compare, expected): argument 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): argument 233 expected) 235 def _matches(self, attr, expected): argument 237 expected) 239 def config_contains(self, expected): argument 240 """Check if resulted configuration contains expected data. 242 expected: file that contains the expected data [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/ |
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) \ argument 443 __EXPECT(expected, #expected, seen, #seen, ==, 1) 448 * @expected: expected value 451 * ASSERT_NE(expected, measured): expected != measured 453 #define ASSERT_NE(expected, seen) \ argument 454 __EXPECT(expected, #expected, seen, #seen, !=, 1) 459 * @expected: expected value [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/ftrace/test.d/ftrace/ |
D | func_set_ftrace_file.tc | 68 fail "Expected only $ALL_FUNCS" 73 fail "Expected $ALL_FUNCS and $FUNC1:traceoff:unlimited" 78 fail "Expected $FUNC1 and $FUNC1:traceoff:unlimited" 83 fail "Expected $FUNC1 $FUNC2 and $FUNC1:traceoff:unlimited" 88 fail "Expected $FUNC1 $FUNC2 $FUNC1:traceoff:unlimited and $FUNC2:traceoff:unlimited" 93 fail "Expected $FUNC1 $FUNC1:traceoff:unlimited and $FUNC2:traceoff:unlimited" 98 fail "Expected $ALL_FUNCS $FUNC1:traceoff:unlimited and $FUNC2:traceoff:unlimited" 104 fail "Expected $ALL_FUNCS" 109 fail "Expected $FUNC1" 114 fail "Expected $FUNC1 and $FUNC2" [all …]
|
/kernel/liteos_m/testsuites/unittest/posix/src/ |
D | posix_test.h | 51 #define TEST_ASSERT_EQUAL(expected, actual) ICUNIT_ASSERT_EQUAL(expected, actual, actual) argument 52 #define TEST_ASSERT_EQUAL_INT(expected, actual) TEST_ASSERT_EQUAL(expected, actual) argument 53 #define TEST_ASSERT_EQUAL_INT32(expected, actual) TEST_ASSERT_EQUAL(expected, actual) argument 54 #define TEST_ASSERT_EQUAL_INT64(expected, actual) TEST_ASSERT_EQUAL(expected, actual) argument 55 #define TEST_ASSERT_EQUAL_UINT32(expected, actual) TEST_ASSERT_EQUAL(expected, actual) argument 56 #define TEST_ASSERT_EQUAL_UINT64(expected, actual) TEST_ASSERT_EQUAL(expected, actual) argument 58 #define TEST_ASSERT_EQUAL_PTR(expected, actual) TEST_ASSERT_EQUAL(expected, actual) argument 60 #define TEST_ASSERT_NOT_EQUAL(expected, actual) ICUNIT_ASSERT_NOT_EQUAL(expected, actual, actual) argument 74 #define TEST_ASSERT_EQUAL_CHAR_ARRAY(expected, actual, num) ICUNIT_ASSERT_SIZE_STRING_EQUAL(expecte… argument 75 #define TEST_ASSERT_EQUAL_FLOAT(expected, actual) \ argument [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/livepatch/ |
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 …]
|
/kernel/liteos_m/testsuites/unittest/posix/src/math/ |
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 TEST_ASSERT_EQUAL_INT(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 TEST_ASSERT_EQUAL_INT(expected[i], ret); 143 double expected[] = { -0.69314718055994528623, 1.70474809223842527217, 0.00000000000000000000}; variable 149 LOG("\n [POSIXTEST][log]log(%f) = %f, expected is %f", testValues[i], ret, expected[i]); 150 TEST_ASSERT_EQUAL_FLOAT(expected[i], ret); 151 TEST_ASSERT_TRUE(DoubleEquals(expected[i], ret)); [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn21/ |
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 …]
|
/kernel/linux/linux-5.10/tools/perf/tests/shell/ |
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 52 echo "getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" >> $expected [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/pmu/ebb/ |
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 …]
|
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-5.10/fs/ext4/ |
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 = {.tv_sec = 0x180000000LL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
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.skb_ports[0] = cli_sa.v6.sin6_port; in check_data() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
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 ----- */ 46 /* ------ END-EXPECTED-OUTPUT ------ */ 56 /* ----- START-EXPECTED-OUTPUT ----- */ 72 /* ------ END-EXPECTED-OUTPUT ------ */ 79 /* ----- START-EXPECTED-OUTPUT ----- */ 93 /* ------ END-EXPECTED-OUTPUT ------ */
|
D | btf_dump_test_case_bitfields.c | 10 /* ----- START-EXPECTED-OUTPUT ----- */ 26 /* ------ END-EXPECTED-OUTPUT ------ */ 41 /* ----- START-EXPECTED-OUTPUT ----- */ 54 /* ------ END-EXPECTED-OUTPUT ------ */ 69 /* ----- START-EXPECTED-OUTPUT ----- */ 78 /* ------ END-EXPECTED-OUTPUT ------ */
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
D | test_offload.py | 172 def bpftool_prog_list(expected=None, ns=""): argument 178 if expected is not None: 179 if len(progs) != expected: 180 fail(True, "%d BPF programs loaded, expected %d" % 181 (len(progs), expected)) 184 def bpftool_map_list(expected=None, ns=""): argument 188 if expected is not None: 189 if len(maps) != expected: 190 fail(True, "%d BPF maps loaded, expected %d" % 191 (len(maps), expected)) [all …]
|
/kernel/linux/linux-5.10/lib/ |
D | percpu_test.c | 4 /* validate @native and @pcp counter values match @expected */ 5 #define CHECK(native, pcp, expected) \ argument 7 WARN((native) != (expected), \ 8 "raw %ld (0x%lx) != expected %lld (0x%llx)", \ 10 (long long)(expected), (long long)(expected)); \ 11 WARN(__this_cpu_read(pcp) != (expected), \ 12 "pcp %ld (0x%lx) != expected %lld (0x%llx)", \ 14 (long long)(expected), (long long)(expected)); \
|
D | test_strscpy.c | 19 * @expected: Expected return value from call to strscpy_pad() 21 * @chars: Number of characters from the src string expected to be 23 * @pad: Number of pad characters expected (in the tail of dst buffer). 29 static int __init tc(char *src, int count, int expected, in tc() argument 55 if (expected > max_expected) { in tc() 56 pr_warn("expected (%d) is bigger than can possibly be returned (%d)", in tc() 57 expected, max_expected); in tc() 61 if ((written) != (expected)) { in tc() 62 pr_err("%d != %d (written, expected)\n", written, expected); in tc() 125 /* tc(src, count, expected, chars, terminator, pad) */ in selftest()
|
D | test_user_copy.c | 94 int expected = is_zeroed(kmem + start, len); in test_check_nonzero_user() local 96 ret |= test(retval != expected, in test_check_nonzero_user() 98 retval, expected, start, end); in test_check_nonzero_user() 109 char *umem_src = NULL, *expected = NULL; in test_copy_struct_from_user() local 117 expected = kmalloc(size, GFP_KERNEL); in test_copy_struct_from_user() 118 ret = test(expected == NULL, "kmalloc failed"); in test_copy_struct_from_user() 131 memcpy(expected, umem_src, ksize); in test_copy_struct_from_user() 136 ret |= test(memcmp(kmem, expected, ksize), in test_copy_struct_from_user() 143 memcpy(expected, umem_src, usize); in test_copy_struct_from_user() 144 memset(expected + usize, 0x0, ksize - usize); in test_copy_struct_from_user() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn20/ |
D | dcn20_hubp.c | 1316 …DC_LOG_DEBUG("DML Validation | HUBPRET_CONTROL:DET_BUF_PLANE1_BASE_ADDRESS - Expected: %u Actual:… in hubp2_validate_dml_output() 1319 …DC_LOG_DEBUG("DML Validation | DCN_EXPANSION_MODE:DRQ_EXPANSION_MODE - Expected: %u Actual: %u\n", in hubp2_validate_dml_output() 1322 …DC_LOG_DEBUG("DML Validation | DCN_EXPANSION_MODE:MRQ_EXPANSION_MODE - Expected: %u Actual: %u\n", in hubp2_validate_dml_output() 1325 …DC_LOG_DEBUG("DML Validation | DCN_EXPANSION_MODE:DET_BUF_PLANE1_BASE_ADDRESS - Expected: %u Actu… in hubp2_validate_dml_output() 1328 …DC_LOG_DEBUG("DML Validation | DCN_EXPANSION_MODE:CRQ_EXPANSION_MODE - Expected: %u Actual: %u\n", in hubp2_validate_dml_output() 1332 DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:CHUNK_SIZE - Expected: %u Actual: %u\n", in hubp2_validate_dml_output() 1335 …DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:MIN_CHUNK_SIZE - Expected: %u Actual: %u\… in hubp2_validate_dml_output() 1338 …DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:META_CHUNK_SIZE - Expected: %u Actual: %u… in hubp2_validate_dml_output() 1341 …DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:MIN_META_CHUNK_SIZE - Expected: %u Actual… in hubp2_validate_dml_output() 1344 …DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:DPTE_GROUP_SIZE - Expected: %u Actual: %u… in hubp2_validate_dml_output() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
D | psock_snd.sh | 48 echo "raw csum_off with bad offset (expected to fail)" 60 echo "raw mtu size + 1 (expected to fail)" 68 echo "raw vlan mtu size + 1 (expected to fail)" 74 echo "dgram mtu size + 1 (expected to fail)" 77 echo "raw truncate hlen (expected to fail: does not arrive)" 80 echo "raw truncate hlen - 1 (expected to fail: EINVAL)" 89 echo "raw gso min size - 1 (expected to fail)" 95 echo "raw gso max size + 1 (expected to fail)"
|
D | rxtimestamp.c | 45 struct tstamps expected; member 144 printf("} expected cmsgs: {"); in print_test_case() 145 if (t->expected.tstamp) in print_test_case() 147 if (t->expected.tstampns) in print_test_case() 149 if (t->expected.swtstamp || t->expected.hwtstamp) { in print_test_case() 151 if (t->expected.swtstamp) in print_test_case() 153 if (t->expected.swtstamp && t->expected.hwtstamp) in print_test_case() 155 if (t->expected.hwtstamp) in print_test_case() 175 bool do_recv(int rcv, int read_size, struct tstamps expected) in do_recv() argument 233 if (expected.field != actual.field) { \ in do_recv() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/ |
D | sharedbuffer.sh | 113 check_err $? "Expected iPool($SB_POOL_ING) max occupancy to be $exp_max_occ, but got $max_occ" 118 check_err $? "Expected iPool($SB_POOL_ING) max occupancy to be $exp_max_occ, but got $max_occ" 123 check_err $? "Expected ePool($SB_POOL_EGR_CPU) max occupancy to be $exp_max_occ, but got $max_occ" 141 check_err $? "Expected ingress TC($SB_ITC) max occupancy to be $exp_max_occ, but got $max_occ" 146 check_err $? "Expected ingress TC($SB_ITC) max occupancy to be $exp_max_occ, but got $max_occ" 151 …check_err $? "Expected egress TC($SB_ITC_CPU_IP) max occupancy to be $exp_max_occ, but got $max_oc… 172 check_err $? "Expected ingress TC($SB_ITC) max occupancy to be $exp_max_occ, but got $max_occ" 177 check_err $? "Expected ingress TC($SB_ITC) max occupancy to be $exp_max_occ, but got $max_occ" 182 check_err $? "Expected egress TC($SB_ITC_IP2ME) max occupancy to be $exp_max_occ, but got $max_occ"
|
/kernel/liteos_a/testsuites/unittest/security/reugid/smoke/ |
D | reugid_test_001.cpp | 57 ICUNIT_ASSERT_EQUAL(ruid, 300, ruid); // 300: expected ruid in Child1() 58 ICUNIT_ASSERT_EQUAL(euid, 300, euid); // 300: expected euid in Child1() 69 ICUNIT_ASSERT_EQUAL(ruid, 300, ruid); // 300: expected ruid in Child1() 114 ICUNIT_ASSERT_EQUAL(ret, 3000, ret); // 3000: expected egid in Child() 185 ICUNIT_ASSERT_EQUAL(ret, 8000, ret); // 8000: expected value of euid in Child() 208 ICUNIT_ASSERT_EQUAL(ret, 5000, ret); // 5000: expected value of gid in Child() 210 ICUNIT_ASSERT_EQUAL(egid, 5000, egid); // 5000: expected value of egid in Child() 215 ICUNIT_ASSERT_EQUAL(ret, 5000, ret); // 5000: expected value of gid in Child() 217 ICUNIT_ASSERT_EQUAL(egid, 5000, egid); // 5000: expected value of egid in Child() 230 ICUNIT_ASSERT_EQUAL(ret, 3000, ret); // 3000: expected value of gid in Child() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/ |
D | i915_perf.c | 197 u64 expected; in live_noa_delay() local 208 expected = atomic64_read(&stream->perf->noa_programming_delay); in live_noa_delay() 260 pr_info("CPU delay: %lluns, expected %lluns\n", in live_noa_delay() 261 ktime_sub(t1, t0), expected); in live_noa_delay() 266 pr_info("GPU delay: %uns, expected %lluns\n", in live_noa_delay() 267 delay, expected); in live_noa_delay() 269 if (4 * delay < 3 * expected || 2 * delay > 3 * expected) { in live_noa_delay() 270 pr_err("GPU delay [%uus] outside of expected threshold! [%lluus, %lluus]\n", in live_noa_delay() 272 div_u64(3 * expected, 4000), in live_noa_delay() 273 div_u64(3 * expected, 2000)); in live_noa_delay() [all …]
|
/kernel/liteos_m/testsuites/sample/kernel/hwi/ |
D | it_los_hwi_040.c | 128 ICUNIT_GOTO_EQUAL(g_testCount, 1, g_testCount, EXIT); // Compare wiht the expected value 1. in Testcase() 130 ICUNIT_GOTO_EQUAL(g_testCount, 2, g_testCount, EXIT); // Compare wiht the expected value 2. in Testcase() 132 ICUNIT_GOTO_EQUAL(g_testCount, 3, g_testCount, EXIT); // Compare wiht the expected value 3. in Testcase() 134 ICUNIT_GOTO_EQUAL(g_testCount, 4, g_testCount, EXIT); // Compare wiht the expected value 4. in Testcase() 136 ICUNIT_GOTO_EQUAL(g_testCount, 5, g_testCount, EXIT); // Compare wiht the expected value 5. in Testcase() 139 ICUNIT_GOTO_EQUAL(g_testCount, 6, g_testCount, EXIT); // Compare wiht the expected value 6. in Testcase() 152 ICUNIT_GOTO_EQUAL(g_testCount, 6, g_testCount, EXIT); // Compare wiht the expected value 6. in Testcase() 154 ICUNIT_GOTO_EQUAL(g_testCount, 7, g_testCount, EXIT); // Compare wiht the expected value 7. in Testcase() 157 ICUNIT_GOTO_EQUAL(g_testCount, 8, g_testCount, EXIT); // Compare wiht the expected value 8. in Testcase()
|