All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [[PATH for 3.1] v2 00/18] Don't "check" disabled drivers
@ 2018-08-01 11:09 Juan Quintela
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 01/18] check: Only test vmxnet3 when it is compiled in Juan Quintela
                   ` (17 more replies)
  0 siblings, 18 replies; 21+ messages in thread
From: Juan Quintela @ 2018-08-01 11:09 UTC (permalink / raw)
  To: qemu-devel; +Cc: dgilbert, lvivier, peterx

Hi

this are the patches from v1 that have been reviewed.  Minor changes
in spelled done.  I expect to move those for 3.1.  I will post the
changes and additons on top of this one.

Complain now, or I will send the pull once 3.1 opens.

ToDo:
- I am working on virtio-pci being split
- I plan to integrate virtio-ccw split from Thomas
- I started trying to "untangle" q35 and piix, but it is really deppe
  tangled.

Should I sent the pull request directly, or go through maintainers?

Thanks, Juan.


[v2]
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 (18):
  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 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-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

 hw/misc/pvpanic.c         | 11 -----
 include/hw/misc/pvpanic.h | 11 ++++-
 tests/Makefile.include    | 92 ++++++++++++++++++++-------------------
 3 files changed, 57 insertions(+), 57 deletions(-)

-- 
2.17.1

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

* [Qemu-devel] [[PATH for 3.1] v2 01/18] check: Only test vmxnet3 when it is compiled in
  2018-08-01 11:09 [Qemu-devel] [[PATH for 3.1] v2 00/18] Don't "check" disabled drivers Juan Quintela
@ 2018-08-01 11:09 ` Juan Quintela
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 02/18] check: Only test ne2000 " Juan Quintela
                   ` (16 subsequent siblings)
  17 siblings, 0 replies; 21+ messages in thread
From: Juan Quintela @ 2018-08-01 11:09 UTC (permalink / raw)
  To: qemu-devel; +Cc: dgilbert, lvivier, peterx

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
---
 tests/Makefile.include | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/Makefile.include b/tests/Makefile.include
index a49282704e..11c1463b99 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -272,8 +272,8 @@ check-qtest-i386-y += tests/tco-test$(EXESUF)
 gcov-files-i386-y += hw/watchdog/watchdog.c hw/watchdog/wdt_ib700.c
 check-qtest-i386-y += $(check-qtest-pci-y)
 gcov-files-i386-y += $(gcov-files-pci-y)
-check-qtest-i386-y += tests/vmxnet3-test$(EXESUF)
-gcov-files-i386-y += hw/net/vmxnet3.c
+check-qtest-i386-$(CONFIG_VMXNET3_PCI) += tests/vmxnet3-test$(EXESUF)
+gcov-files-i386-$(CONFIG_VMXNET3_PCI) += hw/net/vmxnet3.c
 gcov-files-i386-y += hw/net/net_rx_pkt.c
 gcov-files-i386-y += hw/net/net_tx_pkt.c
 check-qtest-i386-y += tests/pvpanic-test$(EXESUF)
-- 
2.17.1

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

* [Qemu-devel] [[PATH for 3.1] v2 02/18] check: Only test ne2000 when it is compiled in
  2018-08-01 11:09 [Qemu-devel] [[PATH for 3.1] v2 00/18] Don't "check" disabled drivers Juan Quintela
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 01/18] check: Only test vmxnet3 when it is compiled in Juan Quintela
@ 2018-08-01 11:09 ` Juan Quintela
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 03/18] check: Only test eepro100 " Juan Quintela
                   ` (15 subsequent siblings)
  17 siblings, 0 replies; 21+ messages in thread
From: Juan Quintela @ 2018-08-01 11:09 UTC (permalink / raw)
  To: qemu-devel; +Cc: dgilbert, lvivier, peterx

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
---
 tests/Makefile.include | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/Makefile.include b/tests/Makefile.include
index 11c1463b99..258963810b 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -222,8 +222,8 @@ gcov-files-pci-y += hw/net/pcnet.c
 gcov-files-pci-y += hw/net/pcnet-pci.c
 check-qtest-pci-y += tests/eepro100-test$(EXESUF)
 gcov-files-pci-y += hw/net/eepro100.c
-check-qtest-pci-y += tests/ne2000-test$(EXESUF)
-gcov-files-pci-y += hw/net/ne2000.c
+check-qtest-pci-$(CONFIG_NE2000_PCI) += tests/ne2000-test$(EXESUF)
+gcov-files-pci-$(CONFIG_NE2000_PCI) += hw/net/ne2000.c
 check-qtest-pci-y += tests/nvme-test$(EXESUF)
 gcov-files-pci-y += hw/block/nvme.c
 check-qtest-pci-y += tests/ac97-test$(EXESUF)
-- 
2.17.1

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

* [Qemu-devel] [[PATH for 3.1] v2 03/18] check: Only test eepro100 when it is compiled in
  2018-08-01 11:09 [Qemu-devel] [[PATH for 3.1] v2 00/18] Don't "check" disabled drivers Juan Quintela
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 01/18] check: Only test vmxnet3 when it is compiled in Juan Quintela
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 02/18] check: Only test ne2000 " Juan Quintela
@ 2018-08-01 11:09 ` Juan Quintela
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 04/18] check: Only test pcnet " Juan Quintela
                   ` (14 subsequent siblings)
  17 siblings, 0 replies; 21+ messages in thread
From: Juan Quintela @ 2018-08-01 11:09 UTC (permalink / raw)
  To: qemu-devel; +Cc: dgilbert, lvivier, peterx

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
---
 tests/Makefile.include | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/Makefile.include b/tests/Makefile.include
index 258963810b..8cf2c15daf 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -220,8 +220,8 @@ gcov-files-pci-y += hw/net/rtl8139.c
 check-qtest-pci-y += tests/pcnet-test$(EXESUF)
 gcov-files-pci-y += hw/net/pcnet.c
 gcov-files-pci-y += hw/net/pcnet-pci.c
-check-qtest-pci-y += tests/eepro100-test$(EXESUF)
-gcov-files-pci-y += hw/net/eepro100.c
+check-qtest-pci-$(CONFIG_EEPRO100_PCI) += tests/eepro100-test$(EXESUF)
+gcov-files-pci-$(CONFIG_EEPRO100_PCI) += hw/net/eepro100.c
 check-qtest-pci-$(CONFIG_NE2000_PCI) += tests/ne2000-test$(EXESUF)
 gcov-files-pci-$(CONFIG_NE2000_PCI) += hw/net/ne2000.c
 check-qtest-pci-y += tests/nvme-test$(EXESUF)
-- 
2.17.1

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

* [Qemu-devel] [[PATH for 3.1] v2 04/18] check: Only test pcnet when it is compiled in
  2018-08-01 11:09 [Qemu-devel] [[PATH for 3.1] v2 00/18] Don't "check" disabled drivers Juan Quintela
                   ` (2 preceding siblings ...)
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 03/18] check: Only test eepro100 " Juan Quintela
@ 2018-08-01 11:09 ` Juan Quintela
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 05/18] check: Only test rtl8139 " Juan Quintela
                   ` (13 subsequent siblings)
  17 siblings, 0 replies; 21+ messages in thread
