mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-07 20:27:23 +00:00
tests: Clean up HPT tests
Give them better names and remove some redundancy. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
3dd1eb3b26
commit
e6f36ae435
@ -12,7 +12,6 @@ QEMU_AUDIO_DRV=none \
|
||||
-smp 1,sockets=1,cores=1,threads=1 \
|
||||
-uuid 1ccfd97d-5eb4-478a-bbe6-88d254c16db7 \
|
||||
-nographic \
|
||||
-nodefconfig \
|
||||
-nodefaults \
|
||||
-chardev socket,id=charmonitor,path=/tmp/lib/domain--1-guest/monitor.sock,\
|
||||
server,nowait \
|
@ -7,7 +7,7 @@
|
||||
<type arch='x86_64' machine='pc'>hvm</type>
|
||||
</os>
|
||||
<features>
|
||||
<!-- HPT resizing can't be enabled for non-pSeries guests -->
|
||||
<!-- pSeries features can't be enabled for non-pSeries guests -->
|
||||
<hpt resizing='enabled'/>
|
||||
</features>
|
||||
<devices>
|
@ -1,19 +0,0 @@
|
||||
<domain type='qemu'>
|
||||
<name>guest</name>
|
||||
<uuid>1ccfd97d-5eb4-478a-bbe6-88d254c16db7</uuid>
|
||||
<memory unit='KiB'>524288</memory>
|
||||
<vcpu placement='static'>1</vcpu>
|
||||
<os>
|
||||
<type arch='ppc64' machine='pseries'>hvm</type>
|
||||
</os>
|
||||
<features>
|
||||
<!-- Explicitly enable HPT resizing. The guest will not start
|
||||
at all unless HPT resizing can be arranged -->
|
||||
<hpt resizing='required'/>
|
||||
</features>
|
||||
<devices>
|
||||
<emulator>/usr/bin/qemu-system-ppc64</emulator>
|
||||
<controller type='usb' model='none'/>
|
||||
<memballoon model='none'/>
|
||||
</devices>
|
||||
</domain>
|
@ -1895,17 +1895,12 @@ mymain(void)
|
||||
QEMU_CAPS_VIRTIO_SCSI,
|
||||
QEMU_CAPS_DEVICE_VFIO_PCI);
|
||||
|
||||
DO_TEST("pseries-hpt-resizing",
|
||||
QEMU_CAPS_NODEFCONFIG,
|
||||
DO_TEST("pseries-features-hpt",
|
||||
QEMU_CAPS_MACHINE_OPT,
|
||||
QEMU_CAPS_MACHINE_PSERIES_RESIZE_HPT);
|
||||
DO_TEST_FAILURE("pseries-hpt-resizing",
|
||||
QEMU_CAPS_NODEFCONFIG,
|
||||
DO_TEST_FAILURE("pseries-features-hpt",
|
||||
QEMU_CAPS_MACHINE_OPT);
|
||||
DO_TEST_PARSE_ERROR("pseries-hpt-resizing-invalid-machine",
|
||||
QEMU_CAPS_NODEFCONFIG,
|
||||
QEMU_CAPS_MACHINE_OPT,
|
||||
QEMU_CAPS_MACHINE_PSERIES_RESIZE_HPT);
|
||||
DO_TEST_PARSE_ERROR("pseries-features-invalid-machine", NONE);
|
||||
|
||||
DO_TEST("pseries-serial-native",
|
||||
QEMU_CAPS_NODEFCONFIG,
|
||||
|
1
tests/qemuxml2xmloutdata/pseries-features-hpt.xml
Symbolic link
1
tests/qemuxml2xmloutdata/pseries-features-hpt.xml
Symbolic link
@ -0,0 +1 @@
|
||||
../qemuxml2argvdata/pseries-features-hpt.xml
|
@ -763,8 +763,7 @@ mymain(void)
|
||||
QEMU_CAPS_VIRTIO_SCSI,
|
||||
QEMU_CAPS_DEVICE_VFIO_PCI);
|
||||
|
||||
DO_TEST("pseries-hpt-resizing",
|
||||
QEMU_CAPS_NODEFCONFIG,
|
||||
DO_TEST("pseries-features-hpt",
|
||||
QEMU_CAPS_MACHINE_OPT,
|
||||
QEMU_CAPS_MACHINE_PSERIES_RESIZE_HPT);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user