Skip to contentSkip to conversation

Fix ehci-test

PATCH In review Marc-André Lureau 5 participants 9 messages Sep 26, 2019 – Sep 27, 2019

lore
Share & tools
lore
#0 lore raw

cover Fix ehci-test

Hi,

Here are 2 small fixes to fix ehci qtest.

Marc-André Lureau (2):
tests: fix usb-hcd-ehci-test compilation
tests: fix echi/ehci typo

 tests/Makefile.include    | 4 +---
 tests/usb-hcd-ehci-test.c | 4 ++--
 2 files changed, 3 insertions(+), 5 deletions(-)
Signature · 1 line
2.23.0
#1 lore raw

PATCH 1/2 tests: fix usb-hcd-ehci-test compilation

Fixes commit
e5758de4e836c3b2edc2befd904651fc6967d74f ("tests/libqtest: Make qtest_qmp_device_add/del independent from global_qtest")

and commit
dd210749727530cdef7c335040edbf81c3c5d041 ("tests/libqtest: Use libqtest-single.h in tests that require global_qtest").

---
 tests/usb-hcd-ehci-test.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tests/usb-hcd-ehci-test.c +2 -2
index 8bc3e44189..5251d539e9 100644
@@ -8,7 +8,7 @@
  */
 
 #include "qemu/osdep.h"
-#include "libqtest.h"
+#include "libqtest-single.h"
 #include "libqos/pci-pc.h"
 #include "hw/usb/uhci-regs.h"
 #include "hw/usb/ehci-regs.h"
@@ -139,7 +139,7 @@ static void pci_ehci_port_3_hotplug(void)
 
 static void pci_ehci_port_hotplug(void)
 {
-    usb_test_hotplug("ich9-ehci-1", "3", pci_ehci_port_3_hotplug);
+    usb_test_hotplug(global_qtest, "ich9-ehci-1", "3", pci_ehci_port_3_hotplug);
 }
 
 
Signature · 1 line
2.23.0
Reviewed-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] tests: fix usb-hcd-ehci-test compilation

Quoted 29 lines · Marc-André Lureau

Fixes commit
e5758de4e836c3b2edc2befd904651fc6967d74f ("tests/libqtest: Make qtest_qmp_device_add/del independent from global_qtest")

and commit
dd210749727530cdef7c335040edbf81c3c5d041 ("tests/libqtest: Use libqtest-single.h in tests that require global_qtest").

---
 tests/usb-hcd-ehci-test.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tests/usb-hcd-ehci-test.c +1 -1
index 8bc3e44189..5251d539e9 100644
@@ -8,7 +8,7 @@
  */
 
 #include "qemu/osdep.h"
-#include "libqtest.h"
+#include "libqtest-single.h"
 #include "libqos/pci-pc.h"
 #include "hw/usb/uhci-regs.h"
 #include "hw/usb/ehci-regs.h"

tests/usb-hcd-ehci-test.c static void pci_ehci_port_3_hotplug(void) · line 145

Quoted 8 lines
tests/usb-hcd-ehci-test.c +1 -1
@@ -139,7 +139,7 @@ static void pci_ehci_port_3_hotplug(void)
 
 static void pci_ehci_port_hotplug(void)
 {
-    usb_test_hotplug("ich9-ehci-1", "3", pci_ehci_port_3_hotplug);
+    usb_test_hotplug(global_qtest, "ich9-ehci-1", "3", pci_ehci_port_3_hotplug);
 }
 
 
#3 lore raw

Re: [PATCH 1/2] tests: fix usb-hcd-ehci-test compilation

In reply to Marc-André Lureau
Quoted 28 lines · Marc-André Lureau

Fixes commit
e5758de4e836c3b2edc2befd904651fc6967d74f ("tests/libqtest: Make qtest_qmp_device_add/del independent from global_qtest")

and commit
dd210749727530cdef7c335040edbf81c3c5d041 ("tests/libqtest: Use libqtest-single.h in tests that require global_qtest").

---
 tests/usb-hcd-ehci-test.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tests/usb-hcd-ehci-test.c +1 -1
index 8bc3e44189..5251d539e9 100644
@@ -8,7 +8,7 @@
  */
 
 #include "qemu/osdep.h"
-#include "libqtest.h"
+#include "libqtest-single.h"
 #include "libqos/pci-pc.h"
 #include "hw/usb/uhci-regs.h"
 #include "hw/usb/ehci-regs.h"

tests/usb-hcd-ehci-test.c static void pci_ehci_port_3_hotplug(void) · line 143

