Fix ehci-test
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
PATCH 1/2 tests: fix usb-hcd-ehci-test compilation
Fixes commite5758de4e836c3b2edc2befd904651fc6967d74f ("tests/libqtest: Make qtest_qmp_device_add/del independent from global_qtest")
and commitdd210749727530cdef7c335040edbf81c3c5d041 ("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
@@ -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
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 fromglobal_qtest")and commit
dd210749727530cdef7c335040edbf81c3c5d041("tests/libqtest: Uselibqtest-single.hin tests that requireglobal_qtest").Cc Thomas Huth <[email protected]>Signed-off-by Marc-André Lureau <[email protected]>--- tests/usb-hcd-ehci-test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)tests/usb-hcd-ehci-test.c +1
-1@@ -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); }
Re: [PATCH 1/2] tests: fix usb-hcd-ehci-test compilation
In reply to Marc-André LureauQuoted 28 lines · Marc-André Lureau
Fixes commit
e5758de4e836c3b2edc2befd904651fc6967d74f("tests/libqtest: Make qtest_qmp_device_add/del independent fromglobal_qtest")and commit
dd210749727530cdef7c335040edbf81c3c5d041("tests/libqtest: Uselibqtest-single.hin tests that requireglobal_qtest").Cc Thomas Huth <[email protected]>Signed-off-by Marc-André Lureau <[email protected]>--- tests/usb-hcd-ehci-test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)tests/usb-hcd-ehci-test.c +1
-1@@ -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
PATCH 2/2 tests: fix echi/ehci typo
In reply to Marc-André LureauWhile at it, simplify using $(land).
--- tests/Makefile.include | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
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)
Signature · 1 line
2.23.0
Re: [PATCH 2/2] tests: fix echi/ehci typo
Quoted 13 lines · Marc-André Lureau
While at it, simplify using $(land).
Signed-off-by Marc-André Lureau <[email protected]>--- tests/Makefile.include | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)tests/Makefile.include +0
-0
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)
Re: [PATCH 2/2] tests: fix echi/ehci typo
In reply to Marc-André LureauQuoted 3 lines · Marc-André Lureau
While at it, simplify using $(land).
Signed-off-by Marc-André Lureau <[email protected]>
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@@ -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)
Philippe Mathieu-Daudé
Reviewed-byRe: [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).
Signed-off-by Marc-André Lureau <[email protected]>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@@ -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)Reviewed-by Thomas Huth <[email protected]>
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]