qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Eduardo Habkost <ehabkost@redhat.com>
To: Cleber Rosa <crosa@redhat.com>
Cc: "Fam Zheng" <famz@redhat.com>, "Amador Pahim" <amador@pahim.org>,
	"Philippe Mathieu-Daudé" <f4bug@amsat.org>,
	qemu-devel@nongnu.org, "Stefan Hajnoczi" <stefanha@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 4/5] scripts/qemu.py: introduce set_console() method
Date: Tue, 29 May 2018 16:06:59 -0300	[thread overview]
Message-ID: <20180529190659.GL8988@localhost.localdomain> (raw)
In-Reply-To: <5ebe0b6d-11b9-8c66-0e09-01706ebc57ca@redhat.com>

On Fri, May 25, 2018 at 12:57:54PM -0400, Cleber Rosa wrote:
> On 05/25/2018 01:47 AM, Fam Zheng wrote:
[...]
> >> +class QEMU(unittest.TestCase):
> > 
> > 'QEMU' is too generic, what is the intended tests to do here? It seems to be
> > more about exercising the set_console() method.
> > 
> 
> Yes, but again, I'm favoring simpler names when the scope is supposed to
> be limited.  The chances of a name clash here are close to none IMO.  I
> don't think this class would be reused elsewhere, or a class with the
> same name would be imported here.
> 
> > Any test should be added to tests/, not scripts/.
> > 
> 
> One of the reasons for this file to be in this patch was to generate
> this exact discussion.  "qemu.py" itself is not a script, but a
> module/library.  Still it lacks the structure to have accompanying tests.
> 
> I was hoping to get away with these tests here, so that they wouldn't be
> thrown away, until "qemu.py", "qmp/*.py" and others are given the status
> and structure of Python modules.
> 
> I can definitely move these to tests/, but how about its relation to the
> other tests living there and its activation?  Should we recognize its
> existence and add a check-* target?

"scripts/test_qemu.py" makes it look like a script that will test
QEMU.  While we don't rearrange the Python modules to follow a
more Pythonic structure, probably moving it to tests/ is the best
option we have.  Maybe tests/python?

Wherever we store the test code, running those tests on
"make check" is a good idea.

But I wouldn't like this to delay the inclusion of this series.
If rearranging the Python modules would make the job easier,
including the test code only later would be a reasonable option,
too.

-- 
Eduardo

  reply	other threads:[~2018-05-29 19:07 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-25  0:58 [Qemu-devel] [PATCH 0/5] Acceptance/functional tests Cleber Rosa
2018-05-25  0:58 ` [Qemu-devel] [PATCH 1/5] Add functional/acceptance tests infrastructure Cleber Rosa
2018-05-25  5:33   ` Fam Zheng
2018-05-25 16:15     ` Cleber Rosa
2018-05-25  0:58 ` [Qemu-devel] [PATCH 2/5] scripts/qemu.py: allow adding to the list of extra arguments Cleber Rosa
2018-05-25  0:58 ` [Qemu-devel] [PATCH 3/5] Acceptance tests: add quick VNC tests Cleber Rosa
2018-05-25  5:37   ` Fam Zheng
2018-05-25 16:27     ` Cleber Rosa
2018-05-29 14:32       ` Eduardo Habkost
2018-05-29 14:59         ` Cleber Rosa
2018-05-29 17:52           ` Eduardo Habkost
2018-05-29 19:36             ` Cleber Rosa
2018-05-25  0:58 ` [Qemu-devel] [PATCH 4/5] scripts/qemu.py: introduce set_console() method Cleber Rosa
2018-05-25  5:47   ` Fam Zheng
2018-05-25 16:57     ` Cleber Rosa
2018-05-29 19:06       ` Eduardo Habkost [this message]
2018-05-29 19:31         ` Cleber Rosa
2018-05-25  0:58 ` [Qemu-devel] [PATCH 5/5] Acceptance tests: add Linux kernel boot and console checking test Cleber Rosa
2018-05-25  1:14 ` [Qemu-devel] [PATCH 0/5] Acceptance/functional tests Cleber Rosa
2018-05-25  6:08 ` Fam Zheng
2018-05-25 17:04   ` Cleber Rosa

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=20180529190659.GL8988@localhost.localdomain \
    --to=ehabkost@redhat.com \
    --cc=amador@pahim.org \
    --cc=crosa@redhat.com \
    --cc=f4bug@amsat.org \
    --cc=famz@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@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).