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