qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 00/25] Don't "check" disabled drivers
@ 2018-07-17 11:33 Juan Quintela
  2018-07-17 11:33 ` [Qemu-devel] [PATCH 01/25] configure: We don't want to clean configuration files Juan Quintela
                   ` (24 more replies)
  0 siblings, 25 replies; 55+ messages in thread
From: Juan Quintela @ 2018-07-17 11:33 UTC (permalink / raw)
  To: qemu-devel; +Cc: dgilbert, lvivier, peterx

Hi

We can disable drivers with "<foo>-softmmu/config-devices.mak".  But
if we remove drivers there and do "make check", we still try to test
that devices (that are compiled in).  This is a list with the removal
of the ovbious ones.

While I was doing this I fonund:
- we remove <foo>-softmmu/config-devices.mak when we do make clean
  That is an "user" configuration file, we shouldn't do that.
- Use land/lor for consistence
- CONFIG_SERIAL was defined twice for all configurations that include
  pci.mak, fix it.
- pvpanic: We can do the same tricks that everywhere to be able to
  compile it out.

To do a better job, we are in trouble because we only have
"config-devices.mak", but not config-devices.h, so we can't disable
part of the tests/files when we don't want them.  Bigger culprits here
are usb and virtio devices, basically all of them depend of the others
one way or another.

Motivation:

- I compile *lots* of times a day, so it is great to be able to
  compile less devices, it takes less time.
- But if I want to do make check, I need to compile basically a full
  configuration for that platform, so we are at square one.

There are still things that still take too long:
- e1000*/virtio-net pxe test.  It takes more than one second for each,
  and we have e1000/virtio-net/e1000p/virtio-net(again).
- qom tests.  We check _all_ machine types here.  In fast mode, IMHO
  we would only want something like pc-3.0 and q35-30 in fast mode
  (in slow mode everything is ok).
- migration tests: yes, they also took around 5-6 seconds in total,
  and we are adding new tests.  Something needs to be done here.

Time to do "make check" on my laptop (reasonably fast laptop from this
Jannuary) is almost 3mins.  This makes it too long to run continously
for testing that I haven't broken anything.

In another submission I wil send some examples on "how" to disable
other drivers that we can't do now.  But it requires that we generate
config-devices.h to be able to apply them (or yet more complicated
things of registration, see how virtio devices needs to be disabled)

Please review, Juan.

Juan Quintela (25):
  configure: We don't want to clean configuration files
  config:  CONFIG_SERIAL* is already in pci.mak
  check: Use land/lor when possible
  check: Only test vmxnet3 when it is compiled in
  check: Only test ne2000 when it is compiled in
  check: Only test eepro100 when it is compiled in
  check: Only test pcnet when it is compiled in
  check: Only test rtl8139 when it is compiled in
  check: Only test es1370 when it is compiled in
  check: Only test ac97 when it is compiled in
  check: Only test hda when it is compiled in
  check: Only test ipack when it is compiled in
  check: Only test isa-testdev when it is compiled in
  check: Only test ioh3420 when it is compiled in
  check: Only test i82801b11 when it is compiled in
  check: Only test sdhci when it is compiled in
  check: Only test wdt_ib700 when it is compiled in
  check: Only test pvpanic when it is compiled in
  check: Only test nvme when it is compiled in
  check: Only test usb-xhci-nec when it is compiled in
  check: Only test usb-ohci when it is compiled in
  check: Only test usb-uhci devices when they are compiled in
  check: Only test usb-ehci when it is compiled in
  check: Only test ivshm when it is compiled in
  check: Only test tpm devices when they are compiled in

 Makefile                                |   2 +-
 default-configs/alpha-softmmu.mak       |   2 -
 default-configs/arm-softmmu.mak         |   2 -
 default-configs/hppa-softmmu.mak        |   3 -
 default-configs/i386-softmmu.mak        |   2 -
 default-configs/mips-softmmu-common.mak |   2 -
 default-configs/ppc-softmmu.mak         |   1 -
 default-configs/ppcemb-softmmu.mak      |   2 -
 default-configs/sh4-softmmu.mak         |   2 -
 default-configs/sh4eb-softmmu.mak       |   2 -
 default-configs/sparc64-softmmu.mak     |   2 -
 default-configs/x86_64-softmmu.mak      |   2 -
 hw/misc/pvpanic.c                       |  11 --
 include/hw/misc/pvpanic.h               |  11 +-
 tests/Makefile.include                  | 144 ++++++++++++------------
 15 files changed, 81 insertions(+), 109 deletions(-)

-- 
2.17.1

^ permalink raw reply	[flat|nested] 55+ messages in thread

end of thread, other threads:[~2018-07-27  8:13 UTC | newest]

