All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: "Andreas Färber" <afaerber@suse.de>
Cc: qemu-devel@nongnu.org, mst@redhat.com
Subject: Re: [Qemu-devel] [PATCH RFC 0/1] qtest: Generic PCI device test
Date: Thu, 12 Feb 2015 15:45:48 +0100	[thread overview]
Message-ID: <87d25fyyqr.fsf@blackfin.pond.sub.org> (raw)
In-Reply-To: <54CA6A49.2040408@suse.de> ("Andreas =?utf-8?Q?F=C3=A4rber=22?= =?utf-8?Q?'s?= message of "Thu, 29 Jan 2015 18:13:45 +0100")

Andreas Färber <afaerber@suse.de> writes:

> 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.

Yes, asking people who aren't familiar with device tests to create one
from scratch is asking a lot.  Asking them to copy a skeleton and flesh
it out is much more practical.  Almost as good as fleshing out one of
your stubs, I think.

A non-skeleton test for a really simple PCI device could serve as
skeleton.  wdt_i6300esb.c is a possible candidate.

>> 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).

Makes sense to me.  However, some existing device-specific files won't
have any tests left then.  What do you want me to do with them?

> 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.

My new test is a pig in that regard: it runs qemu-system-FOO once per
non-blacklisted PCI device.

I could pack tests into fewer runs by using more than just a single PCI
slot.  i440FX can do 30 without a pci-bridge (would probably a bad idea
for this test) and multifunction (certainly a bad idea).  However, when
a test fails, the culprit isn't as obvious then.  Do you want me to try
that?

  reply	other threads:[~2015-02-12 14:46 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 ` [Qemu-devel] [PATCH RFC 0/1] qtest: Generic " Andreas Färber
2015-02-12 14:45   ` Markus Armbruster [this message]
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=87d25fyyqr.fsf@blackfin.pond.sub.org \
    --to=armbru@redhat.com \
    --cc=afaerber@suse.de \
    --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.