Home
last modified time | relevance | path

Searched refs:test (Results 1 – 25 of 2641) sorted by relevance

12345678910>>...106

/openbmc/qemu/tests/qtest/
H A Dendianness-test.c50 static uint8_t isa_inb(QTestState *qts, const TestCase *test, uint16_t addr) in isa_inb() argument
53 if (test->isa_base == -1) { in isa_inb()
56 value = qtest_readb(qts, test->isa_base + addr); in isa_inb()
61 static uint16_t isa_inw(QTestState *qts, const TestCase *test, uint16_t addr) in isa_inw() argument
64 if (test->isa_base == -1) { in isa_inw()
67 value = qtest_readw(qts, test->isa_base + addr); in isa_inw()
69 return test->bswap ? bswap16(value) : value; in isa_inw()
72 static uint32_t isa_inl(QTestState *qts, const TestCase *test, uint16_t addr) in isa_inl() argument
75 if (test->isa_base == -1) { in isa_inl()
78 value = qtest_readl(qts, test->isa_base + addr); in isa_inl()
[all …]
H A Dmeson.build2 'ahci-test': 150,
3 'aspeed_smc-test': 360,
4 'bios-tables-test' : 910,
5 'cdrom-test' : 610,
6 'device-introspect-test' : 720,
7 'ide-test' : 120,
8 'migration-test' : 480,
9 'npcm7xx_pwm-test': 300,
10 'npcm7xx_watchdog_timer-test': 120,
11 'qmp-cmd-test' : 120,
[all …]
H A Dvnc-display-test.c39 test_setup(Test *test) in test_setup() argument
47 test->qts = qtest_init("-M none -vnc none -name vnc-test"); in test_setup()
51 qtest_qmp_add_client(test->qts, "vnc", pair[1]); in test_setup()
53 test->conn = vnc_connection_new(); in test_setup()
54 g_signal_connect(test->conn, "vnc-error", in test_setup()
56 g_signal_connect(test->conn, "vnc-auth-failure", in test_setup()
58 vnc_connection_set_auth_type(test->conn, VNC_CONNECTION_AUTH_NONE); in test_setup()
61 vnc_connection_open_fd(test->conn, _get_osfhandle(pair[0])); in test_setup()
63 vnc_connection_open_fd(test->conn, pair[0]); in test_setup()
66 test->loop = g_main_loop_new(NULL, FALSE); in test_setup()
[all …]
H A Dtpm-tis-test.c32 TPMTestState test; in main() local
37 test.addr = g_new0(SocketAddress, 1); in main()
38 test.addr->type = SOCKET_ADDRESS_TYPE_UNIX; in main()
39 test.addr->u.q_unix.path = g_build_filename(tmp_path, "sock", NULL); in main()
40 g_mutex_init(&test.data_mutex); in main()
41 g_cond_init(&test.data_cond); in main()
42 test.data_cond_signal = false; in main()
43 test.tpm_version = TPM_VERSION_2_0; in main()
45 thread = g_thread_new(NULL, tpm_emu_ctrl_thread, &test); in main()
46 tpm_emu_test_wait_cond(&test); in main()
[all …]
H A Dtpm-tis-device-test.c36 TPMTestState test; in main() local
43 test.addr = g_new0(SocketAddress, 1); in main()
44 test.addr->type = SOCKET_ADDRESS_TYPE_UNIX; in main()
45 test.addr->u.q_unix.path = g_build_filename(tmp_path, "sock", NULL); in main()
46 g_mutex_init(&test.data_mutex); in main()
47 g_cond_init(&test.data_cond); in main()
48 test.data_cond_signal = false; in main()
49 test.tpm_version = TPM_VERSION_2_0; in main()
51 thread = g_thread_new(NULL, tpm_emu_ctrl_thread, &test); in main()
52 tpm_emu_test_wait_cond(&test); in main()
[all …]
H A Ddbus-vmstate-test.c96 get_connection(Test *test, guint *ownid) in get_connection() argument
104 wait->loop = test->loop; in get_connection()
149 set_id_list(Test *test, QTestState *s) in set_id_list() argument
151 if (!test->id_list) { in set_id_list()
158 test->id_list))); in set_id_list()
172 test_dbus_vmstate(Test *test) in test_dbus_vmstate() argument
197 test->loop = loop; in test_dbus_vmstate()
201 srcconnA = get_connection(test, &ownsrcA); in test_dbus_vmstate()
202 srcserverA = get_server(srcconnA, &test->srcA, &idA); in test_dbus_vmstate()
203 srcconnB = get_connection(test, &ownsrcB); in test_dbus_vmstate()
[all …]
/openbmc/qemu/tests/unit/
H A Dmeson.build14 'test-error-report': [],
15 'test-qobject-output-visitor': [testqapi],
16 'test-clone-visitor': [testqapi],
17 'test-qobject-input-visitor': [testqapi],
18 'test-forward-visitor': [testqapi],
19 'test-string-input-visitor': [testqapi],
20 'test-string-output-visitor': [testqapi],
21 'test-visitor-serialization': [testqapi],
22 'test-bitmap': [],
23 'test-resv-mem': [],
[all …]
H A Dtest-bitops.c42 const S32Test *test = &test_s32_data[i]; in test_sextract32() local
43 int32_t r = sextract32(test->value, test->start, test->length); in test_sextract32()
45 g_assert_cmpint(r, ==, test->result); in test_sextract32()
54 const S32Test *test = &test_s32_data[i]; in test_sextract64() local
55 int64_t r = sextract64(test->value, test->start, test->length); in test_sextract64()
57 g_assert_cmpint(r, ==, test->result); in test_sextract64()
61 const S64Test *test = &test_s64_data[i]; in test_sextract64() local
62 int64_t r = sextract64(test->value, test->start, test->length); in test_sextract64()
64 g_assert_cmpint(r, ==, test->result); in test_sextract64()
93 const Shuffle32Test *test = &test_shuffle32_data[i]; in test_half_shuffle32() local
[all …]
H A Dio-channel-helpers.c102 void qio_channel_test_run_threads(QIOChannelTest *test, in qio_channel_test_run_threads() argument
109 test->src = src; in qio_channel_test_run_threads()
110 test->dst = dst; in qio_channel_test_run_threads()
112 qio_channel_set_blocking(test->dst, blocking, NULL); in qio_channel_test_run_threads()
113 qio_channel_set_blocking(test->src, blocking, NULL); in qio_channel_test_run_threads()
117 test); in qio_channel_test_run_threads()
120 test); in qio_channel_test_run_threads()
125 test->dst = test->src = NULL; in qio_channel_test_run_threads()
129 void qio_channel_test_run_writer(QIOChannelTest *test, in qio_channel_test_run_writer() argument
132 test->src = src; in qio_channel_test_run_writer()
[all …]
/openbmc/qemu/tests/functional/
H A Dtest_mips_malta.py15 def mips_run_common_commands(test, prompt='#'): argument
16 exec_command_and_wait_for_pattern(test,
19 exec_command_and_wait_for_pattern(test,
22 wait_for_console_pattern(test, prompt)
23 exec_command_and_wait_for_pattern(test,
26 wait_for_console_pattern(test, prompt)
27 exec_command_and_wait_for_pattern(test,
30 wait_for_console_pattern(test, prompt)
31 exec_command_and_wait_for_pattern(test,
34 wait_for_console_pattern(test, prompt)
[all …]
/openbmc/libpldm/src/transport/
H A Dtest.c41 struct pldm_transport_test *test = transport_to_test(ctx); in pldm_transport_test_init_pollfd() local
45 rc = timerfd_settime(test->timerfd, 0, &disable, NULL); in pldm_transport_test_init_pollfd()
50 if (test->cursor >= test->count) { in pldm_transport_test_init_pollfd()
54 desc = &test->seq[test->cursor]; in pldm_transport_test_init_pollfd()
57 rc = timerfd_settime(test->timerfd, 0, &desc->latency, NULL); in pldm_transport_test_init_pollfd()
63 test->cursor++; in pldm_transport_test_init_pollfd()
75 { .fd = test->timerfd, .events = POLLIN }, in pldm_transport_test_init_pollfd()
78 rc = timerfd_settime(test->timerfd, 0, &ready, NULL); in pldm_transport_test_init_pollfd()
93 pollfd->fd = test->timerfd; in pldm_transport_test_init_pollfd()
105 struct pldm_transport_test *test = transport_to_test(ctx); in pldm_transport_test_recv() local
[all …]
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-daemons/postfix/files/
H A D0003-makedefs-Use-native-compiler-to-build-makedefs.test.patch4 Subject: [PATCH] makedefs: Use native compiler to build makedefs.test
23 - ${CC-gcc} -o makedefs.test makedefs.test.c || exit 1
24 + ${BUILD_CC-gcc} -o makedefs.test makedefs.test.c || exit 1
25 rm -f makedefs.test makedefs.test.[co]
32 - ${CC-gcc} -o makedefs.test makedefs.test.c || exit 1
33 + ${BUILD_CC-gcc} -o makedefs.test makedefs.test.c || exit 1
34 ./makedefs.test 2>/dev/null ||
36 rm -f makedefs.test makedefs.test.[co]
41 - ${CC-gcc} -o makedefs.test makedefs.test.c $icu_cppflags \
42 + ${BUILD_CC-gcc} -o makedefs.test makedefs.test.c $icu_cppflags \
[all …]
/openbmc/qemu/tests/fp/
H A Dfp-test-log2.c25 static void compare(ufloat64 test, ufloat64 real, ufloat64 soft, bool exact) in compare() argument
51 test.i, test.d, soft.i, soft.d, real.i, real.d); in compare()
69 ufloat64 test, real, soft; in main() local
77 test.d = 0.0; in main()
79 soft.i = float64_log2(test.i, &qsf); in main()
80 compare(test, real, soft, true); in main()
82 test.d = 1.0; in main()
84 soft.i = float64_log2(test.i, &qsf); in main()
85 compare(test, real, soft, true); in main()
87 test.d = 2.0; in main()
[all …]
/openbmc/u-boot/lib/efi_selftest/
H A Defi_selftest.c76 static int setup(struct efi_unit_test *test, unsigned int *failures) in setup() argument
80 if (!test->setup) in setup()
82 efi_st_printc(EFI_LIGHTBLUE, "\nSetting up '%s'\n", test->name); in setup()
83 ret = test->setup(handle, systable); in setup()
85 efi_st_error("Setting up '%s' failed\n", test->name); in setup()
89 "Setting up '%s' succeeded\n", test->name); in setup()
101 static int execute(struct efi_unit_test *test, unsigned int *failures) in execute() argument
105 if (!test->execute) in execute()
107 efi_st_printc(EFI_LIGHTBLUE, "\nExecuting '%s'\n", test->name); in execute()
108 ret = test->execute(); in execute()
[all …]
/openbmc/obmc-console/test/
H A Dmeson.build2 'test-ringbuffer-boundary-poll',
3 'test-ringbuffer-boundary-read',
4 'test-ringbuffer-contained-offset-read',
5 'test-ringbuffer-contained-read',
6 'test-ringbuffer-poll-force',
7 'test-ringbuffer-read-commit',
8 'test-ringbuffer-simple-poll',
12 test(
24 'test-client-escape',
25 'test-config-parse',
[all …]
/openbmc/qemu/hw/misc/
H A Dpci-testdev.c30 uint8_t test; member
107 static int pci_testdev_start(IOTest *test) in OBJECT_DECLARE_SIMPLE_TYPE()
109 test->hdr->count = 0; in OBJECT_DECLARE_SIMPLE_TYPE()
110 if (!test->hasnotifier) { in OBJECT_DECLARE_SIMPLE_TYPE()
113 event_notifier_test_and_clear(&test->notifier); in OBJECT_DECLARE_SIMPLE_TYPE()
114 memory_region_add_eventfd(test->mr, in OBJECT_DECLARE_SIMPLE_TYPE()
115 le32_to_cpu(test->hdr->offset), in OBJECT_DECLARE_SIMPLE_TYPE()
116 test->size, in OBJECT_DECLARE_SIMPLE_TYPE()
117 test->match_data, in OBJECT_DECLARE_SIMPLE_TYPE()
118 test->hdr->data, in OBJECT_DECLARE_SIMPLE_TYPE()
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/protobuf/protobuf-c/
H A D0001-Makefile.am-do-not-compile-the-code-which-was-genera.patch5 test-full.proto in protobuf-c-native
7 Those code was auto generated by protoc command with test-full.proto, those code are not compatible
9 the test-full.proto with latest version protobuf.
30 - t/generated-code/test-generated-code \
31 - t/generated-code2/test-generated-code2 \
32 - t/generated-code3/test-generated-code3 \
36 - t/generated-code/test-generated-code \
37 - t/generated-code2/test-generated-code2 \
38 - t/generated-code3/test-generated-code3 \
42 - t/generated-code/test-generated-code.c \
[all …]
/openbmc/libmctp/tests/
H A Dtest-utils.c30 struct mctp_binding_test *test; in mctp_binding_test_init() local
31 test = __mctp_alloc(sizeof(*test)); in mctp_binding_test_init()
32 memset(test, '\0', sizeof(*test)); in mctp_binding_test_init()
33 test->binding.name = "test"; in mctp_binding_test_init()
34 test->binding.version = 1; in mctp_binding_test_init()
35 test->binding.tx = mctp_binding_test_tx; in mctp_binding_test_init()
36 test->binding.pkt_size = MCTP_PACKET_SIZE(MCTP_BTU); in mctp_binding_test_init()
37 test->binding.pkt_header = 0; in mctp_binding_test_init()
38 test->binding.pkt_trailer = 0; in mctp_binding_test_init()
39 test->binding.tx_storage = test->tx_storage; in mctp_binding_test_init()
[all …]
/openbmc/openbmc/poky/meta/recipes-core/dbus/dbus-glib/
H A Dtest-install-makefile.patch4 Subject: [PATCH] Change Makefile.am to install regression tests for test
7 Upstream-Status: Inappropriate [test not install is for purpose from upstream]
12 test/Makefile.am | 3 ++-
13 test/core/Makefile.am | 3 ++-
14 test/interfaces/Makefile.am | 3 ++-
17 diff --git a/test/Makefile.am b/test/Makefile.am
19 --- a/test/Makefile.am
20 +++ b/test/Makefile.am
31 diff --git a/test/core/Makefile.am b/test/core/Makefile.am
33 --- a/test/core/Makefile.am
[all …]
/openbmc/openbmc/poky/meta/recipes-core/ifupdown/files/
H A Dtweak-ptest-script.patch26 for test in 1 2 3 4 5 6 7 8 9 10 11 16 17 18 19; do
27 @@ -12,7 +13,7 @@ for test in 1 2 3 4 5 6 7 8 9 10 11 16 17 18 19; do
28 echo "Testcase $test: $args"
31 - ./ifup -v --no-act-commands --force -i $dir/testcase.$test --state-dir=$dir/state.$test $a…
32 + ifup -v --no-act-commands --force -i $dir/testcase.$test --state-dir=$dir/state.$test $arg…
33 >$dir/up-res-out.$test 2>$dir/up-res-err.$test || exitcode=$?
36 @@ -20,7 +21,7 @@ for test in 1 2 3 4 5 6 7 8 9 10 11 16 17 18 19; do
37 echo "====stderr===="; cat $dir/up-res-err.$test) > $dir/up-res.$test
40 - ./ifdown -v --no-act-commands --force -i $dir/testcase.$test --state-dir=$dir/state.$test
41 + ifdown -v --no-act-commands --force -i $dir/testcase.$test --state-dir=$dir/state.$test $a…
[all …]
/openbmc/obmc-console/
H A D.gitignore10 /test-driver
56 test/*.log
57 test/*.trs
58 test/test-config-parse-logsize
59 test/test-ringbuffer-boundary-poll
60 test/test-ringbuffer-boundary-read
61 test/test-ringbuffer-contained-offset-read
62 test/test-ringbuffer-contained-read
63 test/test-ringbuffer-poll-force
64 test/test-ringbuffer-read-commit
[all …]
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-protocols/vsomeip/
H A Dvsomeip_3.5.3.bb16 file://0005-test-common-CMakeLists.txt-add-missing-link-with-dlt.patch \
38 # For vsomeip-test
45 RDEPENDS:${PN}-test = "bash lsof"
53 install -d ${D}/opt/${PN}-test/examples
54 install -m 0755 ${B}/examples/*-sample ${D}/opt/${PN}-test/examples
55 install -d ${D}/opt/${PN}-test/examples/routingmanagerd
57 ${D}/opt/${PN}-test/examples/routingmanagerd
59 install -d ${D}/opt/${PN}-test/test/test/common
60 cp -rf ${S}/test/common/examples_policies \
61 ${D}/opt/${PN}-test/test/test/common/
[all …]
/openbmc/u-boot/post/lib_powerpc/
H A Dstore.c152 struct cpu_post_store_s *test = cpu_post_store_table + i; in cpu_post_test_store() local
158 if (test->index) in cpu_post_test_store()
162 ASM_12(test->cmd, 5, 3, 4), in cpu_post_test_store()
166 cpu_post_exec_12w (code, &base, test->offset, test->value); in cpu_post_test_store()
172 ASM_11I(test->cmd, 4, 3, test->offset), in cpu_post_test_store()
176 cpu_post_exec_11w (code, &base, test->value); in cpu_post_test_store()
181 if (test->update) in cpu_post_test_store()
182 ret = base == base0 + test->offset ? 0 : -1; in cpu_post_test_store()
189 switch (test->width) in cpu_post_test_store()
192 ret = *(uchar *)(base0 + test->offset) == test->value ? in cpu_post_test_store()
[all …]
/openbmc/openbmc/poky/meta/recipes-devtools/quilt/quilt/
H A D0001-tests-Allow-different-output-from-mv.patch6 busybox mv has different error messages: fix the test
11 test/failbackup.test | 2 +-
14 diff --git a/test/failbackup.test b/test/failbackup.test
16 --- a/test/failbackup.test
17 +++ b/test/failbackup.test
19 $ cat > test.txt
20 < This is updated test.txt.
22 - >~ mv: cannot move [`']?patches/test.diff'? to [`']?patches/test.diff~'?: Permission denied
/openbmc/u-boot/post/
H A Dpost.c29 struct post_test *test = post_list + i; in post_init_f() local
31 if (test->init_f && test->init_f()) in post_init_f()
235 static int post_run_single(struct post_test *test, in post_run_single() argument
251 post_log_mark_start(test->testid); in post_run_single()
253 post_log("POST %s ", test->cmd); in post_run_single()
259 if ((*test->test)(flags) == 0) { in post_run_single()
260 post_log_mark_succ(test->testid); in post_run_single()
270 if ((*test->test)(flags) != 0) { in post_run_single()
355 static int post_info_single(struct post_test *test, int full) in post_info_single() argument
357 if (test->flags & POST_MANUAL) { in post_info_single()
[all …]

12345678910>>...106