Thread overview: 55+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-17 11:33 [Qemu-devel] [PATCH 00/25] Don't "check" disabled drivers Juan Quintela
2018-07-17 11:33 ` [Qemu-devel] [PATCH 01/25] configure: We don't want to clean configuration files Juan Quintela
2018-07-17 12:46   ` Daniel P. Berrangé
2018-07-17 17:05     ` Juan Quintela
2018-07-17 17:18       ` Peter Maydell
2018-07-17 17:27         ` Juan Quintela
2018-07-17 19:30           ` Peter Maydell
2018-07-17 20:22             ` Juan Quintela
2018-07-17 11:33 ` [Qemu-devel] [PATCH 02/25] config: CONFIG_SERIAL* is already in pci.mak Juan Quintela
2018-07-17 11:33 ` [Qemu-devel] [PATCH 03/25] check: Use land/lor when possible Juan Quintela
2018-07-17 11:33 ` [Qemu-devel] [PATCH 04/25] check: Only test vmxnet3 when it is compiled in Juan Quintela
2018-07-17 11:42   ` Thomas Huth
2018-07-17 11:33 ` [Qemu-devel] [PATCH 05/25] check: Only test ne2000 " Juan Quintela
2018-07-17 11:42   ` Thomas Huth
2018-07-17 11:33 ` [Qemu-devel] [PATCH 06/25] check: Only test eepro100 " Juan Quintela
2018-07-17 11:47   ` Thomas Huth
2018-07-17 11:33 ` [Qemu-devel] [PATCH 07/25] check: Only test pcnet " Juan Quintela
2018-07-17 11:43   ` Thomas Huth
2018-07-17 11:33 ` [Qemu-devel] [PATCH 08/25] check: Only test rtl8139 " Juan Quintela
2018-07-17 11:46   ` Thomas Huth
2018-07-17 11:33 ` [Qemu-devel] [PATCH 09/25] check: Only test es1370 " Juan Quintela
2018-07-17 11:52   ` Thomas Huth
2018-07-17 11:33 ` [Qemu-devel] [PATCH 10/25] check: Only test ac97 " Juan Quintela
2018-07-17 11:49   ` Thomas Huth
2018-07-17 11:33 ` [Qemu-devel] [PATCH 11/25] check: Only test hda " Juan Quintela
2018-07-17 11:50   ` Thomas Huth
2018-07-17 11:33 ` [Qemu-devel] [PATCH 12/25] check: Only test ipack " Juan Quintela
2018-07-17 12:09   ` Thomas Huth
2018-07-17 11:33 ` [Qemu-devel] [PATCH 13/25] check: Only test isa-testdev " Juan Quintela
2018-07-17 12:13   ` Thomas Huth
2018-07-17 11:33 ` [Qemu-devel] [PATCH 14/25] check: Only test ioh3420 " Juan Quintela
2018-07-17 12:13   ` Thomas Huth
2018-07-17 11:33 ` [Qemu-devel] [PATCH 15/25] check: Only test i82801b11 " Juan Quintela
2018-07-17 12:14   ` Thomas Huth
2018-07-17 11:33 ` [Qemu-devel] [PATCH 16/25] check: Only test sdhci " Juan Quintela
2018-07-17 11:48   ` Thomas Huth
2018-07-17 11:33 ` [Qemu-devel] [PATCH 17/25] check: Only test wdt_ib700 " Juan Quintela
2018-07-17 11:50   ` Thomas Huth
2018-07-17 11:33 ` [Qemu-devel] [PATCH 18/25] check: Only test pvpanic " Juan Quintela
2018-07-17 12:40   ` Thomas Huth
2018-07-17 11:33 ` [Qemu-devel] [PATCH 19/25] check: Only test nvme " Juan Quintela
2018-07-17 14:00   ` Thomas Huth
2018-07-17 11:33 ` [Qemu-devel] [PATCH 20/25] check: Only test usb-xhci-nec " Juan Quintela
2018-07-17 14:06   ` Thomas Huth
2018-07-17 17:06     ` Juan Quintela
2018-07-26 15:09     ` Juan Quintela
2018-07-27  8:13       ` Thomas Huth
2018-07-17 11:33 ` [Qemu-devel] [PATCH 21/25] check: Only test usb-ohci " Juan Quintela
2018-07-17 14:09   ` Thomas Huth
2018-07-17 11:33 ` [Qemu-devel] [PATCH 22/25] check: Only test usb-uhci devices when they are " Juan Quintela
2018-07-17 14:10   ` Thomas Huth
2018-07-17 11:34 ` [Qemu-devel] [PATCH 23/25] check: Only test usb-ehci when it is " Juan Quintela
2018-07-17 14:10   ` Thomas Huth
2018-07-17 11:34 ` [Qemu-devel] [PATCH 24/25] check: Only test ivshm " Juan Quintela
2018-07-17 11:34 ` [Qemu-devel] [PATCH 25/25] check: Only test tpm devices when they are " Juan Quintela

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