From: Juan Quintela @ 2018-08-01 11:09 UTC (permalink / raw)
  To: qemu-devel; +Cc: dgilbert, lvivier, peterx

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
---
 tests/Makefile.include | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/Makefile.include b/tests/Makefile.include
index 8cf2c15daf..f234a68345 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -217,9 +217,9 @@ check-qtest-pci-y += tests/e1000e-test$(EXESUF)
 gcov-files-pci-y += hw/net/e1000e.c hw/net/e1000e_core.c
 check-qtest-pci-y += tests/rtl8139-test$(EXESUF)
 gcov-files-pci-y += hw/net/rtl8139.c
-check-qtest-pci-y += tests/pcnet-test$(EXESUF)
-gcov-files-pci-y += hw/net/pcnet.c
-gcov-files-pci-y += hw/net/pcnet-pci.c
+check-qtest-pci-$(CONFIG_PCNET_PCI) += tests/pcnet-test$(EXESUF)
+gcov-files-pci-$(CONFIG_PCNET_PCI) += hw/net/pcnet.c
+gcov-files-pci-$(CONFIG_PCNET_PCI) += hw/net/pcnet-pci.c
 check-qtest-pci-$(CONFIG_EEPRO100_PCI) += tests/eepro100-test$(EXESUF)
 gcov-files-pci-$(CONFIG_EEPRO100_PCI) += hw/net/eepro100.c
 check-qtest-pci-$(CONFIG_NE2000_PCI) += tests/ne2000-test$(EXESUF)
-- 
2.17.1

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

* [Qemu-devel] [[PATH for 3.1] v2 05/18] check: Only test rtl8139 when it is compiled in
  2018-08-01 11:09 [Qemu-devel] [[PATH for 3.1] v2 00/18] Don't "check" disabled drivers Juan Quintela
                   ` (3 preceding siblings ...)
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 04/18] check: Only test pcnet " Juan Quintela
@ 2018-08-01 11:09 ` Juan Quintela
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 06/18] check: Only test es1370 " Juan Quintela
                   ` (12 subsequent siblings)
  17 siblings, 0 replies; 21+ messages in thread
From: Juan Quintela @ 2018-08-01 11:09 UTC (permalink / raw)
  To: qemu-devel; +Cc: dgilbert, lvivier, peterx

test-file-redirector uses rtl8139 in everything except s390.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
---
 tests/Makefile.include | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/Makefile.include b/tests/Makefile.include
index f234a68345..14069c0659 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -215,8 +215,8 @@ check-qtest-pci-y += tests/e1000-test$(EXESUF)
 gcov-files-pci-y += hw/net/e1000.c
 check-qtest-pci-y += tests/e1000e-test$(EXESUF)
 gcov-files-pci-y += hw/net/e1000e.c hw/net/e1000e_core.c
-check-qtest-pci-y += tests/rtl8139-test$(EXESUF)
-gcov-files-pci-y += hw/net/rtl8139.c
+check-qtest-pci-$(CONFIG_RTL8139_PCI) += tests/rtl8139-test$(EXESUF)
+gcov-files-pci-$(CONFIG_RTL8139_PCI) += hw/net/rtl8139.c
 check-qtest-pci-$(CONFIG_PCNET_PCI) += tests/pcnet-test$(EXESUF)
 gcov-files-pci-$(CONFIG_PCNET_PCI) += hw/net/pcnet.c
 gcov-files-pci-$(CONFIG_PCNET_PCI) += hw/net/pcnet-pci.c
@@ -306,7 +306,7 @@ check-qtest-i386-$(CONFIG_TPM) += tests/tpm-tis-swtpm-test$(EXESUF)
 check-qtest-i386-$(CONFIG_TPM) += tests/tpm-tis-test$(EXESUF)
 check-qtest-i386-$(CONFIG_SLIRP) += tests/test-netfilter$(EXESUF)
 check-qtest-i386-$(CONFIG_POSIX) += tests/test-filter-mirror$(EXESUF)
-check-qtest-i386-$(CONFIG_POSIX) += tests/test-filter-redirector$(EXESUF)
+check-qtest-i386-$(CONFIG_RTL8139_PCI) += tests/test-filter-redirector$(EXESUF)
 check-qtest-i386-y += tests/migration-test$(EXESUF)
 check-qtest-i386-y += tests/test-x86-cpuid-compat$(EXESUF)
 check-qtest-i386-y += tests/numa-test$(EXESUF)
@@ -356,7 +356,7 @@ gcov-files-ppc64-y += hw/usb/hcd-xhci.c
 check-qtest-ppc64-y += $(check-qtest-virtio-y)
 check-qtest-ppc64-$(CONFIG_SLIRP) += tests/test-netfilter$(EXESUF)
 check-qtest-ppc64-$(CONFIG_POSIX) += tests/test-filter-mirror$(EXESUF)
-check-qtest-ppc64-$(CONFIG_POSIX) += tests/test-filter-redirector$(EXESUF)
+check-qtest-ppc64-$(CONFIG_RTL8139_PCI) += tests/test-filter-redirector$(EXESUF)
 check-qtest-ppc64-y += tests/display-vga-test$(EXESUF)
 check-qtest-ppc64-y += tests/numa-test$(EXESUF)
 check-qtest-ppc64-$(CONFIG_IVSHMEM) += tests/ivshmem-test$(EXESUF)
-- 
2.17.1

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

* [Qemu-devel] [[PATH for 3.1] v2 06/18] check: Only test es1370 when it is compiled in
  2018-08-01 11:09 [Qemu-devel] [[PATH for 3.1] v2 00/18] Don't "check" disabled drivers Juan Quintela
                   ` (4 preceding siblings ...)
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 05/18] check: Only test rtl8139 " Juan Quintela
@ 2018-08-01 11:09 ` Juan Quintela
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 07/18] check: Only test ac97 " Juan Quintela
                   ` (11 subsequent siblings)
  17 siblings, 0 replies; 21+ messages in thread
