Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: Add tests for qemu S3/S4 state configuration
Few tests were added which are checking whether the parsing of the xml and command-line arguments is working and compatible with each other.
- Loading branch information
Showing
9 changed files
with
110 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test /usr/bin/qemu -S \ | ||
-M pc -m 214 -smp 1 -nographic -monitor unix:/tmp/test-monitor,server,nowait \ | ||
-no-acpi -global PIIX4_PM.disable_s3=1 -boot c -hda /dev/HostVG/QEMUGuest1 \ | ||
-net none -serial none -parallel none -usb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<domain type='qemu'> | ||
<name>QEMUGuest1</name> | ||
<uuid>8caaa98c-e7bf-5845-126a-1fc316bd1089</uuid> | ||
<memory unit='KiB'>219100</memory> | ||
<currentMemory unit='KiB'>219100</currentMemory> | ||
<vcpu placement='static'>1</vcpu> | ||
<os> | ||
<type arch='i686' machine='pc'>hvm</type> | ||
<boot dev='hd'/> | ||
</os> | ||
<clock offset='utc'/> | ||
<on_poweroff>destroy</on_poweroff> | ||
<on_reboot>restart</on_reboot> | ||
<on_crash>destroy</on_crash> | ||
<pm> | ||
<suspend-to-mem enabled='no'/> | ||
</pm> | ||
<devices> | ||
<emulator>/usr/bin/qemu</emulator> | ||
<disk type='block' device='disk'> | ||
<source dev='/dev/HostVG/QEMUGuest1'/> | ||
<target dev='hda' bus='ide'/> | ||
<address type='drive' controller='0' bus='0' target='0' unit='0'/> | ||
</disk> | ||
<controller type='usb' index='0'/> | ||
<controller type='ide' index='0'/> | ||
<memballoon model='virtio'/> | ||
</devices> | ||
</domain> |
4 changes: 4 additions & 0 deletions
4
tests/qemuxml2argvdata/qemuxml2argv-misc-disable-suspends.args
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test /usr/bin/qemu -S \ | ||
-M pc -m 214 -smp 1 -nographic -monitor unix:/tmp/test-monitor,server,nowait \ | ||
-no-acpi -global PIIX4_PM.disable_s3=1 -global PIIX4_PM.disable_s4=1 -boot c \ | ||
-hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel none -usb |
30 changes: 30 additions & 0 deletions
30
tests/qemuxml2argvdata/qemuxml2argv-misc-disable-suspends.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<domain type='qemu'> | ||
<name>QEMUGuest1</name> | ||
<uuid>8caaa98c-e7bf-5845-126a-1fc316bd1089</uuid> | ||
<memory unit='KiB'>219100</memory> | ||
<currentMemory unit='KiB'>219100</currentMemory> | ||
<vcpu placement='static'>1</vcpu> | ||
<os> | ||
<type arch='i686' machine='pc'>hvm</type> | ||
<boot dev='hd'/> | ||
</os> | ||
<clock offset='utc'/> | ||
<on_poweroff>destroy</on_poweroff> | ||
<on_reboot>restart</on_reboot> | ||
<on_crash>destroy</on_crash> | ||
<pm> | ||
<suspend-to-mem enabled='no'/> | ||
<suspend-to-disk enabled='no'/> | ||
</pm> | ||
<devices> | ||
<emulator>/usr/bin/qemu</emulator> | ||
<disk type='block' device='disk'> | ||
<source dev='/dev/HostVG/QEMUGuest1'/> | ||
<target dev='hda' bus='ide'/> | ||
<address type='drive' controller='0' bus='0' target='0' unit='0'/> | ||
</disk> | ||
<controller type='usb' index='0'/> | ||
<controller type='ide' index='0'/> | ||
<memballoon model='virtio'/> | ||
</devices> | ||
</domain> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test /usr/bin/qemu -S \ | ||
-M pc -m 214 -smp 1 -nographic -monitor unix:/tmp/test-monitor,server,nowait \ | ||
-no-acpi -global PIIX4_PM.disable_s4=0 -boot c -hda /dev/HostVG/QEMUGuest1 \ | ||
-net none -serial none -parallel none -usb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<domain type='qemu'> | ||
<name>QEMUGuest1</name> | ||
<uuid>8caaa98c-e7bf-5845-126a-1fc316bd1089</uuid> | ||
<memory unit='KiB'>219100</memory> | ||
<currentMemory unit='KiB'>219100</currentMemory> | ||
<vcpu placement='static'>1</vcpu> | ||
<os> | ||
<type arch='i686' machine='pc'>hvm</type> | ||
<boot dev='hd'/> | ||
</os> | ||
<clock offset='utc'/> | ||
<on_poweroff>destroy</on_poweroff> | ||
<on_reboot>restart</on_reboot> | ||
<on_crash>destroy</on_crash> | ||
<pm> | ||
<suspend-to-disk enabled='yes'/> | ||
</pm> | ||
<devices> | ||
<emulator>/usr/bin/qemu</emulator> | ||
<disk type='block' device='disk'> | ||
<source dev='/dev/HostVG/QEMUGuest1'/> | ||
<target dev='hda' bus='ide'/> | ||
<address type='drive' controller='0' bus='0' target='0' unit='0'/> | ||
</disk> | ||
<controller type='usb' index='0'/> | ||
<controller type='ide' index='0'/> | ||
<memballoon model='virtio'/> | ||
</devices> | ||
</domain> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters