Home
last modified time | relevance | path

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

1234567891011

/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_complete(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_complete(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/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/qemu/tests/tcg/hexagon/
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 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 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 …]
H A Dv73_scalar.c28 static void __check32(int line, uint32_t result, uint32_t expect) in __check32() argument
30 if (result != expect) { in __check32()
32 line, result, expect); in __check32()
39 static void __check64(int line, uint64_t result, uint64_t expect) in __check64() argument
41 if (result != expect) { in __check64()
43 line, result, expect); in __check64()
/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/openbmc/meta-arm/meta-arm-systemready/lib/oeqa/runtime/cases/
H A Darm_systemready_debian_unattended.py16 self.target.expect(self.console,
21 self.target.expect(self.console,
26 self.target.expect(self.console,
31 self.target.expect(self.console,
37 self.target.expect(self.console,
42 self.target.expect(self.console,
49 self.target.expect(self.console,
54 self.target.expect(self.console,
59 self.target.expect(self.console,
65 self.target.expect(self.console, r'.*login:', timeout=(40 * 60))
H A Darm_systemready_opensuse_unattended.py15 self.target.expect(self.console,
20 self.target.expect(self.console,
25 self.target.expect(self.console,
30 self.target.expect(self.console,
35 self.target.expect(self.console,
41 self.target.expect(self.console, r'.*login: ', timeout=(6 * 60 * 60))
H A Darm_systemready_fedora_unattended.py16 self.target.expect(self.console,
21 self.target.expect(self.console,
26 self.target.expect(self.console,
32 self.target.expect(self.console,
38 self.target.expect(self.console, r'.*login: ', timeout=(5 * 60 * 60))
/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/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();
H A DLoadingBar.spec.js17 expect(wrapper.exists()).toBe(true);
24 expect(wrapper.vm.isLoadingComplete).toBe(false);
25 expect(wrapper.find('.progress').exists()).toBe(true);
32 expect(wrapper.vm.isLoadingComplete).toBe(true);
33 expect(wrapper.find('.progress').exists()).toBe(false);
36 expect(wrapper.element).toMatchSnapshot();
H A DPageTitle.spec.js19 expect(wrapper.exists()).toBe(true);
22 expect(wrapper.find('h1').exists()).toBe(true);
25 expect(wrapper.find('p').exists()).toBe(true);
28 expect(wrapper.element).toMatchSnapshot();
H A DTableCellCount.spec.js15 expect(wrapper.exists()).toBe(true);
18 expect(wrapper.text()).toContain('global.table.selectedItems');
22 expect(wrapper.text()).toContain('global.table.items');
25 expect(wrapper.element).toMatchSnapshot();
H A DInputPasswordToggle.spec.js16 expect(wrapper.exists()).toBe(true);
19 expect(wrapper.find('.isVisible').exists()).toBe(false);
23 expect(wrapper.find('.isVisible').exists()).toBe(true);
26 expect(wrapper.element).toMatchSnapshot();
/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);
H A DAppNavigation.spec.js28 expect(wrapper.exists()).toBe(true);
32 expect(wrapper.element).toMatchSnapshot();
37 expect(wrapper.element).toMatchSnapshot();
45 expect(rootWrapper.emitted('change-is-navigation-open')).toBeTruthy();
52 expect(wrapper.vm.isNavigationOpen).toBe(true);
54 expect(wrapper.vm.isNavigationOpen).toBe(false);
/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/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/poky/meta/lib/oeqa/core/tests/
H A Dtest_data.py28 expect = False
30 expect = True
32 self.assertTrue(expect)
42 expect = False
44 expect = True
46 self.assertTrue(expect)
/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/"
47 mv ${D}${libdir}/expect${PV}/libexpect*.so ${D}${libdir}/
48 install -m 0755 ${S}/fixline1 ${D}${libdir}/expect${PV}/
49 sed -e 's|$dir|${libdir}|' -i ${D}${libdir}/expect${PV}/pkgIndex.tcl
74 FILES:${PN}-dev = "${libdir_native}/expect${PV}/libexpect*.so \
[all …]
/openbmc/openbmc/poky/meta-yocto-bsp/lib/oeqa/controllers/
H A Dbeaglebonetarget.py77 serialconn.expect("NAND:")
78 serialconn.expect("MMC:")
80 serialconn.expect("U-Boot#")
82 serialconn.expect("U-Boot#")
84 serialconn.expect("U-Boot#")
86 serialconn.expect("login:", timeout=120)
94 serialconn.expect("login:", timeout=120)

1234567891011