From: Anthony Liguori <anthony@codemonkey.ws>
To: Avi Kivity <avi@redhat.com>
Cc: "lmr@redhat.com" <lmr@redhat.com>,
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>,
cleber@redhat.com, dlaor@redhat.com,
qemu-devel <qemu-devel@nongnu.org>,
Gerd Hoffmann <kraxel@redhat.com>, Cleber Rosa <crosa@redhat.com>
Subject: Re: [Qemu-devel] [ANNOUNCE] qemu-test: a set of tests scripts for QEMU
Date: Thu, 29 Dec 2011 11:02:35 -0600 [thread overview]
Message-ID: <4EFC9D2B.1020606@codemonkey.ws> (raw)
In-Reply-To: <4EFC9AFF.5070707@redhat.com>
On 12/29/2011 10:53 AM, Avi Kivity wrote:
> On 12/29/2011 06:39 PM, Anthony Liguori wrote:
>>
>> qemu-test builds a custom guest, entirely from source. This makes it
>> possible to efficiently test non-native architectures. The tests are
>> written for this minimal environment (which is not straight forward to
>> do). This tests will never run on Windows as they are 100% tied to
>> their environment.
>>
>> autotest (let's be clear, there is no such thing as kvm autotest
>> anymore) is a framework for executing third party tests. It's got
>> fancy magic to execute in client mode vs. server mode. There is a
>> suite of tests that are integrated in autotest that exercise various
>> types of virtualization functionality. This suite of tests use a
>> special config format to determine what they do.
>>
>> Included in this, is the ability to create a guest from an ISO either
>> using step files or via a guest-specific mechanism (kickstart, etc.).
>> The tests are written to be mostly guest agnostic and are therefore
>> written in Python in a cross platform way.
>>
>> There is essentially no overlap between the two and calling kvm
>> autotest superior is like calling the Sun superior to the Moon.
>
> Why not extend autotest do the same thing. Instead of downloading a
> fedora iso it would download a kernel tarball and (cross-)build it.
My plan is to post a qemu-jeos repo that has the build bits for creating the
kernel/initramfs pair.
qemu-test will then live in qemu.git and just depend on the results of the
qemu-jeos.git. I'd maybe even go as far as including the binaries in qemu.git
but I don't think that would work so well...
>>> My main motivation to merge
>>> qemu-test and kvm autotest is that I fear that qemu-test will be the
>>> only
>>> requirement for committing stuff for qemu and developers will be
>>> excused from
>>> their 'duty' by writing a 50 LOC shell script and assume they done w/
>>> testing.
>>
>> There is no requirement to write autotest tests to get things merged
>> into QEMU. That's is how things are today.
>>
>> And I don't think there will ever a requirement to write anything that
>> isn't merged directly into qemu.git. I'm not going to hold up merging
>> a feature until another project merges something into their tree.
>
> What about virtio features (we used to depend on the kernel, now on the
> spec)? Seabios?
Those are rare occurrences and have always been a bit awkward. OTOH, we're
talking about the critical path of essentially every single feature that gets
merged into QEMU.
>> So unless we're going to merge KVM autotest into qemu.git, I don't
>> think there's every going to be a requirement to write a KVM autotest
>> test in order to get something merged into qemu.git.
>
> Let's consider postcopy live migration being proposed. In addition to
> various unit tests, it also wants an integration test. So now we need
> to write a qemu-test postcopy live migration test, and also autotest
> test that tests non-Linux guests, migration under load, with memory
> hotplug, etc.
But the integration test is also going to depend on libvirt support for the
feature. So how does this all get orchestrated? kvm-autotest merges the test
case first, then QEMU merges the support, then libvirt? What about VDSM and
ovirt-engine? Once kvm-autotest starts supporting VDSM that's yet another
component to deal with.
Realistically, kvm-autotest is going to have to wait for the bits to get merged
in all of the necessary pieces and then build a test for it on their own schedule.
>> But since autotest is a framework for running third-party tests, it
>> seems to make sense for qemu.git to have a test framework that
>> autotest can execute.
>>
>> And since what we call KVM autotest actually tests a heck of a lot
>> more than just QEMU, it makes sense for KVM autotest to continue to
>> focus on full stack testing where QEMU is but one of the many
>> components that it tests.
>
> It might have made sense to split the kvm-testing functionality of
> autotest, and have autotest drive that. We could even have called it
> qemu-test.
I specifically advocated this during Lucas' KVM Forum talk and he was strongly
opposed to it.
I think kvm autotest would get a lot more interest if the test cases were pulled
out of autotest, made more stand alone. They also should be more Unix like
being divided into individual executables with independent command line options
over a single do-everything configuration file.
But that's all independent of qemu-test. qemu-test is really qtest +
Linux/busybox as a libOS. Even if the above happened, I would still think
qemu-test needed to exist.
Regards,
Anthony Liguori
next prev parent reply other threads:[~2011-12-29 17:02 UTC|newest]
Thread overview: 74+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-19 17:13 [Qemu-devel] [ANNOUNCE] qemu-test: a set of tests scripts for QEMU Anthony Liguori
2011-12-19 17:39 ` Avi Kivity
2011-12-19 17:55 ` Anthony Liguori
2011-12-20 20:34 ` Lucas Meneghel Rodrigues
2011-12-25 15:19 ` Dor Laor
2011-12-26 15:12 ` Anthony Liguori
2011-12-26 23:00 ` Dor Laor
2011-12-27 15:22 ` Anthony Liguori
2011-12-27 15:58 ` Avi Kivity
2011-12-27 16:40 ` Anthony Liguori
2011-12-27 18:00 ` Lucas Meneghel Rodrigues
2011-12-27 22:35 ` Cleber Rosa
2011-12-28 2:37 ` Anthony Liguori
2011-12-28 4:15 ` Cleber Rosa
2011-12-28 5:01 ` Cleber Rosa
2011-12-28 14:27 ` Anthony Liguori
2011-12-28 15:01 ` Avi Kivity
2011-12-28 15:28 ` Avi Kivity
2011-12-28 16:44 ` Anthony Liguori
2011-12-28 17:26 ` Avi Kivity
2011-12-29 16:12 ` Anthony Liguori
2011-12-29 16:36 ` Avi Kivity
2011-12-29 16:49 ` Anthony Liguori
2011-12-29 17:03 ` Avi Kivity
2011-12-29 17:10 ` Anthony Liguori
2011-12-29 17:18 ` Avi Kivity
2011-12-29 17:22 ` Peter Maydell
2011-12-29 17:26 ` Avi Kivity
2011-12-29 17:36 ` Peter Maydell
2011-12-29 17:40 ` Avi Kivity
2011-12-29 17:49 ` Peter Maydell
2011-12-29 17:56 ` Avi Kivity
2011-12-29 21:10 ` Peter Maydell
2012-01-01 9:21 ` Avi Kivity
2011-12-29 18:35 ` Anthony Liguori
2011-12-29 19:04 ` Peter Maydell
2011-12-29 19:40 ` Blue Swirl
2011-12-29 21:46 ` Anthony Liguori
2011-12-29 22:10 ` Peter Maydell
2011-12-29 22:30 ` Anthony Liguori
2011-12-30 15:43 ` Andreas Färber
2012-01-03 13:42 ` Anthony Liguori
2012-01-03 14:51 ` Andreas Färber
2011-12-29 22:11 ` Lucas Meneghel Rodrigues
2011-12-29 18:33 ` Anthony Liguori
2011-12-30 13:44 ` Andreas Färber
2012-01-02 14:07 ` Paolo Bonzini
2012-01-03 8:19 ` Stefan Hajnoczi
2012-01-03 9:10 ` Paolo Bonzini
2011-12-28 16:42 ` Anthony Liguori
2011-12-28 17:21 ` Avi Kivity
2011-12-29 14:38 ` Dor Laor
2011-12-29 16:39 ` Anthony Liguori
2011-12-29 16:53 ` Avi Kivity
2011-12-29 17:02 ` Anthony Liguori [this message]
2011-12-29 17:06 ` Avi Kivity
2011-12-29 17:11 ` Anthony Liguori
2011-12-29 23:17 ` Lucas Meneghel Rodrigues
2011-12-30 0:33 ` Anthony Liguori
2011-12-30 1:20 ` Lucas Meneghel Rodrigues
2011-12-30 2:20 ` Cleber Rosa
2012-01-03 13:52 ` Anthony Liguori
2011-12-29 22:45 ` Lucas Meneghel Rodrigues
2011-12-29 16:26 ` Anthony Liguori
2011-12-29 16:46 ` Avi Kivity
2011-12-29 16:53 ` Anthony Liguori
2011-12-29 17:08 ` Avi Kivity
2011-12-29 17:14 ` Anthony Liguori
2011-12-29 17:22 ` Avi Kivity
2011-12-29 18:27 ` Anthony Liguori
2011-12-29 17:16 ` Anthony Liguori
2011-12-29 17:23 ` Avi Kivity
2011-12-28 14:49 ` Christoph Hellwig
2011-12-28 16:30 ` Anthony Liguori
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=4EFC9D2B.1020606@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=avi@redhat.com \
--cc=cleber@redhat.com \
--cc=crosa@redhat.com \
--cc=dlaor@redhat.com \
--cc=kraxel@redhat.com \
--cc=lmr@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@linux.vnet.ibm.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;
as well as URLs for NNTP newsgroup(s).