Quoted 6 lines
tests/usb-hcd-ehci-test.c +1 -1
@@ -139,7 +139,7 @@ static void pci_ehci_port_3_hotplug(void)
 
 static void pci_ehci_port_hotplug(void)
 {
-    usb_test_hotplug("ich9-ehci-1", "3", pci_ehci_port_3_hotplug);
+    usb_test_hotplug(global_qtest, "ich9-ehci-1", "3", pci_ehci_port_3_hotplug);
 }

Thanks, I've queued both patches to my qtest-next branch now:

https://gitlab.com/huth/qemu/commits/qtest-next

Thomas

#4 lore raw

PATCH 2/2 tests: fix echi/ehci typo

In reply to Marc-André Lureau

While at it, simplify using $(land).

---
 tests/Makefile.include | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
tests/Makefile.include +1 -3
index 0595914526..3543451ed3 100644
@@ -182,9 +182,7 @@ check-qtest-i386-$(CONFIG_PVPANIC) += tests/pvpanic-test$(EXESUF)
 check-qtest-i386-$(CONFIG_I82801B11) += tests/i82801b11-test$(EXESUF)
 check-qtest-i386-$(CONFIG_IOH3420) += tests/ioh3420-test$(EXESUF)
 check-qtest-i386-$(CONFIG_USB_UHCI) += tests/usb-hcd-uhci-test$(EXESUF)
-ifeq ($(CONFIG_USB_ECHI)$(CONFIG_USB_UHCI),yy)
-check-qtest-i386-y += tests/usb-hcd-ehci-test$(EXESUF)
-endif
+check-qtest-i386-$(call land,$(CONFIG_USB_EHCI),$(CONFIG_USB_UHCI)) += tests/usb-hcd-ehci-test$(EXESUF)
 check-qtest-i386-$(CONFIG_USB_XHCI_NEC) += tests/usb-hcd-xhci-test$(EXESUF)
 check-qtest-i386-y += tests/cpu-plug-test$(EXESUF)
 check-qtest-i386-y += tests/q35-test$(EXESUF)
Signature · 1 line
2.23.0
Reviewed-by on v1 2/2
#5 lore raw

Re: [PATCH 2/2] tests: fix echi/ehci typo

Quoted 13 lines · Marc-André Lureau

While at it, simplify using $(land).

---
 tests/Makefile.include | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
tests/Makefile.include +0 -0
index 0595914526..3543451ed3 100644

tests/Makefile.include check-qtest-i386-$(CONFIG_PVPANIC) += tests/pvpanic-test$(EXESUF) · line 188

Quoted 10 lines
tests/Makefile.include +1 -3
@@ -182,9 +182,7 @@ check-qtest-i386-$(CONFIG_PVPANIC) += tests/pvpanic-test$(EXESUF)
 check-qtest-i386-$(CONFIG_I82801B11) += tests/i82801b11-test$(EXESUF)
 check-qtest-i386-$(CONFIG_IOH3420) += tests/ioh3420-test$(EXESUF)
 check-qtest-i386-$(CONFIG_USB_UHCI) += tests/usb-hcd-uhci-test$(EXESUF)
-ifeq ($(CONFIG_USB_ECHI)$(CONFIG_USB_UHCI),yy)
-check-qtest-i386-y += tests/usb-hcd-ehci-test$(EXESUF)
-endif
+check-qtest-i386-$(call land,$(CONFIG_USB_EHCI),$(CONFIG_USB_UHCI)) += tests/usb-hcd-ehci-test$(EXESUF)
 check-qtest-i386-$(CONFIG_USB_XHCI_NEC) += tests/usb-hcd-xhci-test$(EXESUF)
 check-qtest-i386-y += tests/cpu-plug-test$(EXESUF)
 check-qtest-i386-y += tests/q35-test$(EXESUF)
Reviewed-by on v1 2/2
#6 lore raw

Re: [PATCH 2/2] tests: fix echi/ehci typo

In reply to Marc-André Lureau
Quoted 3 lines · Marc-André Lureau

While at it, simplify using $(land).

Fixes dad5ddcea3b661c6b8ffd83b9bdf0c56001067a2

tests/Makefile.include check-qtest-i386-$(CONFIG_PVPANIC) += tests/pvpanic-test$(EXESUF) · line 185

Quoted 13 lines
---
 tests/Makefile.include | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
