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