Home
last modified time | relevance | path

Searched full:expected (Results 1 – 25 of 4235) sorted by relevance

12345678910>>...170

/kernel/linux/linux-4.19/tools/testing/selftests/
Dkselftest_harness.h159 * Defines a test by name and the expected term signal.
349 * ASSERT_EQ(expected, seen)
351 * @expected: expected value
354 * ASSERT_EQ(expected, measured): expected == measured
356 #define ASSERT_EQ(expected, seen) \ argument
357 __EXPECT(expected, #expected, seen, #seen, ==, 1)
360 * ASSERT_NE(expected, seen)
362 * @expected: expected value
365 * ASSERT_NE(expected, measured): expected != measured
367 #define ASSERT_NE(expected, seen) \ argument
[all …]
/kernel/linux/linux-4.19/scripts/kconfig/tests/
Dconftest.py220 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/scripts/kconfig/tests/
Dconftest.py220 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/
Dkselftest_harness.h167 * 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/
Dfunc_set_ftrace_file.tc68 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/linux/linux-4.19/tools/testing/selftests/ftrace/test.d/ftrace/
Dfunc_set_ftrace_file.tc82 fail "Expected only $ALL_FUNCS"
87 fail "Expected $ALL_FUNCS and $FUNC1:traceoff:unlimited"
92 fail "Expected $FUNC1 and $FUNC1:traceoff:unlimited"
97 fail "Expected $FUNC1 $FUNC2 and $FUNC1:traceoff:unlimited"
102 fail "Expected $FUNC1 $FUNC2 $FUNC1:traceoff:unlimited and $FUNC2:traceoff:unlimited"
107 fail "Expected $FUNC1 $FUNC1:traceoff:unlimited and $FUNC2:traceoff:unlimited"
112 fail "Expected $ALL_FUNCS $FUNC1:traceoff:unlimited and $FUNC2:traceoff:unlimited"
118 fail "Expected $ALL_FUNCS"
123 fail "Expected $FUNC1"
128 fail "Expected $FUNC1 and $FUNC2"
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/livepatch/
Dtest-shadow-vars.sh21 $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/
Dmath_func_test.c105 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);
123 int expected[] = {-2147483648, 2147483647, 2147483647}; variable
127 LOG("\n [POSIXTEST][abs]abs(%d) = %d, expected is %d", testValues[i], ret, expected[i]);
128 TEST_ASSERT_EQUAL_INT(expected[i], ret);
141 double expected[] = { -0.69314718055994528623, 1.70474809223842527217, 0.00000000000000000000}; variable
147 LOG("\n [POSIXTEST][log]log(%f) = %f, expected is %f", testValues[i], ret, expected[i]);
148 TEST_ASSERT_EQUAL_FLOAT(expected[i], ret);
149 TEST_ASSERT_TRUE(DoubleEquals(expected[i], ret));
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn21/
Ddcn21_hubp.c291 …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-4.19/tools/testing/selftests/bpf/
Dtest_select_reuseport.c232 struct data_check expected = {}, result; in check_data() local
248 expected.len = MIN_TCPHDR_LEN; in check_data()
249 expected.ip_protocol = IPPROTO_TCP; in check_data()
251 expected.len = UDPHDR_LEN; in check_data()
252 expected.ip_protocol = IPPROTO_UDP; in check_data()
256 expected.eth_protocol = htons(ETH_P_IPV6); in check_data()
257 expected.bind_inany = !srv_sa.v6.sin6_addr.s6_addr32[3] && in check_data()
262 memcpy(&expected.skb_addrs[0], cli_sa.v6.sin6_addr.s6_addr32, in check_data()
264 memcpy(&expected.skb_addrs[4], &in6addr_loopback, in check_data()
266 expected.skb_ports[0] = cli_sa.v6.sin6_port; in check_data()
[all …]
Dtest_offload.py165 def bpftool_prog_list(expected=None, ns=""): argument
171 if expected is not None:
172 if len(progs) != expected:
173 fail(True, "%d BPF programs loaded, expected %d" %
174 (len(progs), expected))
177 def bpftool_map_list(expected=None, ns=""): argument
183 if expected is not None:
184 if len(maps) != expected:
185 fail(True, "%d BPF maps loaded, expected %d" %
186 (len(maps), expected))
[all …]
/kernel/linux/linux-4.19/tools/perf/tests/shell/
Drecord+probe_libc_inet_pton.sh31 expected=`mktemp -u /tmp/expected.XXX`
33 echo "ping[][0-9 \.:]+$event_name: \([[:xdigit:]]+\)" > $expected
34 echo ".*inet_pton\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" >> $expected
38 echo "gaih_inet.*\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" >> $expected
39 echo "(__GI_)?getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" >> $expected
40 echo "main\+0x[[:xdigit:]]+[[:space:]]\(.*/bin/ping.*\)$" >> $expected
44 echo "gaih_inet.*\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" >> $expected
45 echo "getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" >> $expected
46 echo ".*(\+0x[[:xdigit:]]+|\[unknown\])[[:space:]]\(.*/bin/ping.*\)$" >> $expected
50 echo "getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" >> $expected
[all …]
/kernel/linux/linux-5.10/tools/perf/tests/shell/
Drecord+probe_libc_inet_pton.sh33 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-4.19/tools/testing/selftests/powerpc/pmu/ebb/
Devent_attributes_test.c23 /* 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 …]
Dreg_access_test.c18 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/tools/testing/selftests/powerpc/pmu/ebb/
Devent_attributes_test.c23 /* 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 …]
Dreg_access_test.c18 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/
Dinode-test.c77 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/
Dselect_reuseport.c249 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/
Dbtf_dump_test_case_padding.c9 /* ----- 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 ------ */
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
Dtest_offload.py172 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-4.19/lib/
Dpercpu_test.c3 /* validate @native and @pcp counter values match @expected */
4 #define CHECK(native, pcp, expected) \ argument
6 WARN((native) != (expected), \
7 "raw %ld (0x%lx) != expected %lld (0x%llx)", \
9 (long long)(expected), (long long)(expected)); \
10 WARN(__this_cpu_read(pcp) != (expected), \
11 "pcp %ld (0x%lx) != expected %lld (0x%llx)", \
13 (long long)(expected), (long long)(expected)); \
/kernel/linux/linux-5.10/lib/
Dpercpu_test.c4 /* 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)); \
Dtest_strscpy.c19 * @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()
/kernel/linux/linux-4.19/tools/testing/selftests/networking/timestamping/
Drxtimestamp.c44 struct tstamps expected; member
139 printf("} expected cmsgs: {"); in print_test_case()
140 if (t->expected.tstamp) in print_test_case()
142 if (t->expected.tstampns) in print_test_case()
144 if (t->expected.swtstamp || t->expected.hwtstamp) { in print_test_case()
146 if (t->expected.swtstamp) in print_test_case()
148 if (t->expected.swtstamp && t->expected.hwtstamp) in print_test_case()
150 if (t->expected.hwtstamp) in print_test_case()
170 bool do_recv(int rcv, int read_size, struct tstamps expected) in do_recv() argument
228 if (expected.field != actual.field) { \ in do_recv()
[all …]

12345678910>>...170