Home
last modified time | relevance | path

Searched full:test (Results 1 – 25 of 1797) sorted by relevance

12345678910>>...72

/qemu/tests/qtest/
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 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 Ddbus-vmstate-test.c30 typedef struct Test { struct
40 } Test; argument
96 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()
[all …]
H A Dvnc-display-test.c16 typedef struct Test { struct
20 } Test; typedef
39 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()
[all …]
H A Dtpm-tis-test.c30 char *args, *tmp_path = g_dir_make_tmp("qemu-tpm-tis-test.XXXXXX", NULL); in main()
32 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()
[all …]
H A Dtpm-tis-device-test.c34 char *tmp_path = g_dir_make_tmp("qemu-tpm-tis-device-test.XXXXXX", NULL); in main()
36 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()
[all …]
/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.c2 * Test bitops routines
42 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()
[all …]
H A Dio-channel-helpers.c2 * QEMU I/O channel test helpers
102 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
[all …]
H A Dtest-error-report.c2 * Error reporting test
21 error_report("%s", "test error"); in test_error_report_simple()
22 warn_report("%s", "test warn"); in test_error_report_simple()
23 info_report("%s", "test info"); in test_error_report_simple()
30 test-error-report: test error*\ in test_error_report_simple()
31 test-error-report: warning: test warn*\ in test_error_report_simple()
32 test-error-report: info: test info*\ in test_error_report_simple()
41 error_report("%s", "test error1"); in test_error_report_loc()
43 error_report("%s", "test error2"); in test_error_report_loc()
50 test-error-report:some-file.c:7717: test error1*\ in test_error_report_loc()
[all …]
H A Dtest-xbzrle.c68 uint8_t *test = g_malloc0(XBZRLE_PAGE_SIZE); in test_encode_decode_unchanged() local
74 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()
80 /* test unchanged buffer */ 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()
92 uint8_t *test = g_malloc0(XBZRLE_PAGE_SIZE); in test_encode_decode_1_byte() local
97 test[XBZRLE_PAGE_SIZE - 1] = 1; in test_encode_decode_1_byte()
99 dlen = xbzrle_encode_buffer(buffer, test, XBZRLE_PAGE_SIZE, in test_encode_decode_1_byte()
[all …]
/qemu/tests/tcg/i386/
H A DMakefile.target16 SKIP_I386_TESTS=test-i386-ssse3 test-avx test-3dnow test-mmx test-flags
17 X86_64_TESTS:=$(filter test-i386-adcox test-i386-bmi2 $(SKIP_I386_TESTS), $(ALL_X86_TESTS))
19 test-i386-sse-exceptions: CFLAGS += -msse4.1 -mfpmath=sse
20 run-test-i386-sse-exceptions: QEMU_OPTS += -cpu max
22 test-i386-pcmpistri: CFLAGS += -msse4.2
23 run-test-i386-pcmpistri: QEMU_OPTS += -cpu max
25 test-i386-bmi2: CFLAGS=-O2 -fwrapv
26 run-test-i386-bmi2: QEMU_OPTS += -cpu max
28 test-i386-adcox: CFLAGS=-O2
29 run-test-i386-adcox: QEMU_OPTS += -cpu max
[all …]
/qemu/tests/functional/qemu_test/
H A Dcmd.py1 # Test class and utilities for functional tests
33 # @test: functional test to fail if @failure is seen
36 # @failure: a string to look for that triggers test failure, or None
48 # If @failure is seen, then mark @test as failed
49 def _console_read_line_until_match(test, vm, success, failure): argument
56 test.fail(
67 test.fail(
81 def _console_interaction(test, success_message, failure_message, argument
87 vm = test.vm
89 test.log.debug(
[all …]
/qemu/tests/fp/
H A Dfp-test-log2.c2 * fp-test-log2.c - test QEMU's softfloat log2
25 static void compare(ufloat64 test, ufloat64 real, ufloat64 soft, bool exact) in compare() argument
43 /* glibc allows 3 ulp error in its libm-test-ulps; allow 4 here */ in compare()
48 printf("test: %016" PRIx64 " %+.13a\n" in compare()
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()
[all …]
/qemu/hw/misc/
H A Dpci-testdev.c2 * QEMU PCI test device
30 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()
[all …]
/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 …]
/qemu/tests/
H A Dmeson.build9 'test-qapi-commands-sub-sub-module.c',
10 'test-qapi-commands-sub-sub-module.h',
11 'test-qapi-commands.c',
12 'test-qapi-commands.h',
13 'test-qapi-emit-events.c',
14 'test-qapi-emit-events.h',
15 'test-qapi-events-sub-sub-module.c',
16 'test-qapi-events-sub-sub-module.h',
17 'test-qapi-events.c',
18 'test-qapi-events.h',
[all …]
/qemu/tests/tcg/multiarch/
H A DMakefile.target29 $(call run-test,$<, $(QEMU) $(QEMU_OPTS) $<)
52 # TCG test case, suppress the warning rather than trying to modify the
57 # don't know if its exposing a real bug or the test is flaky.
60 $(call skip-test, $<, "flaky on CI?")
62 $(call skip-test, $<, "flaky on CI?")
65 run-test-mmap: test-mmap
66 $(call run-test, test-mmap, $(QEMU) $<, $< (default))
69 GDB_SCRIPT=$(SRC_PATH)/tests/guest-debug/run-test.py
72 $(call run-test, $@, $(GDB_SCRIPT) \
75 --bin $< --test $(MULTIARCH_SRC)/gdbstub/sha1.py, \
[all …]
/qemu/docs/
H A Dimage-fuzzer.txt27 Test images are generated from scratch and have valid inner structure with some
31 Test runner
34 The test runner generates test images, executes tests utilizing generated
35 images, indicates their results and collects all test related artifacts (logs,
36 core dumps, test images, backing files).
37 The test means execution of all available commands under test with the same
38 generated test image.
39 By default, the test runner generates new tests and executes them until
40 keyboard interruption. But if a test seed is specified via the '--seed' runner
41 parameter, then only one test with this seed will be executed, after its finish
[all …]
/qemu/tests/tcg/aarch64/
H A Dbti-1.c31 #define TEST(WHICH, DEST, EXPECT) \ macro
43 TEST(BTYPE_1, NOP, 1); in main()
44 TEST(BTYPE_1, BTI_N, 1); in main()
45 TEST(BTYPE_1, BTI_C, 0); in main()
46 TEST(BTYPE_1, BTI_J, 0); in main()
47 TEST(BTYPE_1, BTI_JC, 0); in main()
49 TEST(BTYPE_2, NOP, 1); in main()
50 TEST(BTYPE_2, BTI_N, 1); in main()
51 TEST(BTYPE_2, BTI_C, 0); in main()
52 TEST(BTYPE_2, BTI_J, 1); in main()
[all …]
/qemu/
H A Dconfigure16 if test "$PWD" -ef "$source_path"
22 if test -e build
24 if test -f $MARKER
47 @if test "$(MAKECMDGOALS)" = "distclean" && \
48 test -e build/auto-created-by-configure ; \
86 test -n "$GITLAB_CI" && echo "configuring with: $invoke"
96 while test -n "$2"; do
109 if test -n "$BASH_VERSION"; then eval '
158 test $# = 1 && return 0
159 test $local_first -lt $2 && return 1
[all …]
/qemu/tests/tcg/x86_64/
H A DMakefile.target5 # Currently we only build test-x86_64 and test-i386-ssse3 from
11 X86_64_TESTS += test-2413
18 X86_64_TESTS += test-1648
19 X86_64_TESTS += test-2175
22 TESTS=$(MULTIARCH_TESTS) $(X86_64_TESTS) test-x86_64
29 run-test-i386-ssse3: QEMU_OPTS += -cpu max
30 run-plugin-test-i386-ssse3-%: QEMU_OPTS += -cpu max
35 test-x86_64: LDFLAGS+=-lm -lc
36 test-x86_64: test-i386.c test-i386.h test-i386-shift.h test-i386-muldiv.h
/qemu/docs/devel/testing/
H A Dmain.rst12 Most (but not all) tests are also integrated as an automated test into
16 [./pyvenv/bin/]meson test --suite qemu:softfloat
20 An automated test is written with one of the test frameworks using its
21 generic test functions/classes. The test framework can run the tests and
24 An automated test has essentially three parts:
26 1. The test initialization of the parameters, where the expected parameters,
31 matches the expected result, the test has been successful; otherwise, it has
34 The rest of this document will cover the details for specific test
60 A unit test is responsible for exercising individual software components as a
64 structures. A test case of unit tests should be designed to uncover errors
[all …]
H A Dacpi-bits.rst19 hide them from the end user. We have more control of what we wanted to test and
26 in order to write our test routines that exercise and test the bios. This is
27 not possible in all cases. Lastly, test frameworks and routines are preferably
30 low level assembly machine language. Writing test routines in a low level
41 author's FOSDEM presentation <FOSDEM_>`__ on this bios-bits based test framework.
49 Description of the test framework
53 functional test that drives all this.
55 A brief description of the various test files follows.
73 This is the main python functional test script that generates a
75 test failures. This is the script one would be interested in if they wanted
[all …]
/qemu/tests/tcg/riscv64/
H A DMakefile.target5 TESTS += test-div
8 # Disable compressed instructions for test-noc
9 TESTS += test-noc
10 test-noc: LDFLAGS = -nostdlib -static
11 run-test-noc: QEMU_OPTS += -cpu rv64,c=false
13 TESTS += test-aes
14 run-test-aes: QEMU_OPTS += -cpu rv64,zk=on
16 # Test for fcvtmod
17 TESTS += test-fcvtmod
18 test-fcvtmod: CFLAGS += -march=rv64imafdc
[all …]

12345678910>>...72