|
|
7f1c5b |
From badfb1290c8eea8a2e1769b2392c7899d5077698 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 |
|
|
|
7f1c5b |
Rebase changes (7.1.0 rc0):
|
|
|
7f1c5b |
- Disable bcm2835-dma-test (added upstream)
|
|
|
7f1c5b |
|
|
|
29b115 |
Merged patches (6.1.0):
|
|
|
29b115 |
- 2f129df7d3 redhat: Enable the 'test-block-iothread' test again
|
|
|
7f1c5b |
|
|
|
7f1c5b |
Merged patches (7.1.0 rc0):
|
|
|
7f1c5b |
- 64d736640e RHEL-only: tests/avocado: Switch aarch64 tests from a53 to a57
|
|
|
29b115 |
---
|
|
|
29b115 |
.distro/qemu-kvm.spec.template | 5 ++---
|
|
|
7f1c5b |
tests/avocado/replay_kernel.py | 2 +-
|
|
|
7f1c5b |
tests/avocado/reverse_debugging.py | 2 +-
|
|
|
7f1c5b |
tests/avocado/tcg_plugins.py | 6 +++---
|
|
|
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 +-
|
|
|
7f1c5b |
tests/qtest/meson.build | 7 +------
|
|
|
29b115 |
tests/qtest/usb-hcd-xhci-test.c | 4 ++++
|
|
|
29b115 |
tests/qtest/virtio-net-failover.c | 1 +
|
|
|
7f1c5b |
12 files changed, 18 insertions(+), 19 deletions(-)
|
|
|
29b115 |
|
|
|
7f1c5b |
diff --git a/tests/avocado/replay_kernel.py b/tests/avocado/replay_kernel.py
|
|
|
7f1c5b |
index 00a26e4a0c..fe5ecf238a 100644
|
|
|
7f1c5b |
--- a/tests/avocado/replay_kernel.py
|
|
|
7f1c5b |
+++ b/tests/avocado/replay_kernel.py
|
|
|
7f1c5b |
@@ -147,7 +147,7 @@ def test_aarch64_virt(self):
|
|
|
7f1c5b |
"""
|
|
|
7f1c5b |
:avocado: tags=arch:aarch64
|
|
|
7f1c5b |
:avocado: tags=machine:virt
|
|
|
7f1c5b |
- :avocado: tags=cpu:cortex-a53
|
|
|
7f1c5b |
+ :avocado: tags=cpu:cortex-a57
|
|
|
7f1c5b |
"""
|
|
|
7f1c5b |
kernel_url = ('https://archives.fedoraproject.org/pub/archive/fedora'
|
|
|
7f1c5b |
'/linux/releases/29/Everything/aarch64/os/images/pxeboot'
|
|
|
7f1c5b |
diff --git a/tests/avocado/reverse_debugging.py b/tests/avocado/reverse_debugging.py
|
|
|
7f1c5b |
index d2921e70c3..66d185ed42 100644
|
|
|
7f1c5b |
--- a/tests/avocado/reverse_debugging.py
|
|
|
7f1c5b |
+++ b/tests/avocado/reverse_debugging.py
|
|
|
7f1c5b |
@@ -198,7 +198,7 @@ def test_aarch64_virt(self):
|
|
|
7f1c5b |
"""
|
|
|
7f1c5b |
:avocado: tags=arch:aarch64
|
|
|
7f1c5b |
:avocado: tags=machine:virt
|
|
|
7f1c5b |
- :avocado: tags=cpu:cortex-a53
|
|
|
7f1c5b |
+ :avocado: tags=cpu:cortex-a57
|
|
|
7f1c5b |
"""
|
|
|
7f1c5b |
kernel_url = ('https://archives.fedoraproject.org/pub/archive/fedora'
|
|
|
7f1c5b |
'/linux/releases/29/Everything/aarch64/os/images/pxeboot'
|
|
|
7f1c5b |
diff --git a/tests/avocado/tcg_plugins.py b/tests/avocado/tcg_plugins.py
|
|
|
7f1c5b |
index 642d2e49e3..93b3afd823 100644
|
|
|
7f1c5b |
--- a/tests/avocado/tcg_plugins.py
|
|
|
7f1c5b |
+++ b/tests/avocado/tcg_plugins.py
|
|
|
7f1c5b |
@@ -68,7 +68,7 @@ def test_aarch64_virt_insn(self):
|
|
|
7f1c5b |
:avocado: tags=accel:tcg
|
|
|
7f1c5b |
:avocado: tags=arch:aarch64
|
|
|
7f1c5b |
:avocado: tags=machine:virt
|
|
|
7f1c5b |
- :avocado: tags=cpu:cortex-a53
|
|
|
7f1c5b |
+ :avocado: tags=cpu:cortex-a57
|
|
|
7f1c5b |
"""
|
|
|
7f1c5b |
kernel_path = self._grab_aarch64_kernel()
|
|
|
7f1c5b |
kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE +
|
|
|
7f1c5b |
@@ -94,7 +94,7 @@ def test_aarch64_virt_insn_icount(self):
|
|
|
7f1c5b |
:avocado: tags=accel:tcg
|
|
|
7f1c5b |
:avocado: tags=arch:aarch64
|
|
|
7f1c5b |
:avocado: tags=machine:virt
|
|
|
7f1c5b |
- :avocado: tags=cpu:cortex-a53
|
|
|
7f1c5b |
+ :avocado: tags=cpu:cortex-a57
|
|
|
7f1c5b |
"""
|
|
|
7f1c5b |
kernel_path = self._grab_aarch64_kernel()
|
|
|
7f1c5b |
kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE +
|
|
|
7f1c5b |
@@ -120,7 +120,7 @@ def test_aarch64_virt_mem_icount(self):
|
|
|
7f1c5b |
:avocado: tags=accel:tcg
|
|
|
7f1c5b |
:avocado: tags=arch:aarch64
|
|
|
7f1c5b |
:avocado: tags=machine:virt
|
|
|
7f1c5b |
- :avocado: tags=cpu:cortex-a53
|
|
|
7f1c5b |
+ :avocado: tags=cpu:cortex-a57
|
|
|
7f1c5b |
"""
|
|
|
7f1c5b |
kernel_path = self._grab_aarch64_kernel()
|
|
|
7f1c5b |
kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE +
|
|
|
29b115 |
diff --git a/tests/qtest/fuzz-e1000e-test.c b/tests/qtest/fuzz-e1000e-test.c
|
|
|
7f1c5b |
index 5052883fb6..b5286f4b12 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
|
|
|
7f1c5b |
index e37b48b2cc..88647da054 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 |
|
|
|
7f1c5b |
- s = qtest_init("-M pc-q35-5.2 -m 512M "
|
|
|
7f1c5b |
+ s = qtest_init("-M pc-q35-rhel8.4.0 -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
|
|
|
7f1c5b |
index d4a8db6fd6..1a796ec15a 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
|
|
|
7f1c5b |
index 32f028872c..1e78a1a055 100644
|
|
|
29b115 |
--- a/tests/qtest/libqos/meson.build
|
|
|
29b115 |
+++ b/tests/qtest/libqos/meson.build
|
|
|
7f1c5b |
@@ -43,7 +43,7 @@ libqos_srcs = files(
|
|
|
29b115 |
'virtio-rng.c',
|
|
|
29b115 |
'virtio-scsi.c',
|
|
|
29b115 |
'virtio-serial.c',
|
|
|
29b115 |
- 'virtio-iommu.c',
|
|
|
29b115 |
+# 'virtio-iommu.c',
|
|
|
7f1c5b |
'virtio-gpio.c',
|
|
|
7f1c5b |
'generic-pcihost.c',
|
|
|
29b115 |
|
|
|
29b115 |
diff --git a/tests/qtest/lpc-ich9-test.c b/tests/qtest/lpc-ich9-test.c
|
|
|
7f1c5b |
index 8ac95b89f7..cd2102555c 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
|
|
|
7f1c5b |
index c07a5b1a5f..9df3f9f8b9 100644
|
|
|
29b115 |
--- a/tests/qtest/meson.build
|
|
|
29b115 |
+++ b/tests/qtest/meson.build
|
|
|
7f1c5b |
@@ -82,7 +82,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 + \
|
|
|
7f1c5b |
qtests_cxl + \
|
|
|
29b115 |
['fdc-test',
|
|
|
7f1c5b |
@@ -96,7 +95,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',
|
|
|
7f1c5b |
@@ -209,15 +207,13 @@ 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'] : []) + \
|
|
|
7f1c5b |
['arm-cpu-features',
|
|
|
7f1c5b |
'numa-test',
|
|
|
7f1c5b |
'boot-serial-test',
|
|
|
7f1c5b |
- 'migration-test',
|
|
|
7f1c5b |
- 'bcm2835-dma-test']
|
|
|
7f1c5b |
+ 'migration-test']
|
|
|
7f1c5b |
|
|
|
7f1c5b |
qtests_s390x = \
|
|
|
7f1c5b |
(slirp.found() ? ['pxe-test', 'test-netfilter'] : []) + \
|
|
|
7f1c5b |
@@ -225,7 +221,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
|
|
|
7f1c5b |
index 4a809590bf..1bf3fa641c 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 |
|