From: Juan Quintela @ 2018-08-01 11:09 UTC (permalink / raw)
  To: qemu-devel; +Cc: dgilbert, lvivier, peterx

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
---
 tests/Makefile.include | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/Makefile.include b/tests/Makefile.include
index 14069c0659..abce66539f 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -228,8 +228,8 @@ check-qtest-pci-y += tests/nvme-test$(EXESUF)
 gcov-files-pci-y += hw/block/nvme.c
 check-qtest-pci-y += tests/ac97-test$(EXESUF)
 gcov-files-pci-y += hw/audio/ac97.c
-check-qtest-pci-y += tests/es1370-test$(EXESUF)
-gcov-files-pci-y += hw/audio/es1370.c
+check-qtest-pci-$(CONFIG_ES1370) += tests/es1370-test$(EXESUF)
+gcov-files-pci-$(CONFIG_ES1370) += hw/audio/es1370.c
 check-qtest-pci-y += $(check-qtest-virtio-y)
 gcov-files-pci-y += $(gcov-files-virtio-y) hw/virtio/virtio-pci.c
 check-qtest-pci-y += tests/tpci200-test$(EXESUF)
-- 
2.17.1

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

* [Qemu-devel] [[PATH for 3.1] v2 07/18] check: Only test ac97 when it is compiled in
  2018-08-01 11:09 [Qemu-devel] [[PATH for 3.1] v2 00/18] Don't "check" disabled drivers Juan Quintela
                   ` (5 preceding siblings ...)
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 06/18] check: Only test es1370 " Juan Quintela
@ 2018-08-01 11:09 ` Juan Quintela
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 08/18] check: Only test hda " Juan Quintela
                   ` (10 subsequent siblings)
  17 siblings, 0 replies; 21+ messages in thread
From: Juan Quintela @ 2018-08-01 11:09 UTC (permalink / raw)
  To: qemu-devel; +Cc: dgilbert, lvivier, peterx

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
---
 tests/Makefile.include | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/Makefile.include b/tests/Makefile.include
index abce66539f..89d58540fc 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -226,8 +226,8 @@ check-qtest-pci-$(CONFIG_NE2000_PCI) += tests/ne2000-test$(EXESUF)
 gcov-files-pci-$(CONFIG_NE2000_PCI) += hw/net/ne2000.c
 check-qtest-pci-y += tests/nvme-test$(EXESUF)
 gcov-files-pci-y += hw/block/nvme.c
-check-qtest-pci-y += tests/ac97-test$(EXESUF)
-gcov-files-pci-y += hw/audio/ac97.c
+check-qtest-pci-$(CONFIG_AC97) += tests/ac97-test$(EXESUF)
+gcov-files-pci-$(CONFIG_AC97) += hw/audio/ac97.c
 check-qtest-pci-$(CONFIG_ES1370) += tests/es1370-test$(EXESUF)
 gcov-files-pci-$(CONFIG_ES1370) += hw/audio/es1370.c
 check-qtest-pci-y += $(check-qtest-virtio-y)
-- 
2.17.1

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

* [Qemu-devel] [[PATH for 3.1] v2 08/18] check: Only test hda when it is compiled in
  2018-08-01 11:09 [Qemu-devel] [[PATH for 3.1] v2 00/18] Don't "check" disabled drivers Juan Quintela
                   ` (6 preceding siblings ...)
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 07/18] check: Only test ac97 " Juan Quintela
@ 2018-08-01 11:09 ` Juan Quintela
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 09/18] check: Only test ipack " Juan Quintela
                   ` (9 subsequent siblings)
  17 siblings, 0 replies; 21+ messages in thread
From: Juan Quintela @ 2018-08-01 11:09 UTC (permalink / raw)
  To: qemu-devel; +Cc: dgilbert, lvivier, peterx

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
---
 tests/Makefile.include | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/Makefile.include b/tests/Makefile.include
index 89d58540fc..5eac0528b2 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -243,8 +243,8 @@ gcov-files-pci-y += hw/display/vga-pci.c
 gcov-files-pci-y += hw/display/virtio-gpu.c
 gcov-files-pci-y += hw/display/virtio-gpu-pci.c
 gcov-files-pci-$(CONFIG_VIRTIO_VGA) += hw/display/virtio-vga.c
-check-qtest-pci-y += tests/intel-hda-test$(EXESUF)
-gcov-files-pci-y += hw/audio/intel-hda.c hw/audio/hda-codec.c
+check-qtest-pci-$(CONFIG_HDA) += tests/intel-hda-test$(EXESUF)
+gcov-files-pci-$(CONFIG_HDA) += hw/audio/intel-hda.c hw/audio/hda-codec.c
 check-qtest-pci-$(CONFIG_IVSHMEM) += tests/ivshmem-test$(EXESUF)
 gcov-files-pci-y += hw/misc/ivshmem.c
 check-qtest-pci-y += tests/megasas-test$(EXESUF)
-- 
2.17.1

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

