/qemu/tests/tcg/s390x/ |
H A D | ex-relative-long.c | 5 struct test { struct 14 * Each test sets the MEM_IDXth element of the mem array to MEM and uses a argument 59 /* Test functions. */ 108 /* Test definitions. */ 124 static const struct test tests[] = { 132 const struct test *test; in main() local 138 test = &tests[i]; in main() 141 reg = test->func(REG, &cc); in main() 145 test->name, expected, actual); \ in main() 149 ASSERT_EQ(test->exp_reg, reg); in main() [all …]
|
/qemu/tests/unit/ |
H A D | test-io-channel-file.c | 2 * QEMU I/O channel file test 28 #define TEST_FILE "tests/test-io-channel-file.txt" 44 QIOChannelTest *test; in test_io_channel_file_helper() local 59 test = qio_channel_test_new(); in test_io_channel_file_helper() 60 qio_channel_test_run_writer(test, src); in test_io_channel_file_helper() 61 qio_channel_test_run_reader(test, dst); in test_io_channel_file_helper() 62 qio_channel_test_validate(test); in test_io_channel_file_helper() 109 QIOChannelTest *test; in test_io_channel_pipe() local 120 test = qio_channel_test_new(); in test_io_channel_pipe() 121 qio_channel_test_run_threads(test, async, src, dst); in test_io_channel_pipe() [all …]
|
H A D | test-io-channel-command.c | 2 * QEMU I/O channel command test 30 #define TEST_FIFO "test-io-channel-command.fifo" 37 g_autofree gchar *tmpdir = g_dir_make_tmp("qemu-test-io-channel.XXXXXX", NULL); in test_io_channel_command_fifo() 44 QIOChannelTest *test; in test_io_channel_command_fifo() local 58 test = qio_channel_test_new(); in test_io_channel_command_fifo() 59 qio_channel_test_run_threads(test, async, src, dst); in test_io_channel_command_fifo() 60 qio_channel_test_validate(test); in test_io_channel_command_fifo() 96 QIOChannelTest *test; in test_io_channel_command_echo() local 109 test = qio_channel_test_new(); in test_io_channel_command_echo() 110 qio_channel_test_run_threads(test, async, ioc, ioc); in test_io_channel_command_echo() [all …]
|
H A D | test-io-channel-tls.c | 2 * QEMU I/O channel TLS test 37 #define WORKDIR "tests/test-io-channel-tls-work/" 84 * and the test-crypto-tlscreds test already in test_tls_creds_create() 120 QIOChannelTest *test; in test_io_channel_tls() local 126 #define CLIENT_CERT_DIR "tests/test-io-channel-tls-client/" in test_io_channel_tls() 127 #define SERVER_CERT_DIR "tests/test-io-channel-tls-server/" in test_io_channel_tls() 190 /* Now the real part of the test, setup the sessions */ in test_io_channel_tls() 227 test = qio_channel_test_new(); in test_io_channel_tls() 228 qio_channel_test_run_threads(test, false, in test_io_channel_tls() 231 qio_channel_test_validate(test); in test_io_channel_tls() [all …]
|
/qemu/tests/qemu-iotests/ |
H A D | 084 | 4 # Test case for VDI header corruption; image too large, and too many blocks. 5 # Also simple test for creating dynamic and static VDI images. 68 echo "Test 1: Maximum size (512 TB - 128 MB):" 74 echo "Test 2: Size too large (512 TB - 128 MB + 64 kB)" 80 echo "Test 3: Size valid (64M), but Blocks In Image too small (63)" 90 echo "Test 4: Size valid (64M), but Blocks In Image exceeds max allowed" 99 echo "Test 5: Valid Image: 64MB, Blocks In Image 64, Block Size 1MB" 104 echo "Test 6: Block Size != 1MB; too small test (1MB - 1)" 108 echo "Test 7: Block Size != 1MB; too large test (1MB + 64KB)"
|
/qemu/tests/tcg/aarch64/gdbstub/ |
H A D | test-mte.py | 3 # Test GDB memory-tag commands that exercise the stubs for the qIsAddressTagged, 6 # any stub and so are not used in this test. 8 # The test consists in breaking just after a tag is set in a specific memory 12 # This is launched via tests/guest-debug/run-test.py 20 exit("This script must be launched via tests/guest-debug/run-test.py!") 31 p = arg_parser(prog="test-mte.py", description="TCG MTE tests.") 32 p.add_argument("--mode", help="Run test for QEMU system or user mode.", 54 # Test if we can check correctly that the allocation tag for the address 63 # Test allocation tag 'set and print' commands. Commands on logical 88 # Now test fill pattern by setting a whole page with a pattern. [all …]
|
/qemu/tests/docker/ |
H A D | run | 3 # Docker test runner 14 if test -n "$V"; then 23 if test -n "$J"; then 28 export TEST_DIR=/tmp/qemu-test 34 if test -n "$SHOW_ENV"; then 35 if test -f /packages.txt; then 53 if test -z "$DEBUG"; then 66 elif test -n "$DEBUG"; then
|
/qemu/tests/qapi-schema/ |
H A D | qapi-schema-test.json | 4 # This file is a stress test of supported qapi constructs that must 78 # Among other things, test that a name collision between branches does 101 # allocated types to test corner cases in the cleanup/dealloc visitor 197 # Smoke test on out-of-band and allow-preconfig-test 198 { 'command': 'test-flags-command', 'allow-oob': true, 'allow-preconfig': true } 230 # test that we correctly compile downstream extensions, as well as munge 232 # also test union and alternate with just one branch 251 # test 'if' condition handling 270 { 'command': 'test-if-union-cmd', 279 { 'command': 'test-if-alternate-cmd', [all …]
|
/qemu/tests/tcg/xtensa/ |
H A D | test_fp1.S | 60 test un_s label 66 test oeq_s label 70 test ueq_s label 74 test olt_s label 78 test ult_s label 82 test ole_s label 86 test ule_s label 99 test moveqz_s label 106 test movnez_s label 113 test movltz_s label [all …]
|
H A D | test_bi.S | 5 test beqi label 18 test bnei label 31 test blti label 48 test bgei label 67 test bltui label 86 test bgeui label
|
H A D | test_mmu.S | 46 test tlb_group label 84 test itlb_miss label 98 test dtlb_miss label 112 test itlb_multi_hit label 127 test dtlb_multi_hit label 144 test inst_fetch_privilege label 171 test load_store_privilege label 220 test cring_load_store_privilege label 250 test inst_fetch_prohibited label 286 test load_prohibited label [all …]
|
/qemu/tests/qtest/ |
H A D | qos-test.c | 117 /* The argument to run_one_test, which is the test function that is registered 119 * line (before it is modified by the test's "before" function), the remaining 120 * items are node names forming the path to the test node. 139 * Once the test is reached, its function is executed. 143 * that after execution they can be safely free'd. The test's 149 * the test, and the remaining elements represent the actual objects 153 * 1) @before test function as defined in the given QOSGraphTestOptions 157 * 4) start test 168 /* Before test */ in run_one_test() 171 test_arg = test_node->u.test.arg; in run_one_test() [all …]
|
H A D | tpm-tis-i2c-test.c | 2 * QTest testcases for TPM TIS on I2C (derived from TPM TIS test) 200 /* do not test locality 4 (hw only) */ in tpm_tis_i2c_test_check_access_reg() 225 * Test case for seizing access by a higher number locality 233 /* do not test locality 4 (hw only) */ in tpm_tis_i2c_test_check_access_reg_seize() 423 * Test case for getting access when higher number locality relinquishes access 431 /* do not test locality 4 (hw only) */ in tpm_tis_i2c_test_check_access_reg_release() 500 * Test case for transmitting packets 604 char *tmp_path = g_dir_make_tmp("qemu-tpm-tis-i2c-test.XXXXXX", NULL); in main() 606 TPMTestState test; in main() local 611 test.addr = g_new0(SocketAddress, 1); in main() [all …]
|
H A D | stm32l4x5_syscfg-test.c | 53 * Test that registers are initialized at the correct values in test_reset() 81 * Test that reserved bits stay at reset value in test_reserved_bits() 112 * Test that regular bits can be set and cleared in test_set_and_clear() 154 * Test that writing '1' doesn't set the bit in test_clear_by_writing_1() 163 * Test that set only bits stay can't be cleared in test_set_only_bits() 183 * Test that clear only bits stay can't be set in test_clear_only_bits() 195 * Test that GPIO rising lines result in an irq in test_interrupt() 218 /* Clean the test */ in test_interrupt() 228 * Test that syscfg irq sets the right exti irq in test_irq_pin_multiplexer() 239 /* Clean the test */ in test_irq_pin_multiplexer() [all …]
|
/qemu/tests/tcg/x86_64/ |
H A D | cmpxchg.c | 37 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()
|
/qemu/tests/data/acpi/ |
H A D | rebuild-expected-aml.sh | 4 # Rebuild expected AML files for acpi unit-test 17 if [ ! -e "tests/qtest/bios-tables-test" ]; then 18 echo "Test: bios-tables-test is required! Run make check before this script." 50 TEST_ACPI_REBUILD_AML=y QTEST_QEMU_BINARY=$qemu tests/qtest/bios-tables-test 55 …mma-separated changed AML files to ignore' ${SRC_PATH}/tests/qtest/bios-tables-test-allowed-diff.h` 57 …separated changed AML files to ignore */' > ${SRC_PATH}/tests/qtest/bios-tables-test-allowed-diff.h 64 echo "Note! Please follow the process documented in ${SRC_PATH}/tests/qtest/bios-tables-test.c"
|
/qemu/tests/multiboot/ |
H A D | run_test.sh | 29 printf %b "\n\n=== Running test case: $kernel $* ===\n\n" >> test.log 35 -chardev file,path=test.out,id=stdio \ 37 "$@" >> test.log 2>&1 40 cat test.out >> test.log 80 echo > test.log 84 if ! diff $t.out test.log > /dev/null 2>&1; then 86 diff -u $t.out test.log
|
/qemu/tests/functional/ |
H A D | test_netdev_ethtool.py | 5 # This test leverages ethtool's --test sequence to validate network 19 # Fetch assets from the netdev-ethtool subdir of my shared test 41 # any additional kernel tweaks for the test 60 "The test result is PASS", 61 "The test result is FAIL", 73 # the pattern test with: 75 # pattern test failed (reg 0x00178): got 0x00000000 expected 0x00005A5A
|
/qemu/.gitlab-ci.d/ |
H A D | crossbuild-template.yml | 36 - section_start test "Running tests" 37 - if test -n "$MAKE_CHECK_ARGS"; 41 - section_end test 82 - section_start test "Running tests" 83 - if test -n "$MAKE_CHECK_ARGS"; 87 - section_end test 116 - section_start test "Running tests" 117 - if test -n "$MAKE_CHECK_ARGS"; 121 - section_end test 124 # template to their extends to save the build logs and test results
|
H A D | buildtest-template.yml | 31 - if test -n "$LD_JOBS"; 39 - section_start test "Running tests" 40 - if test -n "$MAKE_CHECK_ARGS"; 44 - section_end test 64 stage: test 79 - section_start test "Running tests" 82 - section_end test 108 - build/tests/results/latest/test-results 139 - if test -n "$LD_JOBS";
|
/qemu/scripts/simplebench/ |
H A D | bench-backup.py | 50 for t in args.test: 62 source = drv_qcow2(drv_file(dirs[src] + '/test-source.qcow2')) 64 source = drv_file(dirs[src] + '/test-source') 77 fname = dirs[dst] + '/test-target' 190 Directories, each containing "test-source" and/or 191 "test-target" files, raw images to used in 198 (but you cannot create test nbd:nbd).''') 199 p.add_argument('--test', nargs='+', help='''\ 205 lazy_refcounts for each test run''', action='store_true') 207 Use test-source.qcow2 images as sources instead of [all …]
|
/qemu/tests/data/ |
H A D | test-qga-os-release | 1 ID=qemu-ga-test 3 PRETTY_NAME="QEMU Guest Agent test" 4 VERSION="Test 1" 6 VARIANT="Unit test \"\'\$\`\\ and \\\\ etc." 7 VARIANT_ID=unit-test
|
/qemu/tests/tcg/multiarch/gdbstub/ |
H A D | interrupt.py | 3 # Test some of the system debug features with the multiarch memory 4 # test. It is a port of the original vmlinux focused test case but 5 # using the "memory" test instead. 7 # This is launched via tests/guest-debug/run-test.py 20 # Switch to the thread we're going to be running the test in. 47 Test if interrupting the code always lands us on the same thread when
|
/qemu/docs/devel/testing/ |
H A D | blkverify.rst | 7 This document describes how to use the ``blkverify`` protocol to test that a block 10 It is difficult to test and debug block drivers against real guests. Often 22 The ``blkverify`` protocol has two child block devices, the "test" device and the 27 contents to the "test" image. The idea is that the "raw" device will handle 29 reference for comparison against the "test" device. 49 And test.img is corrupt, its first sector is zeroed when it shouldn't be:: 51 $ ./qemu-io -c 'read -v 0 512' test.img 68 $ ./qemu-img create -f qcow2 test.qcow2 16G 70 -drive file=blkverify:raw.img:test.qcow2
|
/qemu/tests/qemu-iotests/tests/ |
H A D | commit-zero-blocks.out | 29 === Running QEMU Live Commit Test === 34 'arguments': { 'device': 'test', 37 …roseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "test"}} 38 …roseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "test"}} 40 …roseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "waiting", "id": "test"}} 41 …roseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "pending", "id": "test"}} 42 …econds": TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "test", "len": 1048576, "… 43 …seconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "test"}} 44 …microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "test"}}
|