Home
last modified time | relevance | path

Searched refs:expect (Results 1 – 25 of 574) sorted by relevance

12345678910>>...23

/openbmc/libpldm/tests/
H A Dmsgbuf_generic.c17 #define expect(cond) __expect(__func__, __LINE__, (cond)) macro
36 expect(pldm_msgbuf_init_errno(ctx, sizeof(buf), buf, sizeof(buf)) == 0); in test_msgbuf_extract_generic_uint8()
37 expect(pldm_msgbuf_extract(ctx, val) == 0); in test_msgbuf_extract_generic_uint8()
38 expect(val == 0xa5); in test_msgbuf_extract_generic_uint8()
39 expect(pldm_msgbuf_destroy(ctx) == 0); in test_msgbuf_extract_generic_uint8()
49 expect(pldm_msgbuf_init_errno(ctx, sizeof(buf), buf, sizeof(buf)) == 0); in test_msgbuf_extract_generic_int8()
50 expect(pldm_msgbuf_extract(ctx, val) == 0); in test_msgbuf_extract_generic_int8()
51 expect(val == -1); in test_msgbuf_extract_generic_int8()
52 expect(pldm_msgbuf_destroy(ctx) == 0); in test_msgbuf_extract_generic_int8()
62 expect(pldm_msgbuf_init_errno(ctx, sizeof(buf), buf, sizeof(buf)) == 0); in test_msgbuf_extract_generic_uint16()
[all …]
/openbmc/linux/mm/kfence/
H A Dkfence_test.c100 typeof(observed.lines) expect; in report_matches()
111 cur = expect[0]; in report_matches()
112 end = &expect[0][sizeof(expect[0]) - 1]; in report_matches()
136 cur = strchr(expect[0], '+'); in report_matches()
141 cur = expect[1]; in report_matches()
142 end = &expect[1][sizeof(expect[1]) - 1]; in report_matches()
172 ret = strstr(observed.lines[0], expect[0]) && strstr(observed.lines[1], expect[1]); in report_matches()
321 struct expect_report expect = { in test_out_of_bounds_read() local
340 expect.addr = buf - 1; in test_out_of_bounds_read()
341 READ_ONCE(*expect.addr); in test_out_of_bounds_read()
[all …]
/openbmc/linux/tools/testing/selftests/netfilter/
H A Dnft_nat.sh82 local expect=$3
85 echo "ERROR: $counter counter in $ns has unexpected value (expected $expect) at $tag" 1>&2
105 expect="packets 1 bytes 104"
106 cnt=$(ip netns exec $ns nft list counter inet filter ns0in6 | grep -q "$expect")
108 bad_counter $ns ns0in6 "$expect" "check_counters 3"
111 cnt=$(ip netns exec $ns nft list counter inet filter ns0out6 | grep -q "$expect")
113 bad_counter $ns ns0out6 "$expect" "check_counters 4"
149 expect="packets 1 bytes 84"
150 cnt=$(ip netns exec "$ns0" nft list counter inet filter ${ns}${dir} | grep -q "$expect")
152 bad_counter "$ns0" $ns$dir "$expect" "check_ns0_counters 4"
[all …]
H A Dconntrack_icmp_related.sh52 expect=$3
55 cnt=$(ip netns exec $ns nft list counter inet filter "$name" | grep -q "$expect")
57 echo "ERROR: counter $name in $ns has unexpected value (expected $expect)" 1>&2
67 expect="packets 0 bytes 0"
69 check_counter $n "unknown" "$expect"
233 expect="packets 0 bytes 0"
235 check_counter "$netns" "related" "$expect"
241 expect="packets 2 bytes 2076"
242 check_counter nsclient2 "new" "$expect"
255 expect="packets 0 bytes 0"
[all …]
/openbmc/qemu/tests/qtest/
H A Dnetdev-socket.c121 char *expect; in test_stream_inet_ipv4() local
137 expect = g_strdup_printf("st0: index=0,type=stream,tcp:127.0.0.1:%d\r\n", in test_stream_inet_ipv4()
139 EXPECT_STATE(qts1, expect, 0); in test_stream_inet_ipv4()
140 g_free(expect); in test_stream_inet_ipv4()
244 char *expect; in test_stream_inet_ipv6() local
260 expect = g_strdup_printf("st0: index=0,type=stream,tcp:::1:%d\r\n", in test_stream_inet_ipv6()
262 EXPECT_STATE(qts1, expect, 0); in test_stream_inet_ipv6()
263 g_free(expect); in test_stream_inet_ipv6()
275 char *expect; in test_stream_unix() local
292 expect = g_strdup_printf("st0: index=0,type=stream,unix:%s\r\n", path); in test_stream_unix()
[all …]
/openbmc/linux/mm/kmsan/
H A Dkmsan_test.c156 EXPECTATION_UNINIT_VALUE(expect); in test_uninit_kmalloc()
162 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_uninit_kmalloc()
170 EXPECTATION_NO_REPORT(expect); in test_init_kmalloc()
177 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_init_kmalloc()
183 EXPECTATION_NO_REPORT(expect); in test_init_kzalloc()
189 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_init_kzalloc()
195 EXPECTATION_UNINIT_VALUE(expect); in test_uninit_stack_var()
200 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_uninit_stack_var()
206 EXPECTATION_NO_REPORT(expect); in test_init_stack_var()
211 KUNIT_EXPECT_TRUE(test, report_matches(&expect)); in test_init_stack_var()
[all …]
/openbmc/linux/tools/testing/selftests/lkdtm/
H A Drun.sh43 expect=$(echo "$line" | cut -d" " -f2-)
45 expect=""
51 if [ -z "$expect" ]; then
52 expect="crashes entire system"
54 echo "Skipping $test: $expect"
60 if [ -z "$expect" ]; then
61 expect="call trace:"
63 if echo "$expect" | grep -q '^repeat:' ; then
64 repeat=$(echo "$expect" | cut -d' ' -f1 | cut -d: -f2)
65 expect=$(echo "$expect" | cut -d' ' -f2-)
[all …]
/openbmc/qemu/tests/tcg/hexagon/
H A Dhvx_misc.c56 expect[i].w[j] = buffer0[i].w[j] + buffer1[i].w[j] + 1; in test_load_tmp()
86 expect[0].w[i] = 0x180c0000; in test_load_tmp2()
87 expect[1].w[i] = 0x000c1818; in test_load_tmp2()
108 expect[i].uw[j] = buffer0[i].uw[j]; in test_load_cur()
127 expect[0] = buffer0[0]; in test_load_aligned()
143 memcpy(expect, &buffer0[0].ub[offset], sizeof(MMVector)); in test_load_unaligned()
160 expect[0] = buffer0[0]; in test_store_aligned()
176 memcpy(expect, buffer0, 2 * sizeof(MMVector)); in test_store_unaligned()
177 memcpy(&expect[0].ub[offset], buffer0, sizeof(MMVector)); in test_store_unaligned()
188 memset(expect, 0xff, sizeof(expect)); in test_masked_store()
[all …]
H A Dhex_test.h22 static inline void __check32(int line, uint32_t val, uint32_t expect) in __check32() argument
24 if (val != expect) { in __check32()
25 printf("ERROR at line %d: 0x%08x != 0x%08x\n", line, val, expect); in __check32()
32 static inline void __check64(int line, uint64_t val, uint64_t expect) in __check64() argument
34 if (val != expect) { in __check64()
35 printf("ERROR at line %d: 0x%016llx != 0x%016llx\n", line, val, expect); in __check64()
52 static inline void __checkp(int line, void *p, void *expect) in __checkp() argument
54 if (p != expect) { in __checkp()
55 printf("ERROR at line %d: 0x%p != 0x%p\n", line, p, expect); in __checkp()
62 static inline void __check32_ne(int line, uint32_t val, uint32_t expect) in __check32_ne() argument
[all …]
H A Dv69_hvx.c47 memset(expect, 0xaa, sizeof(expect)); in test_vasrvuhubrndsat()
71 expect[i].uh[j] = (byte1 << 8) | (byte0 & 0xff); in test_vasrvuhubrndsat()
84 memset(expect, 0xaa, sizeof(expect)); in test_vasrvuhubsat()
108 expect[i].uh[j] = (byte1 << 8) | (byte0 & 0xff); in test_vasrvuhubsat()
121 memset(expect, 0xaa, sizeof(expect)); in test_vasrvwuhrndsat()
145 expect[i].w[j] = (half1 << 16) | (half0 & 0xffff); in test_vasrvwuhrndsat()
158 memset(expect, 0xaa, sizeof(expect)); in test_vasrvwuhsat()
182 expect[i].w[j] = (half1 << 16) | (half0 & 0xffff); in test_vasrvwuhsat()
194 memset(expect, 0xaa, sizeof(expect)); in test_vassign_tmp()
220 expect[i].w[j] = buffer0[i].w[j] + 3; in test_vassign_tmp()
[all …]
/openbmc/phosphor-misc/http-redirect/
H A Dtests25 expect='^location: https://somewhere.example.com/over/the/rainbow.$'
32 if grep -is "$expect" $TMPFILE
37 echo "Expected to find >'$expect'< in :"
43 expect='^location: https://somewhere.example/.$'
50 if grep -is "$expect" $TMPFILE
55 echo "Expected to find >'$expect'< in :"
62 expect='^location: https://elsewhere.example/over/the/rainbow.$'
69 if grep -is "$expect" $TMPFILE
74 echo "Expected to find >'$expect'< in :"
82 expect='^location: https://somewhere.com/over/the/rainbow.$'
[all …]
H A Dtest.awk12 function reportfail(resultfile, expect, request, headers)
15 print("Expected to find :" expect)
18 print("expect:" expect)
28 function test(code, expect, request, headers)
31 result = check(resultfile, code, expect, request, headers)
34 reportfail(resultfile, expect, request, headers)
37 function check(resultfile, code, expect, request, headers)
49 if ((line == expect) && (location ~ " " code " "))
128 expect="Location: https://" host1 "/\r"
133 test(308, expect, request, headers)
[all …]
/openbmc/u-boot/test/py/tests/
H A Dtest_efi_selftest.py19 m = u_boot_console.p.expect(['Summary: 0 failures', 'Press any key'])
23 m = u_boot_console.p.expect(['resetting', 'U-Boot'])
37 m = u_boot_console.p.expect(['serial-number: Testing DT', 'U-Boot'])
49 m = u_boot_console.p.expect(['resetting', 'U-Boot'])
65 m = u_boot_console.p.expect(['To terminate type \'x\''])
73 m = u_boot_console.p.expect(
81 m = u_boot_console.p.expect(
89 m = u_boot_console.p.expect(
97 m = u_boot_console.p.expect(
105 m = u_boot_console.p.expect(
[all …]
/openbmc/qemu/tests/qemu-iotests/
H A D05735 self.expect = []
46 self.expect.append({'image': img, 'device': device,
53 for dev_expect in self.expect:
58 for dev_expect in self.expect:
89 for dev_expect in self.expect:
124 for dev_expect in self.expect:
174 'data': { 'device': self.expect[0]['device'],
192 'data': { 'device': self.expect[0]['device'],
193 'name': self.expect[0]['snapshots'][0] },
219 self.deleteSnapshot(self.expect[0]['device'],
[all …]
/openbmc/u-boot/tools/buildman/
H A Dtest.py175 expect = '%10s: ' % arch
177 expect += ' ' + col.Color(expected_colour, plus)
178 expect += ' '
180 expect += col.Color(expected_colour, ' %s' % board)
181 self.assertEqual(text, expect)
250 expect = '%10s: ' % 'powerpc'
251 expect += ' ' + col.Color(col.GREEN, '')
252 expect += ' '
253 expect += col.Color(col.GREEN, ' %s' % 'board2')
254 expect += ' ' + col.Color(col.YELLOW, 'w+')
[all …]
/openbmc/openbmc-tools/reboot-ping-pong/
H A Drpp29 self.session.expect([".+".encode(), pexpect.TIMEOUT], timeout=5)
35 self.session.expect(needle, timeout=None)
54 self.session.expect(self.prompt)
58 self.session.expect(self.prompt)
82 rc = self.session.expect([self.getty, self.shell])
90 self.session.expect("Password: ".encode())
94 self.session.expect(self.shell)
98 self.session.expect(
101 self.session.expect(self.getty, timeout=None)
141 self.session.expect("password:".encode())
[all …]
/openbmc/linux/tools/testing/selftests/net/forwarding/
H A Dmirror_lib.sh37 local expect=$1; shift
54 ((expect <= delta && delta <= expect + 2))
55 check_err $? "Expected to capture $expect packets, got $delta."
60 local expect=$1; shift
67 mirror_test v$h1 $ip1 $ip2 $dev 100 $expect
68 mirror_test v$h2 $ip2 $ip1 $dev 100 $expect
114 local expect=$1; shift
126 mirror_test v$h1 $ip1 $ip2 $dev 100 $expect
127 mirror_test v$h2 $ip2 $ip1 $dev 100 $expect
/openbmc/linux/tools/testing/selftests/rseq/
H A Drseq-arm64-bits.h15 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_storev)(intptr_t *v, intptr_t expect, intptr_t newv, int c… in RSEQ_TEMPLATE_IDENTIFIER()
29 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) in RSEQ_TEMPLATE_IDENTIFIER()
33 RSEQ_ASM_OP_CMPEQ(v, expect, %l[error2]) in RSEQ_TEMPLATE_IDENTIFIER()
43 [expect] "r" (expect), in RSEQ_TEMPLATE_IDENTIFIER()
181 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, in RSEQ_TEMPLATE_IDENTIFIER()
198 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) in RSEQ_TEMPLATE_IDENTIFIER()
204 RSEQ_ASM_OP_CMPEQ(v, expect, %l[error2]) in RSEQ_TEMPLATE_IDENTIFIER()
215 [expect] "r" (expect), in RSEQ_TEMPLATE_IDENTIFIER()
255 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_trystorev_storev)(intptr_t *v, intptr_t expect, in RSEQ_TEMPLATE_IDENTIFIER()
271 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) in RSEQ_TEMPLATE_IDENTIFIER()
[all …]
H A Drseq-ppc-bits.h15 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_storev)(intptr_t *v, intptr_t expect, intptr_t newv, int c… in RSEQ_TEMPLATE_IDENTIFIER()
32 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) in RSEQ_TEMPLATE_IDENTIFIER()
38 RSEQ_ASM_OP_CMPEQ(v, expect, %l[error2]) in RSEQ_TEMPLATE_IDENTIFIER()
49 [expect] "r" (expect), in RSEQ_TEMPLATE_IDENTIFIER()
207 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, in RSEQ_TEMPLATE_IDENTIFIER()
227 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) in RSEQ_TEMPLATE_IDENTIFIER()
236 RSEQ_ASM_OP_CMPEQ(v, expect, %l[error2]) in RSEQ_TEMPLATE_IDENTIFIER()
253 [expect] "r" (expect), in RSEQ_TEMPLATE_IDENTIFIER()
292 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_trystorev_storev)(intptr_t *v, intptr_t expect, in RSEQ_TEMPLATE_IDENTIFIER()
311 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) in RSEQ_TEMPLATE_IDENTIFIER()
[all …]
H A Drseq-riscv-bits.h9 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_storev)(intptr_t *v, intptr_t expect, intptr_t newv, int c… in RSEQ_TEMPLATE_IDENTIFIER()
22 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[cmpfail]") in RSEQ_TEMPLATE_IDENTIFIER()
26 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[error2]") in RSEQ_TEMPLATE_IDENTIFIER()
36 [expect] "r" (expect), in RSEQ_TEMPLATE_IDENTIFIER()
163 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, in RSEQ_TEMPLATE_IDENTIFIER()
179 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[cmpfail]") in RSEQ_TEMPLATE_IDENTIFIER()
185 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[error2]") in RSEQ_TEMPLATE_IDENTIFIER()
196 [expect] "r" (expect), in RSEQ_TEMPLATE_IDENTIFIER()
281 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_trystorev_storev)(intptr_t *v, intptr_t expect, in RSEQ_TEMPLATE_IDENTIFIER()
296 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[cmpfail]") in RSEQ_TEMPLATE_IDENTIFIER()
[all …]
H A Drseq.h235 intptr_t *v, intptr_t expect, in rseq_cmpeqv_storev() argument
242 return rseq_cmpeqv_storev_relaxed_cpu_id(v, expect, newv, cpu); in rseq_cmpeqv_storev()
244 return rseq_cmpeqv_storev_relaxed_mm_cid(v, expect, newv, cpu); in rseq_cmpeqv_storev()
307 intptr_t *v, intptr_t expect, in rseq_cmpeqv_trystorev_storev() argument
315 return rseq_cmpeqv_trystorev_storev_relaxed_cpu_id(v, expect, v2, newv2, newv, cpu); in rseq_cmpeqv_trystorev_storev()
317 return rseq_cmpeqv_trystorev_storev_relaxed_mm_cid(v, expect, v2, newv2, newv, cpu); in rseq_cmpeqv_trystorev_storev()
323 return rseq_cmpeqv_trystorev_storev_release_cpu_id(v, expect, v2, newv2, newv, cpu); in rseq_cmpeqv_trystorev_storev()
325 return rseq_cmpeqv_trystorev_storev_release_mm_cid(v, expect, v2, newv2, newv, cpu); in rseq_cmpeqv_trystorev_storev()
335 intptr_t *v, intptr_t expect, in rseq_cmpeqv_cmpeqv_storev() argument
343 return rseq_cmpeqv_cmpeqv_storev_relaxed_cpu_id(v, expect, v2, expect2, newv, cpu); in rseq_cmpeqv_cmpeqv_storev()
[all …]
/openbmc/webui-vue/tests/unit/Global/
H A DStatusIcon.spec.js11 expect(wrapper.exists()).toBe(true);
14 expect(wrapper.find('.info').exists()).toBe(true);
18 expect(wrapper.find('.success').exists()).toBe(true);
22 expect(wrapper.find('.warning').exists()).toBe(true);
26 expect(wrapper.find('.danger').exists()).toBe(true);
30 expect(wrapper.find('.status-icon').exists()).toBe(true);
33 expect(wrapper.element).toMatchSnapshot();
/openbmc/linux/net/netfilter/
H A Dnf_conntrack_expect.c431 static inline int __nf_ct_expect_check(struct nf_conntrack_expect *expect, in __nf_ct_expect_check() argument
437 struct nf_conn *master = expect->master; in __nf_ct_expect_check()
440 struct net *net = nf_ct_exp_net(expect); in __nf_ct_expect_check()
449 h = nf_ct_expect_dst_hash(net, &expect->tuple); in __nf_ct_expect_check()
451 if (master_matches(i, expect, flags) && in __nf_ct_expect_check()
452 expect_matches(i, expect)) { in __nf_ct_expect_check()
453 if (i->class != expect->class || in __nf_ct_expect_check()
454 i->master != expect->master) in __nf_ct_expect_check()
459 } else if (expect_clash(i, expect)) { in __nf_ct_expect_check()
468 p = &helper->expect_policy[expect->class]; in __nf_ct_expect_check()
[all …]
/openbmc/webui-vue/tests/unit/
H A DAppHeader.spec.js36 expect(wrapper.exists()).toBe(true);
40 expect(wrapper.element).toMatchSnapshot();
46 expect(wrapper.emitted('refresh')).toBeTruthy();
53 expect(rootWrapper.emitted('toggle-navigation')).toBeTruthy();
59 expect(store.dispatch).toHaveBeenCalledTimes(1);
66 expect(wrapper.vm.isNavigationOpen).toEqual(false);
72 expect(store.dispatch).toHaveBeenCalledTimes(1);
77 expect(store.dispatch).toHaveBeenCalledTimes(1);
/openbmc/openbmc/poky/meta/recipes-devtools/expect/
H A Dexpect_5.45.4.bb10 HOMEPAGE = "http://sourceforge.net/projects/expect/"
21 SRC_URI = "${SOURCEFORGE_MIRROR}/expect/Expect/${PV}/${BPN}${PV}.tar.gz \
24 file://0001-expect-install-scripts-without-using-the-fixline1-tc.patch \
26 file://0001-expect-Fix-segfaults-if-Tcl-is-built-with-stubs-and-.patch \
30 file://expect-configure-c99.patch \
37 UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/expect/files/Expect/"
44 install -m 0755 ${D}${libdir}/expect${PV}/libexpect*.so ${D}${libdir}/
45 install -m 0755 ${S}/fixline1 ${D}${libdir}/expect${PV}/
46 rm ${D}${libdir}/expect${PV}/libexpect*.so
47 sed -e 's|$dir|${libdir}|' -i ${D}${libdir}/expect${PV}/pkgIndex.tcl
[all …]

12345678910>>...23