[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 06/14] check: Only test usb smartcard when it is com
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH 06/14] check: Only test usb smartcard when it is compiled in |
Date: |
Tue, 17 Jul 2018 14:04:06 +0200 |
Signed-off-by: Juan Quintela <address@hidden>
---
tests/usb-hcd-xhci-test.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/usb-hcd-xhci-test.c b/tests/usb-hcd-xhci-test.c
index 5b1b681bf2..be80c5f032 100644
--- a/tests/usb-hcd-xhci-test.c
+++ b/tests/usb-hcd-xhci-test.c
@@ -35,6 +35,7 @@ static void test_usb_uas_hotplug(void)
qtest_qmp_device_del("uas");
}
+#ifdef CONFIG_USB_SMARTCARD
static void test_usb_ccid_hotplug(void)
{
qtest_qmp_device_add("usb-ccid", "ccid", NULL);
@@ -43,6 +44,7 @@ static void test_usb_ccid_hotplug(void)
qtest_qmp_device_add("usb-ccid", "ccid", NULL);
qtest_qmp_device_del("ccid");
}
+#endif
int main(int argc, char **argv)
{
@@ -53,8 +55,9 @@ int main(int argc, char **argv)
qtest_add_func("/xhci/pci/init", test_xhci_init);
qtest_add_func("/xhci/pci/hotplug", test_xhci_hotplug);
qtest_add_func("/xhci/pci/hotplug/usb-uas", test_usb_uas_hotplug);
+#ifdef CONFIG_USB_SMARTCARD
qtest_add_func("/xhci/pci/hotplug/usb-ccid", test_usb_ccid_hotplug);
-
+#endif
qtest_start("-device nec-usb-xhci,id=xhci"
" -drive id=drive0,if=none,file=null-co://,format=raw");
ret = g_test_run();
--
2.17.1
- [Qemu-devel] [RFC 00/14] More patches to disable stuff, Juan Quintela, 2018/07/17
- [Qemu-devel] [PATCH 03/14] check: Only test lsi when it is compiled in, Juan Quintela, 2018/07/17
- [Qemu-devel] [PATCH 04/14] check: Only test esp when it is compiled in, Juan Quintela, 2018/07/17
- [Qemu-devel] [PATCH 05/14] check: Only test sga when it is compiled in, Juan Quintela, 2018/07/17
- [Qemu-devel] [PATCH 02/14] check: Only test megasas when it is compiled in, Juan Quintela, 2018/07/17
- [Qemu-devel] [PATCH 01/14] check: Only test ipmi when it is compiled in, Juan Quintela, 2018/07/17
- [Qemu-devel] [PATCH 06/14] check: Only test usb smartcard when it is compiled in,
Juan Quintela <=
- [Qemu-devel] [PATCH 09/14] check: Only test virtio-balloon when it is compiled in, Juan Quintela, 2018/07/17
- [Qemu-devel] [PATCH 07/14] check: Only test usb storage when it is compiled in, Juan Quintela, 2018/07/17
- [Qemu-devel] [PATCH 08/14] check: Only test nvdim_acpi when it is compiled in, Juan Quintela, 2018/07/17
- [Qemu-devel] [PATCH 13/14] check: Only test virtio-input when it is compiled in, Juan Quintela, 2018/07/17
- [Qemu-devel] [PATCH 10/14] check: Only test virtio-serial when it is compiled in, Juan Quintela, 2018/07/17
- [Qemu-devel] [PATCH 12/14] check: Only test virtio-gpu when it is compiled in, Juan Quintela, 2018/07/17
- [Qemu-devel] [PATCH 14/14] check: Only test virtio-scsi when it is compiled in, Juan Quintela, 2018/07/17
- [Qemu-devel] [PATCH 11/14] check: Only test virtio-rng when it is compiled in, Juan Quintela, 2018/07/17