tests/Makefile.include +0 -1
index 0595914526..3543451ed3 100644
@@ -182,9 +182,7 @@ check-qtest-i386-$(CONFIG_PVPANIC) += tests/pvpanic-test$(EXESUF)
 check-qtest-i386-$(CONFIG_I82801B11) += tests/i82801b11-test$(EXESUF)
 check-qtest-i386-$(CONFIG_IOH3420) += tests/ioh3420-test$(EXESUF)
 check-qtest-i386-$(CONFIG_USB_UHCI) += tests/usb-hcd-uhci-test$(EXESUF)
-ifeq ($(CONFIG_USB_ECHI)$(CONFIG_USB_UHCI),yy)

D'oh!

tests/Makefile.include check-qtest-i386-$(CONFIG_PVPANIC) += tests/pvpanic-test$(EXESUF) · line 188

Quoted 6 lines
tests/Makefile.include +1 -2
-check-qtest-i386-y += tests/usb-hcd-ehci-test$(EXESUF)
-endif
+check-qtest-i386-$(call land,$(CONFIG_USB_EHCI),$(CONFIG_USB_UHCI)) += tests/usb-hcd-ehci-test$(EXESUF)
 check-qtest-i386-$(CONFIG_USB_XHCI_NEC) += tests/usb-hcd-xhci-test$(EXESUF)
 check-qtest-i386-y += tests/cpu-plug-test$(EXESUF)
 check-qtest-i386-y += tests/q35-test$(EXESUF)
#7 lore raw

Re: [PATCH 2/2] tests: fix echi/ehci typo

Quoted 6 lines · Thomas Huth
Quoted 3 lines · Marc-André Lureau

While at it, simplify using $(land).

Fixes dad5ddcea3b661c6b8ffd83b9bdf0c56001067a2

More than 1 year silently ignored, nice...

Quoted 5 lines
Quoted 5 lines
---
 tests/Makefile.include | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
Quoted 11 lines

tests/Makefile.include check-qtest-i386-$(CONFIG_PVPANIC) += tests/pvpanic-test$(EXESUF) · line 185

Quoted 9 lines
tests/Makefile.include +0 -1
index 0595914526..3543451ed3 100644
@@ -182,9 +182,7 @@ check-qtest-i386-$(CONFIG_PVPANIC) += tests/pvpanic-test$(EXESUF)
 check-qtest-i386-$(CONFIG_I82801B11) += tests/i82801b11-test$(EXESUF)
 check-qtest-i386-$(CONFIG_IOH3420) += tests/ioh3420-test$(EXESUF)
 check-qtest-i386-$(CONFIG_USB_UHCI) += tests/usb-hcd-uhci-test$(EXESUF)
-ifeq ($(CONFIG_USB_ECHI)$(CONFIG_USB_UHCI),yy)

D'oh!

:)

Quoted 9 lines

tests/Makefile.include check-qtest-i386-$(CONFIG_PVPANIC) += tests/pvpanic-test$(EXESUF) · line 188

Quoted 6 lines
tests/Makefile.include +1 -2
-check-qtest-i386-y += tests/usb-hcd-ehci-test$(EXESUF)
-endif
+check-qtest-i386-$(call land,$(CONFIG_USB_EHCI),$(CONFIG_USB_UHCI)) += tests/usb-hcd-ehci-test$(EXESUF)
 check-qtest-i386-$(CONFIG_USB_XHCI_NEC) += tests/usb-hcd-xhci-test$(EXESUF)
 check-qtest-i386-y += tests/cpu-plug-test$(EXESUF)
 check-qtest-i386-y += tests/q35-test$(EXESUF)
#8 lore raw
In reply to Marc-André Lureau
Patchew URL: https://patchew.org/QEMU/[email protected]/

Patchew URL: https://patchew.org/QEMU/[email protected]/

Hi,

This series failed the 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.

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

libudev no
default devices yes

warning: Python 2 support is deprecated
warning: Python 3 will be required for building future versions of QEMU cross containers no

NOTE: guest cross-compilers enabled: cc
---
qemu-system-aarch64: cannot set up guest memory 'exynos4210.dram0': Cannot allocate memory
Broken pipe
/tmp/qemu-test/src/tests/libqtest.c:140: kill_qemu() tried to terminate QEMU process but encountered exit status 1 (expected 0) ERROR - too few tests run (expected 61, got 1)
make: *** [check-qtest-aarch64] Error 1
make: *** Waiting for unfinished jobs....
TEST check-qtest-x86_64: tests/usb-hcd-xhci-test

The full log is available at
http://patchew.org/logs/[email protected]/testing.docker-quick@centos7/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to [email protected]