thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 6 months ago
Clone
29b115
From 5e419e5e0a721bdbbfa6d9b82c8be5c5b3d26a01 Mon Sep 17 00:00:00 2001
29b115
From: Miroslav Rezanina <mrezanin@redhat.com>
29b115
Date: Wed, 2 Sep 2020 09:39:41 +0200
29b115
Subject: Enable make check
29b115
29b115
Fixing tests after device disabling and machine types changes and enabling
29b115
make check run during build.
29b115
29b115
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
29b115
---
29b115
Rebase changes (6.1.0):
29b115
- removed unnecessary test changes
29b115
29b115
Rebase changes (6.2.0):
29b115
- new way of disabling bios-table-test
29b115
29b115
Rebase changes (7.0.0):
29b115
- Disable testing virtio-iommu-pci
29b115
- Rename default_bus_bypass_iommu property to default-bus-bypass-iommu
29b115
- Disable qtest-bios-table for aarch64
29b115
- Removed redhat chunks for boot-serial-test.c, cdrom-test.c and cpu-plug-test.c qtests
29b115
- Do not disable boot-order-test, prom-env-test and boot-serial-test qtests
29b115
- Use rhel machine type for new intel hda qtest
29b115
- Remove unnecessary changes in iotest 051
29b115
- Remove changes in bios-tables-test.c and prom-env-test.c qtests
29b115
29b115
Merged patches (6.1.0):
29b115
- 2f129df7d3 redhat: Enable the 'test-block-iothread' test again
29b115
---
29b115
 .distro/qemu-kvm.spec.template      | 5 ++---
29b115
 tests/qtest/fuzz-e1000e-test.c      | 2 +-
29b115
 tests/qtest/fuzz-virtio-scsi-test.c | 2 +-
29b115
 tests/qtest/intel-hda-test.c        | 2 +-
29b115
 tests/qtest/libqos/meson.build      | 2 +-
29b115
 tests/qtest/lpc-ich9-test.c         | 2 +-
29b115
 tests/qtest/meson.build             | 4 ----
29b115
 tests/qtest/usb-hcd-xhci-test.c     | 4 ++++
29b115
 tests/qtest/virtio-net-failover.c   | 1 +
29b115
 9 files changed, 12 insertions(+), 12 deletions(-)
