Home
last modified time | relevance | path

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

12345678910>>...14

/qemu/tests/qtest/
H A Dendianness-test.c53 if (test->isa_base == -1) { in isa_inb()
64 if (test->isa_base == -1) { in isa_inw()
75 if (test->isa_base == -1) { in isa_inl()
86 if (test->isa_base == -1) { in isa_outb()
97 if (test->isa_base == -1) { in isa_outw()
108 if (test->isa_base == -1) { in isa_outl()
118 const TestCase *test = data; in test_endianness() local
151 isa_outb(qts, test, 0xe3, 0x87); in test_endianness()
159 isa_outb(qts, test, 0xe2, 0x65); in test_endianness()
190 const TestCase *test = data; in test_endianness_split() local
[all …]
H A Dmeson.build4 'cdrom-test' : 610,
12 'pxe-test': 610,
20 'cdrom-test',
23 'qmp-test',
25 'qom-test',
26 'test-hmp',
27 'qos-test',
179 qtests_pci + ['migration-test', 'numa-test', 'cpu-plug-test', 'drive_del-test']
184 qtests_sparc = ['prom-env-test', 'm48t59-test', 'boot-serial-test'] + \
190 ['prom-env-test', 'boot-serial-test']
[all …]
H A Ddbus-vmstate-test.c151 if (!test->id_list) { in set_id_list()
197 test->loop = loop; in test_dbus_vmstate()
274 Test test = { 0, }; in test_dbus_vmstate_without_list() local
278 check_migrated(&test.srcA, &test.dstA); in test_dbus_vmstate_without_list()
279 check_migrated(&test.srcB, &test.dstB); in test_dbus_vmstate_without_list()
289 check_migrated(&test.srcA, &test.dstA); in test_dbus_vmstate_with_list()
290 check_migrated(&test.srcB, &test.dstB); in test_dbus_vmstate_with_list()
300 check_migrated(&test.srcA, &test.dstA); in test_dbus_vmstate_only_a()
301 check_not_migrated(&test.srcB, &test.dstB); in test_dbus_vmstate_only_a()
312 check_not_migrated(&test.srcA, &test.dstA); in test_dbus_vmstate_missing_src()
[all …]
H A Dvnc-display-test.c39 test_setup(Test *test) in test_setup() argument
53 test->conn = vnc_connection_new(); in test_setup()
54 g_signal_connect(test->conn, "vnc-error", in test_setup()
73 Test *test) in test_vnc_basic_on_vnc_initialized() argument
78 g_main_loop_quit(test->loop); in test_vnc_basic_on_vnc_initialized()
84 Test test; in test_vnc_basic() local
86 if (!test_setup(&test)) { in test_vnc_basic()
93 g_main_loop_run(test.loop); in test_vnc_basic()
95 qtest_quit(test.qts); in test_vnc_basic()
96 g_object_unref(test.conn); in test_vnc_basic()
[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()
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()
46 tpm_emu_test_wait_cond(&test); in main()
52 test.addr->u.q_unix.path); in main()
75 g_unlink(test.addr->u.q_unix.path); 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()
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()
52 tpm_emu_test_wait_cond(&test); in main()
59 test.addr->u.q_unix.path); in main()
82 g_unlink(test.addr->u.q_unix.path); in main()
[all …]
H A Dpxe-test.c66 static void test_pxe_one(const testdef_t *test, bool ipv6) in test_pxe_one() argument
70 const char *extra = test->extra; in test_pxe_one()
81 test->model, extra); in test_pxe_one()
91 const testdef_t *test = data; in test_pxe_ipv4() local
93 test_pxe_one(test, false); in test_pxe_ipv4()
98 const testdef_t *test = data; in test_pxe_ipv6() local
100 test_pxe_one(test, true); in test_pxe_ipv6()
108 const testdef_t *test = &tests[i]; in test_batch() local
111 if (!qtest_has_device(test->model)) { in test_batch()
116 test->machine, test->model); in test_batch()
[all …]
H A Ddbus-display-test.c95 TestDBusConsoleRegister *test) in listener_handle_scanout() argument
97 g_main_loop_quit(test->loop); in listener_handle_scanout()
129 TestDBusConsoleRegister *test = user_data; in test_dbus_console_registered() local
141 g_main_loop_quit(test->loop); in test_dbus_console_registered()
147 test->listener_conn = g_thread_join(test->thread); in test_dbus_console_registered()
148 test_dbus_console_setup_listener(test); in test_dbus_console_registered()
166 TestDBusConsoleRegister test = { 0, }; in test_dbus_display_console() local
193 test.loop = loop = g_main_loop_new(NULL, FALSE); in test_dbus_display_console()
226 &test); in test_dbus_display_console()
230 g_clear_object(&test.server); in test_dbus_display_console()
[all …]
H A Dboot-serial-test.c208 if (ch == test->expect[pos]) { in check_guest_output()
210 if (test->expect[pos] == '\0') { in check_guest_output()
236 const testdef_t *test = data; in test_machine() local
248 if (test->kernel) { in test_machine()
249 code = test->kernel; in test_machine()
251 } else if (test->bios) { in test_machine()
252 code = test->bios; in test_machine()
262 wlen = write(code_fd, code, test->codesize); in test_machine()
263 g_assert(wlen == test->codesize); in test_machine()
275 serialtmp, test->extra); in test_machine()
[all …]
/qemu/tests/unit/
H A Dmeson.build22 'test-bitmap': [],
26 'test-cutils': [],
27 'test-div128': [],
29 'test-mul64': [],
31 'test-int128': [],
37 'test-qdist': [],
38 'test-qht': [],
39 'test-qtree': [],
40 'test-bitops': [],
41 'test-bitcnt': [],
[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()
96 g_assert_cmpint(r, ==, test->shuffled); in test_half_shuffle32()
[all …]
H A Dio-channel-helpers.c109 test->src = src; in qio_channel_test_run_threads()
110 test->dst = dst; in qio_channel_test_run_threads()
125 test->dst = test->src = NULL; in qio_channel_test_run_threads()
132 test->src = src; in qio_channel_test_run_writer()
134 test->src = NULL; in qio_channel_test_run_writer()
141 test->dst = dst; in qio_channel_test_run_reader()
143 test->dst = NULL; in qio_channel_test_run_reader()
155 g_free(test->inputv); in qio_channel_test_validate()
157 g_free(test->input); in qio_channel_test_validate()
158 g_free(test->output); in qio_channel_test_validate()
[all …]
H A Dtest-xbzrle.c74 test[1000 + i] = i + 4; in test_encode_decode_unchanged()
77 test[1000 + diff_len + 3] = 107; in test_encode_decode_unchanged()
78 test[1000 + diff_len + 5] = 109; in test_encode_decode_unchanged()
81 dlen = xbzrle_encode_buffer(test, test, XBZRLE_PAGE_SIZE, in test_encode_decode_unchanged()
85 g_free(test); in test_encode_decode_unchanged()
97 test[XBZRLE_PAGE_SIZE - 1] = 1; in test_encode_decode_1_byte()
109 g_free(test); in test_encode_decode_1_byte()
120 test[i * 2] = 1; in test_encode_decode_overflow()
130 g_free(test); in test_encode_decode_overflow()
145 test[1000 + i] = i + 4; in encode_decode_range()
[all …]
/qemu/hw/misc/
H A Dpci-testdev.c30 uint8_t test; member
108 test->hdr->count = 0; in OBJECT_DECLARE_SIMPLE_TYPE()
109 if (!test->hasnotifier) { in OBJECT_DECLARE_SIMPLE_TYPE()
156 IOTest *test; in pci_testdev_write() local
179 if (test->match_data && test->size != size) { in pci_testdev_write()
182 if (test->match_data && val != test->hdr->data) { in pci_testdev_write()
193 IOTest *test; in pci_testdev_read() local
276 test->hdr = g_malloc0(test->bufsize); in pci_testdev_realize()
282 test->size = 0; in pci_testdev_realize()
286 test->hdr->test = i; in pci_testdev_realize()
[all …]
/qemu/tests/fp/
H A Dfp-test-log2.c51 test.i, test.d, soft.i, soft.d, real.i, real.d); in compare()
69 ufloat64 test, real, soft; in main() local
75 test.d = 0.0; in main()
78 compare(test, real, soft, true); in main()
80 test.d = 1.0; in main()
85 test.d = 2.0; in main()
90 test.d = 4.0; in main()
95 test.d = 0x1p64; in main()
100 test.d = __builtin_inf(); in main()
107 real.d = log2(test.d); in main()
[all …]
/qemu/tests/
H A Dmeson.build11 'test-qapi-commands.c',
12 'test-qapi-commands.h',
13 'test-qapi-emit-events.c',
14 'test-qapi-emit-events.h',
17 'test-qapi-events.c',
18 'test-qapi-events.h',
21 'test-qapi-introspect.c',
25 'test-qapi-types.c',
26 'test-qapi-types.h',
29 'test-qapi-visit.c',
[all …]
/qemu/tests/tcg/multiarch/
H A Dnoexec.c.inc55 if (test == NULL) {
61 expected_si = page_base + test->expected_si_ofs;
69 expected_pc = page_base + test->expected_pc_ofs;
76 if (arg != test->expected_arg) {
89 void *start = page_base + test->page_ofs;
92 memcpy(start, test->test_code, test->test_len);
93 arch_flush(start, test->test_len);
103 current_noexec_test = test;
130 struct noexec_test *test = &tests[i];
132 printf("[ RUN ] %s\n", test->name);
[all …]
/qemu/tests/include/
H A Dmeson.build3 'test-qapi-commands-sub-module.c',
4 'test-qapi-commands-sub-module.h',
5 'test-qapi-events-sub-module.c',
6 'test-qapi-events-sub-module.h',
7 'test-qapi-types-sub-module.c',
8 'test-qapi-types-sub-module.h',
9 'test-qapi-visit-sub-module.c',
10 'test-qapi-visit-sub-module.h',
13 test_qapi_files_extra = custom_target('QAPI test (include)',
/qemu/tests/multiboot/
H A Daout_kludge.out4 === Running test case: aout_kludge_1.bin ===
8 === Running test case: aout_kludge_2.bin ===
12 === Running test case: aout_kludge_3.bin ===
16 === Running test case: aout_kludge_4.bin ===
20 === Running test case: aout_kludge_5.bin ===
25 === Running test case: aout_kludge_6.bin ===
30 === Running test case: aout_kludge_7.bin ===
35 === Running test case: aout_kludge_8.bin ===
40 === Running test case: aout_kludge_9.bin ===
H A Dmodules.out4 === Running test case: modules.elf ===
9 === Running test case: modules.elf -initrd module.txt ===
13 Content: 'This is a test file that is used as a multiboot module.'
16 === Running test case: modules.elf -initrd module.txt argument ===
20 Content: 'This is a test file that is used as a multiboot module.'
23 === Running test case: modules.elf -initrd module.txt argument,,with,,commas ===
27 Content: 'This is a test file that is used as a multiboot module.'
30 === Running test case: modules.elf -initrd module.txt,module.txt argument,module.txt ===
34 Content: 'This is a test file that is used as a multiboot module.'
36 Content: 'This is a test file that is used as a multiboot module.'
[all …]
/qemu/tests/tcg/s390x/
H A Dex-branch.c8 struct test { struct
15 #define LINK_64(test) ((long)test ## _exp_link) argument
16 #define LINK_NONE(test) -1L argument
114 static const struct test tests[] = {
120 const struct test *test; in main() local
133 test = &tests[i]; in main()
135 fprintf(stderr, "[ RUN ] %s\n", test->name); in main()
139 test->func(&link, &magic); in main()
143 test->name, expected, actual); \ in main()
147 ASSERT_EQ(test->exp_link, link); in main()
/qemu/tests/tcg/i386/
H A DREADME3 test-i386
11 to test some 16 bit addressing and 32 bit with segmentation cases.
13 The Linux system call vm86() is used to test vm86 emulation.
15 Various exceptions are raised to test most of the x86 user space
18 test-avx
24 test-avx.h is generate from x86.csv by test-avx.py
27 linux-test
34 test-i386-fprem
37 test-mmap
/qemu/tests/tcg/xtensa/
H A Dtest_b.S5 test bnone label
19 test beq label
33 test blt label
51 test bltu label
71 test ball label
85 test bbc label
112 test bbci label
125 test bany label
139 test bne label
153 test bge label
[all …]
H A Dtest_mac16.S46 test mul_aa label
50 test mul_ad label
54 test mul_da label
58 test mul_dd label
92 test mula_aa label
96 test mula_ad label
100 test mula_da label
104 test mula_dd label
109 test muls_aa label
125 test ldinc label
[all …]
/qemu/tests/tcg/x86_64/
H A Dcmpxchg.c37 unsigned long test = 0xdeadbeef12345678ull; in main() local
38 assert(test == test_cmpxchgb(test)); in main()
39 assert(test == test_cmpxchgw(test)); in main()
40 assert(test == test_cmpxchgl(test)); in main()

12345678910>>...14