qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: Lucas Meneghel Rodrigues <lmr@redhat.com>
Cc: Cleber Rosa <crosa@redhat.com>,
	QEMU devel <qemu-devel@nongnu.org>,
	"kvm-autotest@redhat.com" <kvm-autotest@redhat.com>,
	Ademar Reis <areis@redhat.com>
Subject: Re: [Qemu-devel] [RFC] Future goals for autotest and virtualization tests
Date: Fri, 09 Mar 2012 08:13:45 -0600	[thread overview]
Message-ID: <4F5A1019.5020203@codemonkey.ws> (raw)
In-Reply-To: <4F59FC26.4020404@redhat.com>

On 03/09/2012 06:48 AM, Lucas Meneghel Rodrigues wrote:
> On 03/09/2012 09:13 AM, Anthony Liguori wrote:
>> On 03/08/2012 05:07 PM, Lucas Meneghel Rodrigues wrote:
>>> Here is the qemu-test version
>>>
>>> http://git.qemu.org/?p=qemu-test.git;a=blob;f=tests/virtio-serial.sh;h=e95ae6e0b63758262919702d51a9c83bebe2fb08;hb=master
>>>
>>>
>>
>> So virtio-serial is an exception in autotest:
>>
>> 2174 virtio_console.py
>> 1875 cgroup.py
>> 615 ksm_overcommit.py
>> 439 qemu_img.py
>> 407 qmp_basic.py
>> 389 qmp_basic_rhel6.py
>> 356 stepmaker.py
>> 247 steps.py
>>
>> // The next largest actual test of QEMU
>> 203 pci_hotplug.py
>> 190 cdrom.py
>> 182 physical_resources_check.py
>> 181 timedrift.py
>> 170 enospc.py
>> 150 balloon_check.py
>> 138 multi_disk.py
>> 121 unittest.py
>> 117 migration.py
>> 111 cpu_hotplug.py
>> 107 migration_multi_host.py
>> 104 nic_hotplug.py
>> 103 timedrift_with_stop.py
>> 96 timedrift_with_migration.py
>> ...
>>
>> So picking virtio-serial as your comparison point is not really
>> representative of kvm-autotest but at any rate...
>
> We have a bunch of high level test functions in client/virt/virt_test_utils.py
> that contain some commonly used test functions such as migration and running
> autotest tests on vms, and other functions, that allow us to reuse those
> functions on the tests and save code, but we can reasonably assume that it
> doesn't change the order of magnitude of the actual qemu tests in size, so point
> taken.
>
> You also have a point in the respect that a lot of the large tests are more
> linux-qemu integration tests, name cpuflags, cgroups, ksm_overcommit.

And this is exactly the type of thing that autotest will always be the best tool 
for.

>
> The point you tried to make and I replied to was 'qemu-test tests are all
> smaller than the equivalent kvm autotest tests'. Well, sure they tend to be, but
> in pretty much all cases more code means more functionality being covered, and
> making sure the same test works on RHEL5, RHEL6, upstream, on an Ubuntu, Fedora,
> RHEL or even Windows guests.

But this is not the scope of qemu-test.  And we may end up duplicating some 
things here but does it really matter?  We're talking about a few dozen python 
scripts that are a ~100 lines.

> It is indeed a bit nerve wrecking to hear that all you can do with the stuff you
> have been working on the last 3 years can be done better with a dozen of shell
> script functions. It's similar to say that we just like to throw lines at a text
> editor just for the fun of it. I am sure you didn't mean it but that is how it
> sounded, and that's why I'd like to assure that the code there *does stuff*.

Look at how this discussion started.  We've been discussing testing on 
qemu-devel at excruciating length and detail and have finally come to something 
of a consensus.  AFAIK, no one from autotest has participated in those 
discussions which is fair as I'm sure ya'll don't read qemu-devel religiously.

Then we see this note that more or less declares, this is how QEMU should do all 
of its testing.  What reaction did you really expect there to be? :-)

> It's just that this extra stuff is potentially not interesting to the goal of
> doing developer level regression testing of qemu alone.

I think we need to focus this discussion on concrete technical proposals.  If 
the proposal is, QEMU should use libautotest, we need to start with an awful lot 
more detail about libautotest does and what functions it provides.

Regards,

Anthony Liguori

  reply	other threads:[~2012-03-09 14:14 UTC|newest]