* [Qemu-devel] [[PATH for 3.1] v2 09/18] check: Only test ipack when it is compiled in
  2018-08-01 11:09 [Qemu-devel] [[PATH for 3.1] v2 00/18] Don't "check" disabled drivers Juan Quintela
                   ` (7 preceding siblings ...)
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 08/18] check: Only test hda " Juan Quintela
@ 2018-08-01 11:09 ` Juan Quintela
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 10/18] check: Only test ioh3420 " Juan Quintela
                   ` (8 subsequent siblings)
  17 siblings, 0 replies; 21+ messages in thread
From: Juan Quintela @ 2018-08-01 11:09 UTC (permalink / raw)
  To: qemu-devel; +Cc: dgilbert, lvivier, peterx

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
---
 tests/Makefile.include | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/Makefile.include b/tests/Makefile.include
index 5eac0528b2..63d3dc0953 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -232,10 +232,10 @@ check-qtest-pci-$(CONFIG_ES1370) += tests/es1370-test$(EXESUF)
 gcov-files-pci-$(CONFIG_ES1370) += hw/audio/es1370.c
 check-qtest-pci-y += $(check-qtest-virtio-y)
 gcov-files-pci-y += $(gcov-files-virtio-y) hw/virtio/virtio-pci.c
-check-qtest-pci-y += tests/tpci200-test$(EXESUF)
-gcov-files-pci-y += hw/ipack/tpci200.c
-check-qtest-pci-y += $(check-qtest-ipack-y)
-gcov-files-pci-y += $(gcov-files-ipack-y)
+check-qtest-pci-$(CONFIG_IPACK) += tests/tpci200-test$(EXESUF)
+gcov-files-pci-$(CONFIG_IPACK) += hw/ipack/tpci200.c
+check-qtest-pci-$(CONFIG_IPACK) += $(check-qtest-ipack-y)
+gcov-files-pci-$(CONFIG_IPACK) += $(gcov-files-ipack-y)
 check-qtest-pci-y += tests/display-vga-test$(EXESUF)
 gcov-files-pci-y += hw/display/vga.c
 gcov-files-pci-y += hw/display/cirrus_vga.c
-- 
2.17.1

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

* [Qemu-devel] [[PATH for 3.1] v2 10/18] check: Only test ioh3420 when it is compiled in
  2018-08-01 11:09 [Qemu-devel] [[PATH for 3.1] v2 00/18] Don't "check" disabled drivers Juan Quintela
                   ` (8 preceding siblings ...)
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 09/18] check: Only test ipack " Juan Quintela
@ 2018-08-01 11:09 ` Juan Quintela
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 11/18] check: Only test i82801b11 " Juan Quintela
                   ` (7 subsequent siblings)
  17 siblings, 0 replies; 21+ messages in thread
From: Juan Quintela @ 2018-08-01 11:09 UTC (permalink / raw)
  To: qemu-devel; +Cc: dgilbert, lvivier, peterx

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
---
 tests/Makefile.include | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/Makefile.include b/tests/Makefile.include
index 63d3dc0953..fb3f2dd55d 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -280,8 +280,8 @@ check-qtest-i386-y += tests/pvpanic-test$(EXESUF)
 gcov-files-i386-y += i386-softmmu/hw/misc/pvpanic.c
 check-qtest-i386-y += tests/i82801b11-test$(EXESUF)
 gcov-files-i386-y += hw/pci-bridge/i82801b11.c
-check-qtest-i386-y += tests/ioh3420-test$(EXESUF)
-gcov-files-i386-y += hw/pci-bridge/ioh3420.c
+check-qtest-i386-$(CONFIG_IOH3420) += tests/ioh3420-test$(EXESUF)
+gcov-files-i386-$(CONFIG_IOH3420) += hw/pci-bridge/ioh3420.c
 check-qtest-i386-y += tests/usb-hcd-ohci-test$(EXESUF)
 gcov-files-i386-y += hw/usb/hcd-ohci.c
 check-qtest-i386-y += tests/usb-hcd-uhci-test$(EXESUF)
-- 
2.17.1

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

