/qemu/tests/functional/qemu_test/ |
H A D | decorators.py | 14 Decorator to skip execution of a test if the list 31 Decorator to skip execution of a test if the current 40 'running on an OS (%s) that is not able to run this test' % 44 Decorator to skip execution of a test if the current 64 but this should not be done for new test. 72 bug_url = "FIXME: reproduce flaky test and file bug report or remove" 74 f'Test is unstable: {bug_url}') 87 'Test runs untrusted code / processes untrusted data') 101 'Test requires large host storage space') 115 'Test has a very long runtime and might time out') [all …]
|
/qemu/tests/fp/ |
H A D | meson.build | 12 # the testnames without their fp-test- prefix. 58 'fp-test', 59 ['fp-test.c', '../../fpu/softfloat.c'], 112 # The full test suite can take a bit of time, default to a quick run 120 test('fp-test-' + k, fptest, 127 test('fp-test-' + k, fptest, 135 test('fp-test-mulAdd', fptest, 150 'fp-test-log2', 151 ['fp-test-log2.c', '../../fpu/softfloat.c'], 155 test('fp-test-log2', fptestlog2,
|
/qemu/tests/tcg/multiarch/system/ |
H A D | Makefile.softmmu-target | 6 # architecture to add to the test dependencies and deal with the 18 GDB_SCRIPT=$(SRC_PATH)/tests/guest-debug/run-test.py 21 $(call run-test, $@, $(GDB_SCRIPT) \ 27 --bin $< --test $(MULTIARCH_SRC)/gdbstub/memory.py, \ 30 $(call run-test, $@, $(GDB_SCRIPT) \ 36 --bin $< --test $(MULTIARCH_SRC)/gdbstub/interrupt.py, \ 39 $(call run-test, $@, $(GDB_SCRIPT) \ 53 $(call run-test, $@, $(GDB_SCRIPT) \ 59 --bin $< --test $(MULTIARCH_SRC)/gdbstub/registers.py, \ 63 …$(call skip-test, "gdbstub test $*", "need working gdb with $(patsubst -%,,$(TARGET_NAME)) support… [all …]
|
H A D | validate-memory-counts.py | 20 Test data start: 0x40214000 21 Test data end: 0x40218001 22 Test data read: 2522280 23 Test data write: 262111 34 if line.startswith("Test data start:"): 36 elif line.startswith("Test data end:"): 38 elif line.startswith("Test data read:"): 40 elif line.startswith("Test data write:"): 55 And extract the ranges that match test data start and end and 91 help="The output from the test itself") [all …]
|
/qemu/scripts/simplebench/ |
H A D | img_bench_templater.py | 3 # Process img-bench test templates 33 test = templater.gen(env['data'], case['data']) 35 p = subprocess.run(test, shell=True, stdout=subprocess.PIPE, 51 Usage: img_bench_templater.py < path/to/test-template.sh 53 This script generates performance tests from a test template (example below), 56 (whose result is parsed to get the test instance’s result). 58 Use the following syntax in the template to create the various different test 61 column templating: {var1|var2|...} - test will use different values in 62 different columns. You may use several {} constructions in the test, in this 65 row templating: [var1|var2|...] - similar thing to define rows (test-cases) [all …]
|
/qemu/tests/tcg/aarch64/ |
H A D | Makefile.softmmu-target | 60 # console test is manual only 64 $(call skip-test, $<, "MANUAL ONLY") 67 $(call skip-test, $<, "MANUAL ONLY") 69 # vtimer test needs EL2 74 # Simple Record/Replay Test 77 $(call run-test, $<, \ 85 $(call run-test, $<, \ 95 # This test explicitly checks the output of the pauth operation so we 100 $(call skip-test, "BUILD of $@", "missing compiler support") 102 $(call skip-test, "RUN of pauth-3", "not built") [all …]
|
/qemu/tests/guest-debug/ |
H A D | run-test.py | 3 # Run a gdbstub test case 23 parser = argparse.ArgumentParser(description="A gdbstub test runner") 24 parser.add_argument("--qemu", help="Qemu binary for test", 26 parser.add_argument("--qargs", help="Qemu arguments for test") 29 parser.add_argument("--test", help="GDB test script") 31 help="Additional args for GDB test script. " 62 print("We need gdb to run the test") 95 # Now launch gdb with our test and collect the result 107 # finally the test script itself 108 if args.test: [all …]
|
/qemu/tests/functional/acpi-bits/bits-tests/ |
H A D | testacpi.py2 | 71 …testsuite.test("{} Processor declaration ProcId = _MAT ProcId".format(cpupath), processor.ProcId =… 75 …if testsuite.test("{} with local APIC in _MAT has local APIC in MADT".format(cpupath), processor.P… 76 …testsuite.test("{} ApicId derived using Processor declaration ProcId = _MAT ApicId".format(cpupath… 82 … if testsuite.test("{} with x2Apic in _MAT has _UID".format(cpupath), uid is not None): 83 testsuite.test("{}._UID = _MAT UID".format(cpupath), uid == subtable.uid) 86 …if testsuite.test("{} with _MAT x2Apic has x2Apic in MADT".format(cpupath), subtable.uid in uid_x2… 87 …testsuite.test("{} x2ApicId derived from MADT using UID = _MAT x2ApicId".format(cpupath), uid_x2ap… 94 …testsuite.test("_PSS must be identical for all CPUs", len(uniques) <= 1 or (len(uniques) == 2 and … 96 if not testsuite.test("_PSS must exist", pss is not None): 101 if not testsuite.test("_PSS must not be empty", pss.pstates): [all …]
|
/qemu/tests/tcg/hexagon/ |
H A D | test_call.S | 2 * Purpose: test function calls and duplex instructions. 3 * The string "Hello there, I'm a test string!" with the first letter replaced 11 .globl test symbol 12 test: label 19 .size test, .Ltmp0-test 26 call test 62 .string "Hello there, I'm a test string!\n"
|
/qemu/tests/tcg/xtensa/ |
H A D | test_quo.S | 7 test quou_pp label 20 test quou_np label 33 test quou_pn label 46 test quou_nn label 59 test quou_exc label 74 test quos_pp label 87 test quos_np label 100 test quos_pn label 113 test quos_nn label 126 test quos_over label [all …]
|
H A D | test_rem.S | 7 test remu_pp label 20 test remu_np label 33 test remu_pn label 46 test remu_nn label 59 test remu_exc label 74 test rems_pp label 87 test rems_np label 100 test rems_pn label 113 test rems_nn label 126 test rems_over label [all …]
|
H A D | test_rst0.S | 5 test and label 18 test or label 31 test xor label 44 test add label 59 test addx2 label 72 test addx4 label 85 test addx8 label 100 test sub label 115 test subx2 label 128 test subx4 label [all …]
|
H A D | test_loop.S | 7 test loop label 16 test loop0 label 25 test loop_jump label 35 test loop_branch label 45 test loop_manual label 62 test loop_excm label 79 test lbeg_invalidation label 104 test lend_invalidation label 129 test loopnez label 144 test loopgtz label
|
H A D | test_cache.S | 18 test prefetch label 63 test dpfl_tlb_miss label 70 test dhwb_tlb_miss label 74 test dhwbi_tlb_miss label 79 test dhi_tlb_miss label 84 test dhu_tlb_miss label 92 test ipfl_tlb_miss label 96 test ihu_tlb_miss label 101 test ihi_tlb_miss label
|
/qemu/tests/qemu-iotests/ |
H A D | 149.out | 8 # Write test pattern 0xa7 14 # Write test pattern 0x13 22 # Read test pattern 0xa7 27 # Read test pattern 0x13 32 # Write test pattern 0x91 37 # Write test pattern 0x5e 44 # Read test pattern 0x91 50 # Read test pattern 0x5e 66 # Write test pattern 0xa7 72 # Write test pattern 0x13 [all …]
|
H A D | 084.out | 20 Test 1: Maximum size (512 TB - 128 MB): 26 Test 2: Size too large (512 TB - 128 MB + 64 kB) 29 Test 3: Size valid (64M), but Blocks In Image too small (63) 32 Test 4: Size valid (64M), but Blocks In Image exceeds max allowed 35 Test 5: Valid Image: 64MB, Blocks In Image 64, Block Size 1MB 41 Test 6: Block Size != 1MB; too small test (1MB - 1) 44 Test 7: Block Size != 1MB; too large test (1MB + 64KB)
|
H A D | 095.out | 11 === Running QEMU Live Commit Test === 16 'arguments': { 'device': 'test', 18 …roseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "test"}} 19 …roseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "test"}} 21 …roseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "waiting", "id": "test"}} 22 …roseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "pending", "id": "test"}} 23 …econds": TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "test", "len": 104857600,… 24 …seconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "test"}} 25 …microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "test"}}
|
/qemu/tests/tcg/s390x/ |
H A D | ex-branch.c | 8 struct test { struct 15 #define LINK_64(test) ((long)test ## _exp_link) argument 16 #define LINK_NONE(test) -1L argument 93 /* Test functions. */ 96 /* Test definitions. */ 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() [all …]
|
/qemu/docs/specs/ |
H A D | pci-testdev.rst | 2 QEMU PCI test device 17 uint8_t test; /* write-only, starts a given test number */ 19 * read-only, type and width of access for a given test. 21 * any other value if test not supported on this BAR 24 uint32_t offset; /* read-only, offset in this BAR for a given test */ 25 uint32_t data; /* read-only, data to use for a given test */ 33 tests with higher numbers. In this way a guest can scan test numbers until it 38 can be used to test whether guests handle PCI BARs of a specific
|
/qemu/tests/docker/ |
H A D | Makefile.include | 3 .PHONY: docker docker-help docker-test docker-clean docker-image docker-qemu-src 117 # These images may be good enough for building tests but not for test builds 127 __TESTS := $(notdir $(shell find $(SRC_PATH)/tests/docker/ -name 'test-*' -type f)) 130 # Expand all the pre-requistes for each docker image and test combination 134 $(eval docker-$t@$i: docker-image-$i; @$(MAKE) docker-run TEST=$t IMAGE=qemu/$i) \ 148 @echo ' docker-all-tests: Run all image/test combinations.' 149 @echo ' docker-TEST: Run "TEST" on all image combinations.' 151 @echo ' docker-TEST@IMAGE: Run "TEST" in container "IMAGE".' 152 @echo ' Note: "TEST" is one of the listed test name,' 157 @echo ' docker-run: For manually running a "TEST" with "IMAGE".' [all …]
|
/qemu/tests/qtest/libqos/ |
H A D | qgraph.h | 35 /* Constructor for drivers, machines and test */ 47 /* Test options functions */ 84 * Test options to be passed to the test functions. 85 * @edge: edge arguments that will be used by test. 86 * Note that test *does not* use edge_name, 88 * data arg for its test function. 90 * Otherwise pass it to the test function. 91 * @before: executed before the test. Used to add 93 * and modify the argument to the test function. 94 * @subprocess: run the test in a subprocess. [all …]
|
/qemu/tests/qtest/ |
H A D | tpm-crb-test.c | 143 char *args, *tmp_path = g_dir_make_tmp("qemu-tpm-crb-test.XXXXXX", NULL); in main() 145 TPMTestState test; in main() local 150 test.addr = g_new0(SocketAddress, 1); in main() 151 test.addr->type = SOCKET_ADDRESS_TYPE_UNIX; in main() 152 test.addr->u.q_unix.path = g_build_filename(tmp_path, "sock", NULL); in main() 153 g_mutex_init(&test.data_mutex); in main() 154 g_cond_init(&test.data_cond); in main() 155 test.data_cond_signal = false; in main() 156 test.tpm_version = TPM_VERSION_2_0; in main() 158 thread = g_thread_new(NULL, tpm_emu_ctrl_thread, &test); in main() [all …]
|
H A D | virtio-net-test.c | 38 char test[] = "TEST"; in rx_test() local 40 int len = htonl(sizeof(test)); in rx_test() 46 .iov_base = test, in rx_test() 47 .iov_len = sizeof(test), in rx_test() 57 ret = iov_send(socket, iov, 2, 0, sizeof(len) + sizeof(test)); in rx_test() 58 g_assert_cmpint(ret, ==, sizeof(test) + sizeof(len)); in rx_test() 62 memread(req_addr + VNET_HDR_SIZE, buffer, sizeof(test)); in rx_test() 63 g_assert_cmpstr(buffer, ==, "TEST"); in rx_test() 80 memwrite(req_addr + VNET_HDR_SIZE, "TEST", 4); in tx_test() 95 g_assert_cmpstr(buffer, ==, "TEST"); in tx_test() [all …]
|
/qemu/tests/tcg/arm/ |
H A D | Makefile.softmmu-target | 11 # Specific Test Rules 13 test-armv6m-undef: test-armv6m-undef.S 19 run-test-armv6m-undef: QEMU_OPTS=-semihosting-config enable=on,target=native,chardev=output -M micr… 21 ARM_TESTS+=test-armv6m-undef 51 # console test is manual only 55 $(call skip-test, $<, "MANUAL ONLY") 58 $(call skip-test, $<, "MANUAL ONLY") 60 # Simple Record/Replay Test 63 $(call run-test, $<, \ 71 $(call run-test, $<, \
|
/qemu/docs/system/devices/ |
H A D | igb.rst | 10 This implementation is expected to be useful to test SR-IOV networking without 16 This igb implementation was tested with Linux Test Project [2]_ and Windows HLK 17 [3]_ during the initial development. Later it was also tested with DPDK Test 57 meson test qtest-x86_64/qos-test 59 ethtool can test register accesses, interrupts, etc. It is automated as an 60 functional test and can be run from the build directory with the following 65 pyvenv/bin/meson test --suite thorough func-x86_64-netdev_ethtool 71 .. [2] https://github.com/linux-test-project/ltp 72 .. [3] https://learn.microsoft.com/en-us/windows-hardware/test/hlk/
|