public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Uri Lublin <uril@qumranet.com>
To: Marcelo Tosatti <mtosatti@redhat.com>
Cc: kvm@vger.kernel.org, Dror Russo <dror@qalogic.com>
Subject: Re: [ANNOUNCE] kvm-autotest
Date: Tue, 15 Jul 2008 04:02:28 +0300	[thread overview]
Message-ID: <487BF724.6080608@qumranet.com> (raw)
In-Reply-To: <20080712142714.GB1316@dmt.cnet>

Marcelo Tosatti wrote:
> On Thu, Jul 10, 2008 at 03:09:36PM +0300, Uri Lublin wrote:
> 
> The big problem with writing client tests is that you have to rewrite
> what autotest already provides, diverging from mainline. That means work
> to be done everytime a new test is added in autotest, which could come
> for free if guests were treated as clients and the host treated as a
> server.

We can have a generic function like
run-on-guest(vm, run_path_on_guest, hdir, gdir, hresult, gresult) which
- copies a directory from host to guest
- runs a script on the guest (we may add an option to pass params to the script)
- copies results directory from guest to host

That would work for any autotest test (the run script will run bin/autotest, 
newly added tests will be added to the run script, or be passed as args) and 
should work for non-Linux guests.

Look at server/tests and client/tests; Most of the tests reside in the client side.

> 
> And the other way around is also true: new OS tests added to
> kvm-autotest will not make their way naturally into autotest mainline.

They may be accepted as client test(s). If we put all tests under client/kvm_* 
or even better all tests under client/kvm_runtest, than it would be just another 
(massive) client test.

> 
> Other than Windows tests, of course, but most Linux OS tests should run
> fine in *NIX.
> 
I'm not yet sure how we are going to implement access to windows-kvm-guest but 
we sure want to have windows guests in our test matrix.


Basically I don't mind trying the server-side solution.
We can have a little exercise, trying to write a kvm-test on the server and on 
the client and compare the effort.
I think we should mostly focus on adding tests and guests.


>>> - Currently its difficult to debug client test failure inside guests,
>>>   since the VM and its image are destroyed. Perhaps the client/server
>>>   model handles error handling/reporting much more nicely.
>> Agreed, we thought of that, but it's not cooked yet. Currently we always  
>> cleanup. We should not remove the (temporary) image if the test fails. 
>> Should we keep the guest running upon failure ? Currently we continue to 
>> test the next guest. We should probably have a configuration flag for 
>> that too.
> 
> Yes, it should be dependant on a configuration flag. For developer
> use, stopping the run makes sense so the failure can be analyzed. For
> stress/coverage, you want to know results of the entire test battery.

We'll add such a flag.

Thanks,
Uri

  reply	other threads:[~2008-07-15  1:06 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-12 14:27 [ANNOUNCE] kvm-autotest Marcelo Tosatti
2008-07-15  1:02 ` Uri Lublin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-07-06 10:16 Uri Lublin
2008-07-09 15:43 ` Marcelo Tosatti
2008-07-10 12:09   ` Uri Lublin
2008-07-12 15:31     ` Ryan Harper
2008-07-15  1:22       ` Uri Lublin
2008-07-15  7:39         ` Dor Laor
2008-07-15 12:32         ` Ryan Harper
2008-07-16 23:11           ` Uri Lublin
2008-07-17  0:08             ` Ryan Harper
2008-07-21 14:43               ` Uri Lublin

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=487BF724.6080608@qumranet.com \
    --to=uril@qumranet.com \
    --cc=dror@qalogic.com \
    --cc=kvm@vger.kernel.org \
    --cc=mtosatti@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