* [Qemu-devel] [[PATH for 3.1] v2 11/18] check: Only test i82801b11 when it is compiled in
  2018-08-01 11:09 [Qemu-devel] [[PATH for 3.1] v2 00/18] Don't "check" disabled drivers Juan Quintela
                   ` (9 preceding siblings ...)
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 10/18] check: Only test ioh3420 " Juan Quintela
@ 2018-08-01 11:09 ` Juan Quintela
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 12/18] check: Only test sdhci " Juan Quintela
                   ` (6 subsequent siblings)
  17 siblings, 0 replies; 21+ messages in thread
From: Juan Quintela @ 2018-08-01 11:09 UTC (permalink / raw)
  To: qemu-devel; +Cc: dgilbert, lvivier, peterx

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
---
 tests/Makefile.include | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/Makefile.include b/tests/Makefile.include
index fb3f2dd55d..c9768086be 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -278,8 +278,8 @@ gcov-files-i386-y += hw/net/net_rx_pkt.c
 gcov-files-i386-y += hw/net/net_tx_pkt.c
 check-qtest-i386-y += tests/pvpanic-test$(EXESUF)
 gcov-files-i386-y += i386-softmmu/hw/misc/pvpanic.c
-check-qtest-i386-y += tests/i82801b11-test$(EXESUF)
-gcov-files-i386-y += hw/pci-bridge/i82801b11.c
+check-qtest-i386-$(CONFIG_I82801B11) += tests/i82801b11-test$(EXESUF)
+gcov-files-i386-$(CONFIG_I82801B11) += hw/pci-bridge/i82801b11.c
 check-qtest-i386-$(CONFIG_IOH3420) += tests/ioh3420-test$(EXESUF)
 gcov-files-i386-$(CONFIG_IOH3420) += hw/pci-bridge/ioh3420.c
 check-qtest-i386-y += tests/usb-hcd-ohci-test$(EXESUF)
-- 
2.17.1

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

* [Qemu-devel] [[PATH for 3.1] v2 12/18] check: Only test sdhci when it is compiled in
  2018-08-01 11:09 [Qemu-devel] [[PATH for 3.1] v2 00/18] Don't "check" disabled drivers Juan Quintela
                   ` (10 preceding siblings ...)
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 11/18] check: Only test i82801b11 " Juan Quintela
@ 2018-08-01 11:09 ` Juan Quintela
  2018-08-01 15:27   ` no-reply
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 13/18] check: Only test wdt_ib700 " Juan Quintela
                   ` (5 subsequent siblings)
  17 siblings, 1 reply; 21+ messages in thread
From: Juan Quintela @ 2018-08-01 11:09 UTC (permalink / raw)
  To: qemu-devel; +Cc: dgilbert, lvivier, peterx

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
---
 tests/Makefile.include | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/Makefile.include b/tests/Makefile.include
index c9768086be..42f09dbfdf 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -311,7 +311,7 @@ check-qtest-i386-y += tests/migration-test$(EXESUF)
 check-qtest-i386-y += tests/test-x86-cpuid-compat$(EXESUF)
 check-qtest-i386-y += tests/numa-test$(EXESUF)
 check-qtest-x86_64-y += $(check-qtest-i386-y)
-check-qtest-x86_64-y += tests/sdhci-test$(EXESUF)
+check-qtest-x86_64-$(CONFIG_SDHCI) += tests/sdhci-test$(EXESUF)
 gcov-files-i386-y += i386-softmmu/hw/timer/mc146818rtc.c
 gcov-files-x86_64-y = $(subst i386-softmmu/,x86_64-softmmu/,$(gcov-files-i386-y))
 
@@ -385,10 +385,10 @@ gcov-files-arm-y += arm-softmmu/hw/block/virtio-blk.c
 check-qtest-arm-y += tests/test-arm-mptimer$(EXESUF)
 gcov-files-arm-y += hw/timer/arm_mptimer.c
 check-qtest-arm-y += tests/boot-serial-test$(EXESUF)
-check-qtest-arm-y += tests/sdhci-test$(EXESUF)
+check-qtest-arm-$(CONFIG_SDHCI) += tests/sdhci-test$(EXESUF)
 
 check-qtest-aarch64-y = tests/numa-test$(EXESUF)
-check-qtest-aarch64-y += tests/sdhci-test$(EXESUF)
+check-qtest-aarch64-$(CONFIG_SDHCI) += tests/sdhci-test$(EXESUF)
 check-qtest-aarch64-y += tests/boot-serial-test$(EXESUF)
 
 check-qtest-microblazeel-y = $(check-qtest-microblaze-y)
-- 
2.17.1

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

* [Qemu-devel] [[PATH for 3.1] v2 13/18] check: Only test wdt_ib700 when it is compiled in
  2018-08-01 11:09 [Qemu-devel] [[PATH for 3.1] v2 00/18] Don't "check" disabled drivers Juan Quintela
                   ` (11 preceding siblings ...)
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 12/18] check: Only test sdhci " Juan Quintela
@ 2018-08-01 11:09 ` Juan Quintela
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 14/18] check: Only test pvpanic " Juan Quintela
                   ` (4 subsequent siblings)
  17 siblings, 0 replies; 21+ messages in thread
From: Juan Quintela @ 2018-08-01 11:09 UTC (permalink / raw)
  To: qemu-devel; +Cc: dgilbert, lvivier, peterx

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
---
 tests/Makefile.include | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/Makefile.include b/tests/Makefile.include
index 42f09dbfdf..edbd391f04 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -267,9 +267,9 @@ check-qtest-i386-y += tests/ipmi-bt-test$(EXESUF)
 check-qtest-i386-y += tests/i440fx-test$(EXESUF)
 check-qtest-i386-y += tests/fw_cfg-test$(EXESUF)
 check-qtest-i386-y += tests/drive_del-test$(EXESUF)
-check-qtest-i386-y += tests/wdt_ib700-test$(EXESUF)
+check-qtest-i386-$(CONFIG_WDT_IB700) += tests/wdt_ib700-test$(EXESUF)
+gcov-files-i386-$(CONFIG_WDT_IB700) += hw/watchdog/watchdog.c hw/watchdog/wdt_ib700.c
 check-qtest-i386-y += tests/tco-test$(EXESUF)
-gcov-files-i386-y += hw/watchdog/watchdog.c hw/watchdog/wdt_ib700.c
 check-qtest-i386-y += $(check-qtest-pci-y)
 gcov-files-i386-y += $(gcov-files-pci-y)
 check-qtest-i386-$(CONFIG_VMXNET3_PCI) += tests/vmxnet3-test$(EXESUF)
-- 
2.17.1

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

