qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 3/3] tests/acceptance: Add boot linux with kvm t


From: Wainer dos Santos Moschetta
Subject: Re: [Qemu-devel] [PATCH 3/3] tests/acceptance: Add boot linux with kvm test
Date: Fri, 5 Jul 2019 12:43:51 -0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2


On 07/01/2019 05:29 PM, Cleber Rosa wrote:
On Mon, Jul 01, 2019 at 03:34:51PM -0300, Eduardo Habkost wrote:
Agreed that kvm:tcg fallback I suggested isn't a good idea.
However, do we really want to require a separate test method to
be written just because we want to use a different accelerator or
other QEMU option?

No, in the short term we want to have tests that can respond to a
number of well known parameters, such as "accel".  But to actually
have tests (names) that are meaningful enough, we need to:

  1) Add a varianter implementation (or usage)
  2) Drop the duplicate tests

#1 is needed because:

  a) it doesn't feel right to name tests based on simple command
     line parameters (the ones given with -p, say, "-p accel=kvm"
     will add to the test name "accel_kvm".

  b) a variant *name* is added to the test ID, which then can be
     kept consistent.

Then we can proceed to #2, and drop the duplicate tests, say:

  - test_x86_64_pc, test_x86_64_pc_kvm => test_x86_64_pc

On a further iteration, it may even make sense to consolidate:

  - test_x86_64_pc, test_x86_64_q35 => test_x86_64

Time will tell.

This patch may be the simplest solution short term, but can we
have something that doesn't require so much code duplication and
boilerplate code in the future?
Yes, the new implementation of the Varianter CIT is now generally
available on Avocado 70.0, so I'm working on a file that hopefully
will suite the acceptance tests.

Cleber, Eduardo, that's a good discussion. I was expecting we would eventually evolve the acceptance tests to use Avocado varianter feature.

Now I think what to do with this series.

I can see the usefulness of patch 01 when you want to, for example, start qemu expecting a crash or just want to gather information from command-line (qemu -cpu help, qemu -accel help...etc).

The implementation on patch 02 to check the availability of accelerators seems desirable even on this (near, maybe) future where tests can be automatically derived.

Thus, can we merge patches 01 and 02 only? Of course, if they pass the reviews.

Thanks!

- Wainer


--
Eduardo
Best,
- Cleber.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]