All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Andreas Färber" <afaerber@suse.de>
To: Markus Armbruster <armbru@redhat.com>, qemu-devel@nongnu.org
Cc: mst@redhat.com
Subject: Re: [Qemu-devel] [PATCH RFC 0/1] qtest: Generic PCI device test
Date: Thu, 29 Jan 2015 18:13:45 +0100	[thread overview]
Message-ID: <54CA6A49.2040408@suse.de> (raw)
In-Reply-To: <1422543520-8604-1-git-send-email-armbru@redhat.com>

Hi Markus,

Again thanks for digging into this.

Am 29.01.2015 um 15:58 schrieb Markus Armbruster:
> This test does everything a number of existing tests currently do:
> 
>     ac97-test.c e1000-test.c es1370-test.c eepro100-test.c
>     ne2000-test.c nvme-test.c pcnet-test.c rtl8139-test.c
>     tpci200-test.c virtio-balloon-test.c virtio-rng-test.c
>     vmxnet3-test.c
> 
> They are all marked "TODO: Replace with functional tests".  Options
> 
> * Delete them now, undelete when we add functional tests
> 
> * Keep them, blacklist the devices in pci-devs-test.c
> 
> * Live with the duplicated testing
> 
> Andreas, I guess you got an opinion here.

My preference would be to not remove device files. "Functional tests"
refers to doing real device-specific MMIO or PIO, and the intent of
contributing such stubs, beyond the basic -device init/realize testing,
was lowering the hurdle so that maintainers can require bugfixers to
contribute a matching test case where applicable.

> There's overlap with a few others:
> 
>     i82801b11-test.c usb-hcd-ehci-test.c usb-hcd-ohci-test.c
>     usb-hcd-xhci-test.c virtio-blk-test.c virtio-net-test.c
>     virtio-scsi-test.c virtio-serial-test.c
> 
> Options:
> 
> * Blacklist the devices in pci-devs-test.c
> 
> * Live with the duplicated testing
> 
> Andreas?

Not having reviewed the respective test code yet, I would suggest to
keep generic tests in pci-devs-test.c and to rather drop generic tests
from device-specific files (de-duplication).

While I haven't benchmarked it, I assume that the bigger contributor to
qtest runtime is the overhead of spawning qemu-system-* processes rather
than running multiple tests per process. So living with duplication may
be a convenience option.

Regards,
Andreas

-- 
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu,
Graham Norton; HRB 21284 (AG Nürnberg)

  parent reply	other threads:[~2015-01-29 17:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-29 14:58 [Qemu-devel] [PATCH RFC 0/1] qtest: Generic PCI device test Markus Armbruster
2015-01-29 14:58 ` [Qemu-devel] [PATCH RFC 1/1] qtest: Add generic " Markus Armbruster
2015-01-29 17:13 ` Andreas Färber [this message]
2015-02-12 14:45   ` [Qemu-devel] [PATCH RFC 0/1] qtest: Generic " Markus Armbruster
2015-01-29 19:46 ` John Snow

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=54CA6A49.2040408@suse.de \
    --to=afaerber@suse.de \
    --cc=armbru@redhat.com \
    --cc=mst@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.