* [Qemu-devel] [[PATH for 3.1] v2 14/18] check: Only test pvpanic when it is compiled in
  2018-08-01 11:09 [Qemu-devel] [[PATH for 3.1] v2 00/18] Don't "check" disabled drivers Juan Quintela
                   ` (12 preceding siblings ...)
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 13/18] check: Only test wdt_ib700 " Juan Quintela
@ 2018-08-01 11:09 ` Juan Quintela
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 15/18] check: Only test nvme " Juan Quintela
                   ` (3 subsequent siblings)
  17 siblings, 0 replies; 21+ messages in thread
From: Juan Quintela @ 2018-08-01 11:09 UTC (permalink / raw)
  To: qemu-devel; +Cc: dgilbert, lvivier, peterx

It was not possible to compile out pvpanic.  Use the same trick
than applesmc.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
---
 hw/misc/pvpanic.c         | 11 -----------
 include/hw/misc/pvpanic.h | 11 ++++++++++-
 tests/Makefile.include    |  4 ++--
 3 files changed, 12 insertions(+), 14 deletions(-)

diff --git a/hw/misc/pvpanic.c b/hw/misc/pvpanic.c
index b26250dec9..9d8961ba0c 100644
--- a/hw/misc/pvpanic.c
+++ b/hw/misc/pvpanic.c
@@ -99,17 +99,6 @@ static void pvpanic_isa_realizefn(DeviceState *dev, Error **errp)
     isa_register_ioport(d, &s->io, s->ioport);
 }
 
-#define PVPANIC_IOPORT_PROP "ioport"
-
-uint16_t pvpanic_port(void)
-{
-    Object *o = object_resolve_path_type("", TYPE_PVPANIC, NULL);
-    if (!o) {
-        return 0;
-    }
-    return object_property_get_uint(o, PVPANIC_IOPORT_PROP, NULL);
-}
-
 static Property pvpanic_isa_properties[] = {
     DEFINE_PROP_UINT16(PVPANIC_IOPORT_PROP, PVPanicState, ioport, 0x505),
     DEFINE_PROP_END_OF_LIST(),
diff --git a/include/hw/misc/pvpanic.h b/include/hw/misc/pvpanic.h
index 36a54e270c..1ee071a703 100644
--- a/include/hw/misc/pvpanic.h
+++ b/include/hw/misc/pvpanic.h
@@ -16,6 +16,15 @@
 
 #define TYPE_PVPANIC "pvpanic"
 
-uint16_t pvpanic_port(void);
+#define PVPANIC_IOPORT_PROP "ioport"
+
+static inline uint16_t pvpanic_port(void)
+{
+    Object *o = object_resolve_path_type("", TYPE_PVPANIC, NULL);
+    if (!o) {
+        return 0;
+    }
+    return object_property_get_uint(o, PVPANIC_IOPORT_PROP, NULL);
+}
 
 #endif
diff --git a/tests/Makefile.include b/tests/Makefile.include
index edbd391f04..b9fb80b461 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -276,8 +276,8 @@ check-qtest-i386-$(CONFIG_VMXNET3_PCI) += tests/vmxnet3-test$(EXESUF)
 gcov-files-i386-$(CONFIG_VMXNET3_PCI) += hw/net/vmxnet3.c
 gcov-files-i386-y += hw/net/net_rx_pkt.c
 gcov-files-i386-y += hw/net/net_tx_pkt.c
-check-qtest-i386-y += tests/pvpanic-test$(EXESUF)
-gcov-files-i386-y += i386-softmmu/hw/misc/pvpanic.c
+check-qtest-i386-$(CONFIG_PVPANIC) += tests/pvpanic-test$(EXESUF)
+gcov-files-i386-$(CONFIG_PVPANIC) += i386-softmmu/hw/misc/pvpanic.c
 check-qtest-i386-$(CONFIG_I82801B11) += tests/i82801b11-test$(EXESUF)
 gcov-files-i386-$(CONFIG_I82801B11) += hw/pci-bridge/i82801b11.c
 check-qtest-i386-$(CONFIG_IOH3420) += tests/ioh3420-test$(EXESUF)
-- 
2.17.1

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

* [Qemu-devel] [[PATH for 3.1] v2 15/18] check: Only test nvme when it is compiled in
  2018-08-01 11:09 [Qemu-devel] [[PATH for 3.1] v2 00/18] Don't "check" disabled drivers Juan Quintela
                   ` (13 preceding siblings ...)
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 14/18] check: Only test pvpanic " Juan Quintela
@ 2018-08-01 11:09 ` Juan Quintela
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 16/18] check: Only test usb-ohci " Juan Quintela
                   ` (2 subsequent siblings)
  17 siblings, 0 replies; 21+ messages in thread
From: Juan Quintela @ 2018-08-01 11:09 UTC (permalink / raw)
  To: qemu-devel; +Cc: dgilbert, lvivier, peterx

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
---
 tests/Makefile.include | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/Makefile.include b/tests/Makefile.include
index b9fb80b461..2642500659 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -224,8 +224,8 @@ check-qtest-pci-$(CONFIG_EEPRO100_PCI) += tests/eepro100-test$(EXESUF)
 gcov-files-pci-$(CONFIG_EEPRO100_PCI) += hw/net/eepro100.c
 check-qtest-pci-$(CONFIG_NE2000_PCI) += tests/ne2000-test$(EXESUF)
 gcov-files-pci-$(CONFIG_NE2000_PCI) += hw/net/ne2000.c
-check-qtest-pci-y += tests/nvme-test$(EXESUF)
-gcov-files-pci-y += hw/block/nvme.c
+check-qtest-pci-$(CONFIG_NVME_PCI) += tests/nvme-test$(EXESUF)
+gcov-files-pci-$(CONFIG_NVME_PCI) += hw/block/nvme.c
 check-qtest-pci-$(CONFIG_AC97) += tests/ac97-test$(EXESUF)
 gcov-files-pci-$(CONFIG_AC97) += hw/audio/ac97.c
 check-qtest-pci-$(CONFIG_ES1370) += tests/es1370-test$(EXESUF)
-- 
2.17.1

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

* [Qemu-devel] [[PATH for 3.1] v2 16/18] check: Only test usb-ohci when it is compiled in
  2018-08-01 11:09 [Qemu-devel] [[PATH for 3.1] v2 00/18] Don't "check" disabled drivers Juan Quintela
                   ` (14 preceding siblings ...)
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 15/18] check: Only test nvme " Juan Quintela
@ 2018-08-01 11:09 ` Juan Quintela
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 17/18] check: Only test usb-uhci devices when they are " Juan Quintela
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 18/18] check: Only test usb-ehci when it is " Juan Quintela
  17 siblings, 0 replies; 21+ messages in thread
From: Juan Quintela @ 2018-08-01 11:09 UTC (permalink / raw)
  To: qemu-devel; +Cc: dgilbert, lvivier, peterx

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
---
 tests/Makefile.include | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/Makefile.include b/tests/Makefile.include
index 2642500659..353f068f3b 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -282,8 +282,8 @@ check-qtest-i386-$(CONFIG_I82801B11) += tests/i82801b11-test$(EXESUF)
 gcov-files-i386-$(CONFIG_I82801B11) += hw/pci-bridge/i82801b11.c
 check-qtest-i386-$(CONFIG_IOH3420) += tests/ioh3420-test$(EXESUF)
 gcov-files-i386-$(CONFIG_IOH3420) += hw/pci-bridge/ioh3420.c
