From: Cleber Rosa <crosa@redhat.com>
To: Eduardo Habkost <ehabkost@redhat.com>
Cc: philmd@redhat.com, jsnow@redhat.com, qemu-devel@nongnu.org,
Wainer dos Santos Moschetta <wainersm@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 3/3] tests/acceptance: Add boot linux with kvm test
Date: Mon, 1 Jul 2019 16:29:44 -0400 [thread overview]
Message-ID: <20190701202910.GA26789@localhost.localdomain> (raw)
In-Reply-To: <20190701183451.GF5198@habkost.net>
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.
>
> --
> Eduardo
Best,
- Cleber.
next prev parent reply other threads:[~2019-07-01 21:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-28 15:02 [Qemu-devel] [PATCH 0/3] Acceptance tests: boot Linux with KVM test Wainer dos Santos Moschetta
2019-06-28 15:02 ` [Qemu-devel] [PATCH 1/3] python/qemu: Allow to launch the VM without qmp Wainer dos Santos Moschetta
2019-06-28 15:02 ` [Qemu-devel] [PATCH 2/3] tests/acceptance: Introduce the "accel" tag Wainer dos Santos Moschetta
2019-06-28 15:02 ` [Qemu-devel] [PATCH 3/3] tests/acceptance: Add boot linux with kvm test Wainer dos Santos Moschetta
2019-06-28 20:18 ` Eduardo Habkost
2019-06-30 17:39 ` Cleber Rosa
2019-07-01 18:34 ` Eduardo Habkost
2019-07-01 20:29 ` Cleber Rosa [this message]
2019-07-05 15:43 ` Wainer dos Santos Moschetta
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=20190701202910.GA26789@localhost.localdomain \
--to=crosa@redhat.com \
--cc=ehabkost@redhat.com \
--cc=jsnow@redhat.com \
--cc=philmd@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=wainersm@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;
as well as URLs for NNTP newsgroup(s).