Thread overview: 84+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-08  4:00 [Qemu-devel] [RFC] Future goals for autotest and virtualization tests Lucas Meneghel Rodrigues
2012-03-08 11:44 ` Stefan Hajnoczi
2012-03-08 11:54   ` Stefan Hajnoczi
2012-03-08 12:17     ` Ademar Reis
2012-03-08 12:18       ` Ademar Reis
2012-03-09 11:48       ` [Qemu-devel] [KVM-AUTOTEST] " Osier Yang
2012-03-08 12:28     ` [Qemu-devel] " Cleber Rosa
2012-03-08 13:06       ` Stefan Hajnoczi
2012-03-08 13:36 ` Anthony Liguori
2012-03-08 14:01   ` Lucas Meneghel Rodrigues
2012-03-08 14:48     ` Anthony Liguori
2012-03-08 15:00       ` Ademar Reis
2012-03-08 23:59         ` Andreas Färber
2012-03-09  0:08           ` Ademar Reis
2012-03-08 14:49   ` Ademar Reis
2012-03-08 14:56     ` Anthony Liguori
2012-03-08 15:07       ` Ademar Reis
2012-03-08 15:14         ` Anthony Liguori
2012-03-08 16:05           ` Ademar Reis
2012-03-08 17:03             ` Anthony Liguori
2012-03-08 17:59               ` Ademar Reis
2012-03-08 18:21                 ` Lucas Meneghel Rodrigues
2012-03-08 18:22                 ` Lucas Meneghel Rodrigues
2012-03-08 19:16                 ` Anthony Liguori
2012-03-08 21:02                   ` Ademar Reis
2012-03-08 21:24                     ` Anthony Liguori
2012-03-08 22:24                       ` Ademar Reis
2012-03-08 23:21                         ` Anthony Liguori
2012-03-08 23:51                           ` Ademar Reis
2012-03-09  9:41                             ` Stefan Hajnoczi
2012-03-09 14:00                               ` Ademar Reis
2012-03-09 14:54                                 ` Stefan Hajnoczi
2012-03-09 15:01                                   ` Ademar Reis
2012-03-09 15:17                                     ` Stefan Hajnoczi
2012-03-09 11:14                             ` Kevin Wolf
2012-03-09 11:59                               ` Anthony Liguori
2012-03-09 12:13                                 ` Kevin Wolf
2012-03-09 12:24                                   ` Anthony Liguori
2012-03-09 11:20                           ` Cleber Rosa
2012-03-09 12:04                             ` Anthony Liguori
2012-03-09 12:40                               ` Cleber Rosa
2012-03-09 12:42                                 ` Anthony Liguori
2012-03-09 12:46                                   ` Cleber Rosa
2012-03-08 23:07                       ` Lucas Meneghel Rodrigues
2012-03-08 23:56                         ` Ademar Reis
2012-03-09  0:04                         ` Anthony Liguori
2012-03-09 13:24                           ` Paolo Bonzini
2012-03-09 12:13                         ` Anthony Liguori
2012-03-09 12:48                           ` Lucas Meneghel Rodrigues
2012-03-09 14:13                             ` Anthony Liguori [this message]
2012-03-09 14:40                               ` Lucas Meneghel Rodrigues
2012-03-09 14:40                               ` Ademar Reis
2012-03-09 13:07                       ` Paolo Bonzini
2012-03-09 13:56                         ` Anthony Liguori
2012-03-09 14:43                           ` Paolo Bonzini
2012-03-09 14:48                             ` Anthony Liguori
2012-03-09 13:03                 ` Paolo Bonzini
2012-03-08 15:46       ` Kevin Wolf
2012-03-08 15:57         ` Ademar Reis
2012-03-08 16:10           ` Anthony Liguori
2012-03-08 16:34             ` Kevin Wolf
2012-03-08 16:36               ` Anthony Liguori
2012-03-08 16:46                 ` Ademar Reis
2012-03-08 16:47                 ` Kevin Wolf
2012-03-08 16:08         ` Anthony Liguori
2012-03-08 15:19   ` Lucas Meneghel Rodrigues
2012-03-08 18:57     ` Anthony Liguori
2012-03-08 19:34       ` Lucas Meneghel Rodrigues
2012-03-08 19:43         ` Anthony Liguori
2012-03-08 20:17           ` Lucas Meneghel Rodrigues
2012-03-08 21:02             ` Andreas Färber
2012-03-08 21:03             ` Anthony Liguori
2012-03-09 13:36               ` Paolo Bonzini
2012-03-09 14:01                 ` Anthony Liguori
2012-03-09 14:30                   ` Paolo Bonzini
2012-03-09 14:43                     ` Anthony Liguori
2012-03-09 15:00                       ` Paolo Bonzini
2012-03-09 15:02                         ` Anthony Liguori
2012-03-09 15:17                           ` Paolo Bonzini
2012-03-09 15:24                             ` Anthony Liguori
2012-03-09 15:34                               ` Paolo Bonzini
2012-03-09 15:48                                 ` Anthony Liguori
2012-03-09 17:02                                   ` Cleber Rosa
2012-03-08 14:04 ` Alon Levy

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=4F5A1019.5020203@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=areis@redhat.com \
    --cc=crosa@redhat.com \
    --cc=kvm-autotest@redhat.com \
    --cc=lmr@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /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;
as well as URLs for NNTP newsgroup(s).