-check-qtest-i386-y += tests/usb-hcd-ohci-test$(EXESUF)
-gcov-files-i386-y += hw/usb/hcd-ohci.c
+check-qtest-i386-$(CONFIG_USB_OHCI) += tests/usb-hcd-ohci-test$(EXESUF)
+gcov-files-i386-$(CONFIG_USB_OHCI) += hw/usb/hcd-ohci.c
 check-qtest-i386-y += tests/usb-hcd-uhci-test$(EXESUF)
 gcov-files-i386-y += hw/usb/hcd-uhci.c
 check-qtest-i386-y += tests/usb-hcd-ehci-test$(EXESUF)
@@ -347,8 +347,8 @@ check-qtest-ppc64-y += tests/pnv-xscom-test$(EXESUF)
 check-qtest-ppc64-y += tests/migration-test$(EXESUF)
 check-qtest-ppc64-y += tests/rtas-test$(EXESUF)
 check-qtest-ppc64-$(CONFIG_SLIRP) += tests/pxe-test$(EXESUF)
-check-qtest-ppc64-y += tests/usb-hcd-ohci-test$(EXESUF)
-gcov-files-ppc64-y += hw/usb/hcd-ohci.c
+check-qtest-ppc64-$(CONFIG_USB_OHCI) += tests/usb-hcd-ohci-test$(EXESUF)
+gcov-files-ppc64-$(CONFIG_USB_OHCI) += hw/usb/hcd-ohci.c
 check-qtest-ppc64-y += tests/usb-hcd-uhci-test$(EXESUF)
 gcov-files-ppc64-y += hw/usb/hcd-uhci.c
 check-qtest-ppc64-y += tests/usb-hcd-xhci-test$(EXESUF)
-- 
2.17.1

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

* [Qemu-devel] [[PATH for 3.1] v2 17/18] check: Only test usb-uhci devices when they are compiled in
  2018-08-01 11:09 [Qemu-devel] [[PATH for 3.1] v2 00/18] Don't "check" disabled drivers Juan Quintela
                   ` (15 preceding siblings ...)
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 16/18] check: Only test usb-ohci " Juan Quintela
@ 2018-08-01 11:09 ` Juan Quintela
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 18/18] check: Only test usb-ehci when it is " Juan Quintela
  17 siblings, 0 replies; 21+ messages in thread
From: Juan Quintela @ 2018-08-01 11:09 UTC (permalink / raw)
  To: qemu-devel; +Cc: dgilbert, lvivier, peterx

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
---
 tests/Makefile.include | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/Makefile.include b/tests/Makefile.include
index 353f068f3b..f3f8ba48fb 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -284,8 +284,8 @@ check-qtest-i386-$(CONFIG_IOH3420) += tests/ioh3420-test$(EXESUF)
 gcov-files-i386-$(CONFIG_IOH3420) += hw/pci-bridge/ioh3420.c
 check-qtest-i386-$(CONFIG_USB_OHCI) += tests/usb-hcd-ohci-test$(EXESUF)
 gcov-files-i386-$(CONFIG_USB_OHCI) += hw/usb/hcd-ohci.c
-check-qtest-i386-y += tests/usb-hcd-uhci-test$(EXESUF)
-gcov-files-i386-y += hw/usb/hcd-uhci.c
+check-qtest-i386-$(CONFIG_USB_UHCI) += tests/usb-hcd-uhci-test$(EXESUF)
+gcov-files-i386-$(CONFIG_USB_UHCI) += hw/usb/hcd-uhci.c
 check-qtest-i386-y += tests/usb-hcd-ehci-test$(EXESUF)
 gcov-files-i386-y += hw/usb/hcd-ehci.c
 gcov-files-i386-y += hw/usb/dev-hid.c
@@ -349,8 +349,8 @@ check-qtest-ppc64-y += tests/rtas-test$(EXESUF)
 check-qtest-ppc64-$(CONFIG_SLIRP) += tests/pxe-test$(EXESUF)
 check-qtest-ppc64-$(CONFIG_USB_OHCI) += tests/usb-hcd-ohci-test$(EXESUF)
 gcov-files-ppc64-$(CONFIG_USB_OHCI) += hw/usb/hcd-ohci.c
-check-qtest-ppc64-y += tests/usb-hcd-uhci-test$(EXESUF)
-gcov-files-ppc64-y += hw/usb/hcd-uhci.c
+check-qtest-ppc64-$(CONFIG_USB_UHCI) += tests/usb-hcd-uhci-test$(EXESUF)
+gcov-files-ppc64-$(CONFIG_USB_UHCI) += hw/usb/hcd-uhci.c
 check-qtest-ppc64-y += tests/usb-hcd-xhci-test$(EXESUF)
 gcov-files-ppc64-y += hw/usb/hcd-xhci.c
 check-qtest-ppc64-y += $(check-qtest-virtio-y)
-- 
2.17.1

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

* [Qemu-devel] [[PATH for 3.1] v2 18/18] check: Only test usb-ehci when it is compiled in
  2018-08-01 11:09 [Qemu-devel] [[PATH for 3.1] v2 00/18] Don't "check" disabled drivers Juan Quintela
                   ` (16 preceding siblings ...)
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 17/18] check: Only test usb-uhci devices when they are " Juan Quintela
@ 2018-08-01 11:09 ` Juan Quintela
  2018-08-01 11:47   ` Thomas Huth
  17 siblings, 1 reply; 21+ messages in thread
From: Juan Quintela @ 2018-08-01 11:09 UTC (permalink / raw)
  To: qemu-devel; +Cc: dgilbert, lvivier, peterx

The ehci test also test uhci.  Welcome to the worderfull world of USB.

Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 tests/Makefile.include | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/Makefile.include b/tests/Makefile.include
index f3f8ba48fb..d6f5cc9ccc 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -286,8 +286,10 @@ check-qtest-i386-$(CONFIG_USB_OHCI) += tests/usb-hcd-ohci-test$(EXESUF)
 gcov-files-i386-$(CONFIG_USB_OHCI) += hw/usb/hcd-ohci.c
 check-qtest-i386-$(CONFIG_USB_UHCI) += tests/usb-hcd-uhci-test$(EXESUF)
 gcov-files-i386-$(CONFIG_USB_UHCI) += hw/usb/hcd-uhci.c
+ifeq ($(CONFIG_USB_ECHI)$(CONFIG_USB_UHCI),yy)
 check-qtest-i386-y += tests/usb-hcd-ehci-test$(EXESUF)
-gcov-files-i386-y += hw/usb/hcd-ehci.c
+endif
+gcov-files-i386-$(CONFIG_USB_EHCI) += hw/usb/hcd-ehci.c
 gcov-files-i386-y += hw/usb/dev-hid.c
 gcov-files-i386-y += hw/usb/dev-storage.c
 check-qtest-i386-y += tests/usb-hcd-xhci-test$(EXESUF)
-- 
2.17.1

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

* Re: [Qemu-devel] [[PATH for 3.1] v2 18/18] check: Only test usb-ehci when it is compiled in
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 18/18] check: Only test usb-ehci when it is " Juan Quintela
@ 2018-08-01 11:47   ` Thomas Huth
  0 siblings, 0 replies; 21+ messages in thread
