Home
last modified time | relevance | path

Searched +full:cdrom +full:- +full:test (Results 1 – 25 of 35) sorted by relevance

12

/qemu/tests/qtest/
H A Dcdrom-test.c2 * Various tests for emulated CD-ROM drives.
10 * or later. See the COPYING file in the top-level directory.
15 #include "boot-sector.h"
18 static char isoimage[] = "cdrom-boot-iso-XXXXXX";
23 gint exit_status = -1; in exec_xorrisofs()
30 return -ENOENT; in exec_xorrisofs()
42 char srcdir[] = "cdrom-test-dir-XXXXXX"; in prepare_image()
44 int ifh, ret = -1; in prepare_image()
46 "xorrisofs", "-quiet", "-l", "-no-emul-boot", in prepare_image()
47 "-b", NULL, "-o", isoimagepath, srcdir, NULL in prepare_image()
[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 Dide-test.c2 * IDE test cases
30 #include "libqos/pci-pc.h"
31 #include "libqos/malloc-pc.h"
132 g_autofree char *full_fmt = g_strdup_printf("-machine pc %s", cmdline_fmt); in ide_test_start()
199 /* 2-byte range, 6-byte LBA */ in trim_range_le()
224 /* Assuming we only test data reads w/ ATAPI, otherwise we need to know in send_dma_request()
313 "-drive file=%s,if=ide,cache=writeback,format=raw " in test_bmdma_setup()
314 "-global ide-hd.serial=%s -global ide-hd.ver=%s", in test_bmdma_setup()
406 const uint64_t bad_range = trim_range_le(TEST_IMAGE_SIZE / 512 - 1, 2); in test_bmdma_trim()
451 * This test is developed according to the Programming Interface for
[all …]
H A Dahci-test.c2 * AHCI test cases
29 #include "libqos/libqos-pc.h"
31 #include "libqos/pci-pc.h"
34 #include "qemu/host-utils.h"
39 /* Test images sizes in MB */
72 while (bytes--) { in string_bswap16()
88 ahci_fingerprint = qpci_config_readl(ahci->dev, PCI_VENDOR_ID); in verify_state()
89 g_assert_cmphex(ahci_fingerprint, ==, ahci->fingerprint); in verify_state()
92 if (!ahci->enabled) { in verify_state()
96 hba_base = (uint64_t)qpci_config_readl(ahci->dev, PCI_BASE_ADDRESS_5); in verify_state()
[all …]
H A Dbios-tables-test.c2 * Boot order test cases.
10 * See the COPYING file in the top-level directory.
17 * 2. list any changed files in tests/qtest/bios-tables-test-allowed-diff.h
20 * Contributor or ACPI Maintainer (steps 4-7 need to be redone to resolve conflicts
23 * After 1-3 above tests will pass but ignore differences with the expected files.
24 * You will also notice that tests/qtest/bios-tables-test-allowed-diff.h lists
31 * output. If not - disassemble them yourself in any way you like.
32 * Look at the differences - make sure they make sense and match what the
38 * $(SRC_PATH)/tests/data/acpi/rebuild-expected-aml.sh
48 * tests/qtest/bios-tables-test-allowed-diff.h is empty - this will ensure
[all …]
H A Dvirtio-scsi-test.c8 * See the COPYING file in the top-level directory.
12 #include "libqtest-single.h"
15 #include "libqos/libqos-pc.h"
16 #include "libqos/libqos-spapr.h"
18 #include "libqos/virtio-pci.h"
19 #include "standard-headers/linux/virtio_ids.h"
20 #include "standard-headers/linux/virtio_pci.h"
21 #include "standard-headers/linux/virtio_scsi.h"
22 #include "libqos/virtio-scsi.h"
43 for (i = 0; i < vs->num_queues + 2; i++) { in qvirtio_scsi_pci_free()
[all …]
/qemu/tests/functional/
H A Dtest_netdev_ethtool.py5 # This test leverages ethtool's --test sequence to validate network
8 # SPDX-License-Identifier: GPL-2.0-or-later
19 # Fetch assets from the netdev-ethtool subdir of my shared test
22 'download?path=%2Fnetdev-ethtool&files=')
41 # any additional kernel tweaks for the test
46 append += ' init=/usr/sbin/ethtool -- -t eth1 offline'
48 # add the rootfs via a readonly cdrom image
49 drive = f"file={rootfs},if=ide,index=0,media=cdrom"
51 self.vm.add_args('-kernel', kernel,
52 '-append', append,
[all …]
H A Dtest_ppc_40p.py3 # Functional test that boots a PReP/40p machine and checks its serial console.
5 # Copyright (c) Philippe Mathieu-Daudé <f4bug@amsat.org>
8 # later. See the COPYING file in the top-level directory.
22 '7020-40p/P12H0456.IMG'),
25 ('https://archive.netbsd.org/pub/NetBSD-archive/'
26 'NetBSD-4.0/prep/installation/floppy/generic_com0.fs'),
29 ('https://archive.netbsd.org/pub/NetBSD-archive/'
30 'NetBSD-7.1.2/iso/NetBSD-7.1.2-prep.iso'),
36 # U.S. Government Users Restricted Rights - Use, duplication or disclosure
46 self.vm.add_args('-bios', bios_path,
[all …]
H A Dtest_aarch64_sbsaref_alpine.py3 # Functional test that boots a kernel and checks the console
5 # Copyright (c) 2023-2024 Linaro Ltd.
8 # Philippe Mathieu-Daudé
11 # SPDX-License-Identifier: GPL-2.0-or-later
21 ('https://dl-cdn.alpinelinux.org/'
22 'alpine/v3.17/releases/aarch64/alpine-standard-3.17.2-aarch64.iso'),
27 # Other test profiles should use more minimal boots
35 "-drive", f"file={iso_path},media=cdrom,format=raw",
38 self.vm.add_args("-cpu", cpu)
44 self.boot_alpine_linux("cortex-a57")
[all …]
H A Dtest_alpha_replay.py3 # Replay test that boots a Linux kernel on an Alpha machine
6 # SPDX-License-Identifier: GPL-2.0-or-later
15 ('http://archive.debian.org/debian/dists/lenny/main/installer-alpha/'
16 '20090123lenny10/images/cdrom/vmlinuz'),
25 args=('-nodefaults', ))
H A Dtest_alpha_clipper.py3 # Functional test that boots a Linux kernel on an Alpha Clipper machine
6 # SPDX-License-Identifier: GPL-2.0-or-later
15 'installer-alpha/20090123lenny10/images/cdrom/vmlinuz'),
26 self.vm.add_args('-nodefaults',
27 '-kernel', uncompressed_kernel,
28 '-append', kernel_command_line)
H A Dtest_acpi_bits.py23 # pylint: disable=invalid-name
24 # pylint: disable=consider-using-f-string
29 This test uses a fork of the upstream bits and has numerous fixes
31 https://gitlab.com/qemu-project/biosbits-bits .
49 # default timeout of 120 secs is sometimes not enough for bits test.
52 class QEMUBitsMachine(QEMUMachine): # pylint: disable=too-few-public-methods
54 A QEMU VM, with isa-debugcon enabled and bits iso passed
55 using -cdrom to QEMU commandline.
64 debugcon_log: str = "debugcon-log.txt",
67 # pylint: disable=too-many-arguments
[all …]
H A Dtest_aarch64_virt.py3 # Functional test that boots a various Linux systems and checks the
11 # SPDX-License-Identifier: GPL-2.0-or-later
26 failure_message='Kernel panic - not syncing',
30 ('https://dl-cdn.alpinelinux.org/'
31 'alpine/v3.17/releases/aarch64/alpine-standard-3.17.2-aarch64.iso'),
36 # Other test profiles should use more minimal boots
44 self.vm.add_args("-accel", "tcg")
45 self.vm.add_args("-cpu", "max,pauth-impdef=on")
46 self.vm.add_args("-machine",
50 "gic-version=max,iommu=smmuv3")
[all …]
/qemu/docs/system/
H A Dqemu-block-drivers.rst.inc5 any of the tools (like ``qemu-img``). This includes the preferred formats
10 ``qemu-img create`` and ``qemu-img convert`` using the ``-o`` option.
13 .. program:: image-formats
20 space. Use ``qemu-img info`` to know the real size used by the
21 image or ``ls -ls`` on Unix/Linux.
34 .. program:: image-formats
51 zero clusters, which allow efficient copy-on-read for sparse images.
69 use to unlock the LUKS key slot is given by the ``encrypt.key-secret``
73 If this is set to ``aes``, the image is encrypted with 128-bit AES-CBC.
74 The encryption key is given by the ``encrypt.key-secret`` parameter.
[all …]
H A Ddevice-url-syntax.rst.inc8 as images for the guest storage. Both disk and cdrom images are
12 "iscsi://<target-ip>[:<port>]/<target-iqn>/<lun>"
14 By default qemu will use the iSCSI initiator-name
15 'iqn.2008-11.org.linux-kvm[:<name>]' but this can also be set from
26 .. parsed-literal::
28 |qemu_system| -iscsi initiator-name=iqn.2001-04.com.example:my-initiator \\
29 -cdrom iscsi://192.0.2.1/iqn.2001-04.com.example/2 \\
30 -drive file=iscsi://192.0.2.1/iqn.2001-04.com.example/1
34 .. parsed-literal::
36 |qemu_system| -drive file=iscsi://user%password@192.0.2.1/iqn.2001-04.com.example/1
[all …]
/qemu/tests/qemu-iotests/
H A D1404 # Test case for ejecting a BlockBackend with an NBD server attached to it
38 rm -f "$SOCK_DIR/nbd"
53 $QEMU_IO -c 'write -P 42 0 64k' "$TEST_IMG" | _filter_qemu_io
55 if test "$IMGOPTSSYNTAX" = "true"
57 SYSEMU_DRIVE_ARG=if=none,media=cdrom,id=drv,"$TEST_IMG"
59 SYSEMU_DRIVE_ARG=if=none,media=cdrom,id=drv,file="$TEST_IMG",driver=$IMGFMT
63 _launch_qemu -drive $SYSEMU_DRIVE_ARG \
71 "{ 'execute': 'nbd-server-start',
77 "{ 'execute': 'nbd-server-add',
81 $QEMU_IO_PROG -f raw -r -c 'read -P 42 0 64k' \
[all …]
H A D1864 # Test 'info block' with all kinds of configurations
42 _require_drivers null-co
43 _require_devices virtio-scsi-pci
54 if ! test -t 0; then
60 ) | $QEMU -S -display none -device virtio-scsi-pci -monitor stdio "$@" 2>&1
75 removable="floppy ide-cd scsi-cd"
76 fixed="ide-hd scsi-hd virtio-blk-pci"
83 check_info_block -device $dev
84 check_info_block -device $dev,id=qdev_id
88 echo "=== -blockdev/-device=<node-name> ==="
[all …]
H A D0514 # Test command line configuration of block devices and driver-specific options
42 # A compat=0.10 image is created in this test which does not support anything
57 if ! test -t 0; then
63 ) | $QEMU -nographic -monitor stdio -serial none "$@"
79 _make_test_img -b "$TEST_IMG.base" -F $IMGFMT $size
85 run_qemu -drive file="$TEST_IMG",format=qcow2,unknown_opt=,if=none,id=$device_id
86 run_qemu -drive file="$TEST_IMG",format=qcow2,unknown_opt=on,if=none,id=$device_id
87 run_qemu -drive file="$TEST_IMG",format=qcow2,unknown_opt=1234,if=none,id=$device_id
88 run_qemu -drive file="$TEST_IMG",format=qcow2,unknown_opt=foo,if=none,id=$device_id
94 run_qemu -drive file="$TEST_IMG",format=qcow2,file.unknown_opt=
[all …]
H A D0554 # Tests for drive-backup and blockdev-backup
29 test_img = os.path.join(iotests.test_dir, 'test.img')
31 blockdev_target_img = os.path.join(iotests.test_dir, 'blockdev-target.img')
36 qemu_img('create', '-f', iotests.imgfmt, test_img, str(image_len))
37 qemu_io('-f', iotests.imgfmt, '-c', 'write -P0x11 0 64k', test_img)
38 qemu_io('-f', iotests.imgfmt, '-c', 'write -P0x00 64k 128k', test_img)
39 qemu_io('-f', iotests.imgfmt, '-c', 'write -P0x22 162k 32k', test_img)
40 qemu_io('-f', iotests.imgfmt, '-c', 'write -P0xd5 1M 32k', test_img)
41 qemu_io('-f', iotests.imgfmt, '-c', 'write -P0xdc 32M 124k', test_img)
42 qemu_io('-f', iotests.imgfmt, '-c', 'write -P0x33 67043328 64k', test_img)
[all …]
H A D1184 # Test case for media change monitor commands
33 return 'ide-cd'
37 return 'scsi-cd'
53 if event['data']['tray-open'] == False:
77 self.vm.cmd('blockdev-change-medium',
84 result = self.vm.qmp('query-block')
94 result = self.vm.qmp('query-block')
104 result = self.vm.qmp('query-block')
109 self.vm.cmd('blockdev-change-medium', id=self.device_name,
114 result = self.vm.qmp('query-block')
[all …]
H A D04130 target_backing_img = os.path.join(iotests.test_dir, 'target-backing.img')
31 test_img = os.path.join(iotests.test_dir, 'test.img')
44 qmp_cmd = 'drive-mirror'
49 qemu_img('create', '-f', iotests.imgfmt,
50 '-o', 'backing_file=%s' % backing_img, '-F', 'raw', test_img)
51 self.vm = iotests.VM().add_drive(test_img, "node-name=top,backing.node-name=base")
53 self.vm.add_drive(None, 'media=cdrom', 'ide')
72 result = self.vm.qmp('query-block')
85 result = self.vm.qmp('query-block')
95 result = self.vm.qmp('query-block')
[all …]
/qemu/docs/devel/testing/
H A Dblkverify.rst5 ------------
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
20 ------------
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.
36 -------
40 $ ./qemu-io -c 'read -v 0 512' raw.img
49 And test.img is corrupt, its first sector is zeroed when it shouldn't be::
[all …]
/qemu/.gitlab-ci.d/
H A Dbuildtest.yml2 - local: '/.gitlab-ci.d/buildtest-template.yml'
4 build-system-alpine:
6 - .native_build_job_template
7 - .native_build_artifact_template
9 - job: amd64-alpine-container
12 TARGETS: avr-softmmu loongarch64-softmmu mips64-softmmu mipsel-softmmu
13 MAKE_CHECK_ARGS: check-build
14 CONFIGURE_ARGS: --enable-docs --enable-trace-backends=log,simple,syslog
16 check-system-alpine:
19 - job: build-system-alpine
[all …]
/qemu/tests/vm/
H A Dopenbsd5 # Copyright 2017-2019 Red Hat Inc.
12 # the COPYING file in the top-level directory.
40 "gettext-tools",
43 "libusb1--",
66 set -e;
67 rm -rf /home/qemu/qemu-test.*
68 cd $(mktemp -d /home/qemu/qemu-test.XXXXXX);
70 tar -xf /dev/rsd1c;
72 ../src/configure --cc=cc --extra-cflags=-I/usr/local/include \
73 --extra-ldflags=-L/usr/local/lib {configure_opts};
[all …]
H A Dnetbsd5 # Copyright 2017-2019 Red Hat Inc.
12 # the COPYING file in the top-level directory.
25 link = "https://cdn.netbsd.org/pub/NetBSD/NetBSD-9.3/images/NetBSD-9.3-amd64.iso"
30 "git-base",
34 "ninja-build",
40 "gettext-tools",
66 set -e;
67 rm -rf /home/qemu/qemu-test.*
68 cd $(mktemp -d /home/qemu/qemu-test.XXXXXX);
70 tar -xf /dev/rld1a;
[all …]

12