29b115
29b115
diff --git a/tests/qtest/fuzz-e1000e-test.c b/tests/qtest/fuzz-e1000e-test.c
29b115
index 66229e6096..947fba73b7 100644
29b115
--- a/tests/qtest/fuzz-e1000e-test.c
29b115
+++ b/tests/qtest/fuzz-e1000e-test.c
29b115
@@ -17,7 +17,7 @@ static void test_lp1879531_eth_get_rss_ex_dst_addr(void)
29b115
 {
29b115
     QTestState *s;
29b115
 
29b115
-    s = qtest_init("-nographic -monitor none -serial none -M pc-q35-5.0");
29b115
+    s = qtest_init("-nographic -monitor none -serial none -M pc-q35-rhel8.4.0");
29b115
 
29b115
     qtest_outl(s, 0xcf8, 0x80001010);
29b115
     qtest_outl(s, 0xcfc, 0xe1020000);
29b115
diff --git a/tests/qtest/fuzz-virtio-scsi-test.c b/tests/qtest/fuzz-virtio-scsi-test.c
29b115
index aaf6d10e18..43727d62ac 100644
29b115
--- a/tests/qtest/fuzz-virtio-scsi-test.c
29b115
+++ b/tests/qtest/fuzz-virtio-scsi-test.c
29b115
@@ -19,7 +19,7 @@ static void test_mmio_oob_from_memory_region_cache(void)
29b115
 {
29b115
     QTestState *s;
29b115
 
29b115
-    s = qtest_init("-M pc-q35-5.2 -display none -m 512M "
29b115
+    s = qtest_init("-M pc-q35-rhel8.4.0 -display none -m 512M "
29b115
                    "-device virtio-scsi,num_queues=8,addr=03.0 ");
29b115
 
29b115
     qtest_outl(s, 0xcf8, 0x80001811);
29b115
diff --git a/tests/qtest/intel-hda-test.c b/tests/qtest/intel-hda-test.c
29b115
index a58c98e4d1..c8387e39ce 100644
29b115
--- a/tests/qtest/intel-hda-test.c
29b115
+++ b/tests/qtest/intel-hda-test.c
29b115
@@ -38,7 +38,7 @@ static void test_issue542_ich6(void)
29b115
 {
29b115
     QTestState *s;
29b115
 
29b115
-    s = qtest_init("-nographic -nodefaults -M pc-q35-6.2 "
29b115
+    s = qtest_init("-nographic -nodefaults -M pc-q35-rhel9.0.0 "
29b115
                    "-device intel-hda,id=" HDA_ID CODEC_DEVICES);
29b115
 
29b115
     qtest_outl(s, 0xcf8, 0x80000804);
29b115
diff --git a/tests/qtest/libqos/meson.build b/tests/qtest/libqos/meson.build
29b115
index e988d15791..46f7dcb81a 100644
29b115
--- a/tests/qtest/libqos/meson.build
29b115
+++ b/tests/qtest/libqos/meson.build
29b115
@@ -41,7 +41,7 @@ libqos_srcs = files('../libqtest.c',
29b115
         'virtio-rng.c',
29b115
         'virtio-scsi.c',
29b115
         'virtio-serial.c',
29b115
-        'virtio-iommu.c',
29b115
+#        'virtio-iommu.c',
29b115
 
29b115
         # qgraph machines:
29b115
         'aarch64-xlnx-zcu102-machine.c',
29b115
diff --git a/tests/qtest/lpc-ich9-test.c b/tests/qtest/lpc-ich9-test.c
29b115
index fe0bef9980..7a9d51579b 100644
29b115
--- a/tests/qtest/lpc-ich9-test.c
29b115
+++ b/tests/qtest/lpc-ich9-test.c
29b115
@@ -15,7 +15,7 @@ static void test_lp1878642_pci_bus_get_irq_level_assert(void)
29b115
 {
29b115
     QTestState *s;
29b115
 
29b115
-    s = qtest_init("-M pc-q35-5.0 "
29b115
+    s = qtest_init("-M pc-q35-rhel8.4.0 "
29b115
                    "-nographic -monitor none -serial none");
29b115
 
29b115
     qtest_outl(s, 0xcf8, 0x8000f840); /* PMBASE */
29b115
diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
29b115
index d25f82bb5a..67cd32def1 100644
29b115
--- a/tests/qtest/meson.build
29b115
+++ b/tests/qtest/meson.build
29b115
@@ -73,7 +73,6 @@ qtests_i386 = \
29b115
    config_all_devices.has_key('CONFIG_Q35') and                                             \
29b115
    config_all_devices.has_key('CONFIG_VIRTIO_PCI') and                                      \
29b115
    slirp.found() ? ['virtio-net-failover'] : []) +                                          \
29b115
-  (unpack_edk2_blobs ? ['bios-tables-test'] : []) +                                         \
29b115
   qtests_pci +                                                                              \
29b115
   ['fdc-test',
29b115
    'ide-test',
29b115
@@ -86,7 +85,6 @@ qtests_i386 = \
29b115
    'drive_del-test',
29b115
    'tco-test',
29b115
    'cpu-plug-test',
29b115
-   'q35-test',
29b115
    'vmgenid-test',
29b115
    'migration-test',
29b115
    'test-x86-cpuid-compat',
29b115
@@ -216,7 +214,6 @@ qtests_arm = \
29b115
 
29b115
 # TODO: once aarch64 TCG is fixed on ARM 32 bit host, make bios-tables-test unconditional
29b115
 qtests_aarch64 = \
29b115
-  (cpu != 'arm' and unpack_edk2_blobs ? ['bios-tables-test'] : []) +                            \
29b115
   (config_all_devices.has_key('CONFIG_TPM_TIS_SYSBUS') ? ['tpm-tis-device-test'] : []) +        \
29b115
   (config_all_devices.has_key('CONFIG_TPM_TIS_SYSBUS') ? ['tpm-tis-device-swtpm-test'] : []) +  \
29b115
   (config_all_devices.has_key('CONFIG_XLNX_ZYNQMP_ARM') ? ['xlnx-can-test', 'fuzz-xlnx-dp-test'] : []) + \
29b115
@@ -231,7 +228,6 @@ qtests_s390x = \
29b115
   (config_host.has_key('CONFIG_POSIX') ? ['test-filter-redirector'] : []) +                     \
29b115
   ['boot-serial-test',
29b115
    'drive_del-test',
29b115
-   'device-plug-test',
29b115
    'virtio-ccw-test',
29b115
    'cpu-plug-test',
29b115
    'migration-test']
29b115
diff --git a/tests/qtest/usb-hcd-xhci-test.c b/tests/qtest/usb-hcd-xhci-test.c
29b115
index 10ef9d2a91..3855873050 100644
29b115
--- a/tests/qtest/usb-hcd-xhci-test.c
29b115
+++ b/tests/qtest/usb-hcd-xhci-test.c
29b115
@@ -21,6 +21,7 @@ static void test_xhci_hotplug(void)
29b115
     usb_test_hotplug(global_qtest, "xhci", "1", NULL);
29b115
 }
29b115
 
29b115
+#if 0 /* Disabled for Red Hat Enterprise Linux */
29b115
 static void test_usb_uas_hotplug(void)
29b115
 {
29b115
     QTestState *qts = global_qtest;
29b115
@@ -36,6 +37,7 @@ static void test_usb_uas_hotplug(void)
29b115
     qtest_qmp_device_del(qts, "scsihd");
29b115
     qtest_qmp_device_del(qts, "uas");
29b115
 }
29b115
+#endif
29b115
 
29b115
 static void test_usb_ccid_hotplug(void)
29b115
 {
29b115
@@ -56,7 +58,9 @@ int main(int argc, char **argv)
29b115
 
29b115
     qtest_add_func("/xhci/pci/init", test_xhci_init);
29b115
     qtest_add_func("/xhci/pci/hotplug", test_xhci_hotplug);
29b115
+#if 0 /* Disabled for Red Hat Enterprise Linux */
29b115
     qtest_add_func("/xhci/pci/hotplug/usb-uas", test_usb_uas_hotplug);
29b115
+#endif
29b115
     qtest_add_func("/xhci/pci/hotplug/usb-ccid", test_usb_ccid_hotplug);
29b115
 
29b115
     qtest_start("-device nec-usb-xhci,id=xhci"
29b115
diff --git a/tests/qtest/virtio-net-failover.c b/tests/qtest/virtio-net-failover.c
29b115
index 78811f1c92..44de8af00c 100644
29b115
--- a/tests/qtest/virtio-net-failover.c
29b115
+++ b/tests/qtest/virtio-net-failover.c
29b115
@@ -25,6 +25,7 @@
29b115
 #define PCI_SEL_BASE            0x0010
29b115
 
29b115
 #define BASE_MACHINE "-M q35 -nodefaults " \
29b115
+    "-global ICH9-LPC.acpi-pci-hotplug-with-bridge-support=on " \
29b115
     "-device pcie-root-port,id=root0,addr=0x1,bus=pcie.0,chassis=1 " \
29b115
     "-device pcie-root-port,id=root1,addr=0x2,bus=pcie.0,chassis=2 "
29b115
 
29b115
-- 
29b115
2.31.1
29b115