From: Thomas Huth @ 2018-08-01 11:47 UTC (permalink / raw)
  To: Juan Quintela, qemu-devel; +Cc: lvivier, dgilbert, peterx, Gerd Hoffmann

On 08/01/2018 01:09 PM, Juan Quintela wrote:
> The ehci test also test uhci.  Welcome to the worderfull world of USB.
> 
> Signed-off-by: Juan Quintela <quintela@redhat.com>
> ---
>  tests/Makefile.include | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/Makefile.include b/tests/Makefile.include
> index f3f8ba48fb..d6f5cc9ccc 100644
> --- a/tests/Makefile.include
> +++ b/tests/Makefile.include
> @@ -286,8 +286,10 @@ check-qtest-i386-$(CONFIG_USB_OHCI) += tests/usb-hcd-ohci-test$(EXESUF)
>  gcov-files-i386-$(CONFIG_USB_OHCI) += hw/usb/hcd-ohci.c
>  check-qtest-i386-$(CONFIG_USB_UHCI) += tests/usb-hcd-uhci-test$(EXESUF)
>  gcov-files-i386-$(CONFIG_USB_UHCI) += hw/usb/hcd-uhci.c
> +ifeq ($(CONFIG_USB_ECHI)$(CONFIG_USB_UHCI),yy)
>  check-qtest-i386-y += tests/usb-hcd-ehci-test$(EXESUF)
> -gcov-files-i386-y += hw/usb/hcd-ehci.c
> +endif
> +gcov-files-i386-$(CONFIG_USB_EHCI) += hw/usb/hcd-ehci.c
>  gcov-files-i386-y += hw/usb/dev-hid.c
>  gcov-files-i386-y += hw/usb/dev-storage.c
>  check-qtest-i386-y += tests/usb-hcd-xhci-test$(EXESUF)
> 

Reviewed-by: Thomas Huth <thuth@redhat.com>

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

* Re: [Qemu-devel] [[PATH for 3.1] v2 12/18] check: Only test sdhci when it is compiled in
  2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 12/18] check: Only test sdhci " Juan Quintela
@ 2018-08-01 15:27   ` no-reply
  0 siblings, 0 replies; 21+ messages in thread
From: no-reply @ 2018-08-01 15:27 UTC (permalink / raw)
  To: quintela; +Cc: famz, qemu-devel, lvivier, dgilbert, peterx

Hi,

This series failed docker-quick@centos7 build test. Please find the testing commands and
their output below. If you have Docker installed, you can probably reproduce it
locally.

Type: series
Message-id: 20180801110952.5590-13-quintela@redhat.com
Subject: [Qemu-devel] [[PATH for 3.1] v2 12/18] check: Only test sdhci when it is compiled in

=== TEST SCRIPT BEGIN ===
#!/bin/bash
time make docker-test-quick@centos7 SHOW_ENV=1 J=8
=== TEST SCRIPT END ===

Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
error: Could not fetch 3c8cf5a9c21ff8782164d1def7f44bd888713384
Traceback (most recent call last):
  File "patchew-tester/src/patchew-cli", line 519, in test_one
    git_clone_repo(clone, r["repo"], r["head"], logf, True)
  File "patchew-tester/src/patchew-cli", line 48, in git_clone_repo
    stdout=logf, stderr=logf)
  File "/usr/lib64/python3.6/subprocess.py", line 291, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['git', 'remote', 'add', '-f', '--mirror=fetch', '3c8cf5a9c21ff8782164d1def7f44bd888713384', 'https://github.com/patchew-project/qemu']' returned non-zero exit status 1.



---
Email generated automatically by Patchew [http://patchew.org/].
Please send your feedback to patchew-devel@redhat.com

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

end of thread, other threads:[~2018-08-01 15:43 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-01 11:09 [Qemu-devel] [[PATH for 3.1] v2 00/18] Don't "check" disabled drivers Juan Quintela
2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 01/18] check: Only test vmxnet3 when it is compiled in Juan Quintela
2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 02/18] check: Only test ne2000 " Juan Quintela
2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 03/18] check: Only test eepro100 " Juan Quintela
2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 04/18] check: Only test pcnet " Juan Quintela
2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 05/18] check: Only test rtl8139 " Juan Quintela
2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 06/18] check: Only test es1370 " Juan Quintela
2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 07/18] check: Only test ac97 " Juan Quintela
2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 08/18] check: Only test hda " Juan Quintela
2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 09/18] check: Only test ipack " Juan Quintela
2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 10/18] check: Only test ioh3420 " Juan Quintela
2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 11/18] check: Only test i82801b11 " Juan Quintela
2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 12/18] check: Only test sdhci " Juan Quintela
2018-08-01 15:27   ` no-reply
2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 13/18] check: Only test wdt_ib700 " Juan Quintela
2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 14/18] check: Only test pvpanic " Juan Quintela
2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 15/18] check: Only test nvme " Juan Quintela
2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 16/18] check: Only test usb-ohci " Juan Quintela
2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 17/18] check: Only test usb-uhci devices when they are " Juan Quintela
2018-08-01 11:09 ` [Qemu-devel] [[PATH for 3.1] v2 18/18] check: Only test usb-ehci when it is " Juan Quintela
2018-08-01 11:47   ` Thomas Huth

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.