Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Update guest suspend tests #54

Closed
wants to merge 8 commits into
from

Conversation

Projects
None yet
3 participants
Member

zhouqt commented Oct 11, 2012

This pullreq contains some updates for guest suspend tests, mainly include:

  • A new class which can help us extend suspend tests.
  • A updated S3 test which can work with windows guest.
  • Some update for existed S4 test.
  • A new suspend test which uses guest agent to send suspend cmd.
Member

zhouqt commented Oct 12, 2012

Hi, there,
When I test these new commits in my local box, I found:

  • windows (Win7) guest can't suspend in S3 testing.
  • Fedora 17 with the original kernel (3.3.4-5.fc17) can't resume from S3/S4 mode.
  • Fedora 17 with updated kernel (3.5.6-1.fc17) screen can't display anything when resuming from S3, I used VNC when testing.
    I tried to manually run suspend test, hit the same problem, so I think they are qemu or kernel's bug.

Host's packages:
kernel: 3.7.0-0.rc0.git2.4.fc19
qemu:
qemu-system-x86-1.2.0-12.fc19.x86_64
qemu-img-1.2.0-12.fc19.x86_64
qemu-kvm-1.2.0-12.fc19.x86_64
libvirt-daemon-driver-qemu-0.10.2-3.fc19.x86_64
qemu-common-1.2.0-12.fc19.x86_64
ipxe-roms-qemu-20120328-2.gitaac9718.fc18.noarch

Member

ldoktor commented Oct 17, 2012

I have one stupid question, how you managed to get support for suspend to mem? I'm actually currently working on suspend test, but my F17 never supports suspend to mem. Do you use any special extra params? Or special kernel? S4 works fine, but no luck with S4.

Member

zhouqt commented Oct 18, 2012

@ldoktor for F17 guest, I can suspend to mem with the latest kernel in yum, but can't resume for S3. Someone told me I should try s3/s4 with spice, but I find this test can pass in S3 testing, since autotest doesn't check screen display after resume (Oh, we must be missing something in test script.)

zhouqt added some commits Oct 22, 2012

tools: Add tapfd_helper tool
Move this tapfd_helper tool from autotest repo into
this virt-test repo, since it's a virt-test only tool.

This script can help us boot up guest with autotest
generated qemu command line, it creates tap device
and updates the tapfd in given qemu cli.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
virt.util_test: Add a new class for guest suspend test
This 'GuestSuspend' class contains some steps needed by
guest suspend test, it provides 2 methods:
 * guest_suspend_mem()
 * guest_suspend_disk()
They will run a 'standard' suspend testing.

If you want to custom suspend testing, you can just inherit
from this class and implement your own steps.

This class also provides 3 hook points:
 * action_before_suspend()
 * action_during_suspend()
 * action_after_suspend()
You can insert your own test steps in these test points.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
tests: Update guest_s4 test with new GuestSuspend class
This patch also add some custom cmd for windows XP/2003.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
tests: Add a new test case guest_s3
This is another version of guest s3 test, it supports
both linux and windows guest.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
tests: Remove test linux_s3
This linux_s3 test is replaced by test guest_s3,
so remove it directly.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
virt.kvm_monitor: add system_wakeup monitor command
qemu adds a new monitor cmd called 'system_wakeup' in commit
9b9df25a474bfee59dd46d033eb4ccc16582aac2

This patch adds a method in kvm_monitor so that we can test
this new monitor cmd with autotest.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
KVM Test: Add a subtest suspend for qemu guest agent
This 'suspend' subtest run guest s3/s4 test with
qemu guest agent commands, to verify guest agent's
suspend commands.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
virt.guest_agent: Fix guest agent exception initiation problem
There are some wrong format of in guest agent exceptions
definition, This patch fixes these problem.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
Owner

lmr commented Nov 20, 2012

I did rebase this pull request, as it was not applicable anymore, closing this one.

@lmr lmr closed this Nov 20, 2012

@lmr lmr referenced this pull request Nov 20, 2012

Closed

Guest suspend #103

ypu pushed a commit to ypu/virt-test that referenced this pull request Apr 29, 2013

Virt: enable the use of MALLOC_PERTURB_
MALLOC_PERTURB_ can help to find bugs such as user-after-free,
generating core dumps when a bug is detected. This sets the qemu
binary to run with MALLOC_PERTURB_ set by default.

qemu-img should also be run with MALLOC_PERTURB_ set, but IMHO
we need a more central API to manipulate image files, and this
will probably be the best place to set MALLOC_PERTURB_.

This partially adresses issue #54.

Signed-off-by: Cleber Rosa <crosa@redhat.com>

ypu pushed a commit to ypu/virt-test that referenced this pull request Apr 29, 2013

Virt: enable the use of MALLOC_PERTURB_
MALLOC_PERTURB_ can help to find bugs such as user-after-free,
generating core dumps when a bug is detected. This sets the qemu
binary to run with MALLOC_PERTURB_ set by default.

qemu-img should also be run with MALLOC_PERTURB_ set, but IMHO
we need a more central API to manipulate image files, and this
will probably be the best place to set MALLOC_PERTURB_.

This partially adresses issue #54.

Signed-off-by: Cleber Rosa <crosa@redhat.com>

clebergnu added a commit that referenced this pull request May 1, 2013

Virt: enable the use of MALLOC_PERTURB_
MALLOC_PERTURB_ can help to find bugs such as user-after-free,
generating core dumps when a bug is detected. This sets the qemu
binary to run with MALLOC_PERTURB_ set by default.

qemu-img should also be run with MALLOC_PERTURB_ set, but IMHO
we need a more central API to manipulate image files, and this
will probably be the best place to set MALLOC_PERTURB_.

This partially adresses issue #54.

Signed-off-by: Cleber Rosa <crosa@redhat.com>

FengYang pushed a commit to FengYang/virt-test that referenced this pull request Nov 12, 2013

Virt: enable the use of MALLOC_PERTURB_
MALLOC_PERTURB_ can help to find bugs such as user-after-free,
generating core dumps when a bug is detected. This sets the qemu
binary to run with MALLOC_PERTURB_ set by default.

qemu-img should also be run with MALLOC_PERTURB_ set, but IMHO
we need a more central API to manipulate image files, and this
will probably be the best place to set MALLOC_PERTURB_.

This partially adresses issue #54.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment