public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Lucas Meneghel Rodrigues <lmr@redhat.com>
To: Luiz Capitulino <lcapitulino@redhat.com>
Cc: autotest@test.kernel.org, kvm@vger.kernel.org,
	ehabkost@redhat.com, armbru@redhat.com
Subject: Re: [KVM_AUTOTEST][RFC 0/3]: QMP basic test-suite
Date: Fri, 08 Oct 2010 07:14:33 -0300	[thread overview]
Message-ID: <1286532873.2377.9.camel@freedom> (raw)
In-Reply-To: <1286481127-24640-1-git-send-email-lcapitulino@redhat.com>

On Thu, 2010-10-07 at 16:52 -0300, Luiz Capitulino wrote:
> This series is an _initial_ work on having a full QMP test-suite in
> kvm-autotest. I think it's very near of being in a mergeable state, but I
> figured it would be a good idea to get some feedback before submitting the
> final version.
> 
> You'll find all important details in the patches, being the last the most
> important one.
> 
> Please, note that there are a number of TODO items to be addressed and I
> need help to solve the following issues:
> 
>     1. A number of QMP commands are executed before the QMP suite is run,
>        which means that some problems can be caught by non-test code (ie.
>        real usage).

We can test it in a dedicated job, that does qemu specific testing (ie,
non-vm related work, such as qmp, qemu-block, qemu-unittests and such),
or even have a fully dedicated job to qmp.

>        Ideally, the QMP suite should be run before any command is executed,
>        so that we avoid catching QMP bugs in other test suites and/or in
>        kvm-autotest non-test code.
> 
>     2. The qmp_capabilities command is run by the QMPMonitor class
>        constructor. This makes it impossible for me to test it in the QMP
>        suite.
> 
>        I have tried destroying and recreating the QMPMonitor object from
>        my test-suite, but that didn't seem to work very well.

We can add an additional parameter to test parameters that indicates
whether the monitors are going to be tested. Today we have this in
tests_base.cfg.sample:

monitors = humanmonitor1

# Choose the main VM and monitor
main_vm = vm1
main_monitor = humanmonitor1
...
# Monitor params
monitor_type = human

We can add an additional parameter (maybe monitor_mode_[monitor_name])
to indicate the monitor is under test:

monitor_mode_humanmonitor1 = test
or
monitor_mode_humanmonitor1 = normal

We are indicating whether a given monitor is under test or not with this
parameter (defaults allways to normal). If mode is 'test', we handle
monitor class initialization, and potentially, other methods
differently. What do you think?

> I have other, more general comments, about kvm-autotest, but I'll send them
> in a different thread.

All right Luiz, this is all excellent, thanks!

> Thanks.
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



  parent reply	other threads:[~2010-10-08 10:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-07 19:52 [KVM_AUTOTEST][RFC 0/3]: QMP basic test-suite Luiz Capitulino
2010-10-07 19:52 ` [PATCH 1/3] QMPMonitor: Introduce the get_greeting() method Luiz Capitulino
2010-10-07 19:52 ` [PATCH 2/3] QMPMonitor: Introduce the send() method Luiz Capitulino
2010-10-07 19:52 ` [PATCH 3/3] Introduce QMP basic test-suite Luiz Capitulino
2010-10-07 19:59 ` [KVM_AUTOTEST][RFC 0/3]: " Luiz Capitulino
2010-10-08 10:14 ` Lucas Meneghel Rodrigues [this message]
2010-10-08 12:58   ` Luiz Capitulino

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1286532873.2377.9.camel@freedom \
    --to=lmr@redhat.com \
    --cc=armbru@redhat.com \
    --cc=autotest@test.kernel.org \
    --cc=ehabkost@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=lcapitulino@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox