2024-09-10 06:42:37 +00:00
|
|
|
From 3c4bab07566d32859e227ca1083b0dc64111e3f7 Mon Sep 17 00:00:00 2001
|
2022-04-20 07:49:16 +00:00
|
|
|
From: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
|
Date: Wed, 2 Sep 2020 09:39:41 +0200
|
2023-10-16 10:42:05 +00:00
|
|
|
Subject: Enable make check
|
2022-04-20 07:49:16 +00:00
|
|
|
|
|
|
|
Fixing tests after device disabling and machine types changes and enabling
|
|
|
|
make check run during build.
|
|
|
|
|
|
|
|
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
2024-09-10 06:42:37 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
Rebase notes (9.1.0 rc0):
|
|
|
|
- Disable fdc-testa
|
|
|
|
|
|
|
|
Rebase notes (9.1.0 rc0):
|
|
|
|
- Use q35 machine type for new pvpanic test
|
2023-10-16 10:42:05 +00:00
|
|
|
---
|
|
|
|
.distro/qemu-kvm.spec.template | 4 ++--
|
2023-04-20 06:33:14 +00:00
|
|
|
tests/avocado/replay_kernel.py | 2 +-
|
|
|
|
tests/avocado/reverse_debugging.py | 2 +-
|
2024-09-10 06:42:37 +00:00
|
|
|
tests/avocado/tcg_plugins.py | 4 ++--
|
2023-04-20 06:33:14 +00:00
|
|
|
tests/qemu-iotests/meson.build | 34 ++++++++++++++---------------
|
2023-08-29 12:37:47 +00:00
|
|
|
tests/qemu-iotests/testenv.py | 3 +++
|
2023-04-20 06:33:14 +00:00
|
|
|
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 +-
|
2024-09-10 06:42:37 +00:00
|
|
|
tests/qtest/meson.build | 3 +--
|
|
|
|
tests/qtest/pvpanic-test.c | 2 +-
|
2023-04-20 06:33:14 +00:00
|
|
|
tests/qtest/virtio-net-failover.c | 1 +
|
2024-09-10 06:42:37 +00:00
|
|
|
14 files changed, 34 insertions(+), 31 deletions(-)
|
2022-04-20 07:49:16 +00:00
|
|
|
|
2022-09-05 08:13:56 +00:00
|
|
|
diff --git a/tests/avocado/replay_kernel.py b/tests/avocado/replay_kernel.py
|
2024-09-10 06:42:37 +00:00
|
|
|
index e22c200a36..cb7ca19b1b 100644
|
2022-09-05 08:13:56 +00:00
|
|
|
--- a/tests/avocado/replay_kernel.py
|
|
|
|
+++ b/tests/avocado/replay_kernel.py
|
2024-09-10 06:42:37 +00:00
|
|
|
@@ -193,7 +193,7 @@ def test_aarch64_virt(self):
|
2022-09-05 08:13:56 +00:00
|
|
|
"""
|
|
|
|
:avocado: tags=arch:aarch64
|
|
|
|
:avocado: tags=machine:virt
|
|
|
|
- :avocado: tags=cpu:cortex-a53
|
|
|
|
+ :avocado: tags=cpu:cortex-a57
|
|
|
|
"""
|
|
|
|
kernel_url = ('https://archives.fedoraproject.org/pub/archive/fedora'
|
|
|
|
'/linux/releases/29/Everything/aarch64/os/images/pxeboot'
|
|
|
|
diff --git a/tests/avocado/reverse_debugging.py b/tests/avocado/reverse_debugging.py
|
2024-09-10 06:42:37 +00:00
|
|
|
index f24287cd0a..3880b81df6 100644
|
2022-09-05 08:13:56 +00:00
|
|
|
--- a/tests/avocado/reverse_debugging.py
|
|
|
|
+++ b/tests/avocado/reverse_debugging.py
|
2024-09-10 06:42:37 +00:00
|
|
|
@@ -228,7 +228,7 @@ def test_aarch64_virt(self):
|
2022-09-05 08:13:56 +00:00
|
|
|
"""
|
|
|
|
:avocado: tags=arch:aarch64
|
|
|
|
:avocado: tags=machine:virt
|
|
|
|
- :avocado: tags=cpu:cortex-a53
|
|
|
|
+ :avocado: tags=cpu:cortex-a57
|
|
|
|
"""
|
|
|
|
kernel_url = ('https://archives.fedoraproject.org/pub/archive/fedora'
|
|
|
|
'/linux/releases/29/Everything/aarch64/os/images/pxeboot'
|
|
|
|
diff --git a/tests/avocado/tcg_plugins.py b/tests/avocado/tcg_plugins.py
|
2024-09-10 06:42:37 +00:00
|
|
|
index a6ff457e27..5172ee9b9e 100644
|
2022-09-05 08:13:56 +00:00
|
|
|
--- a/tests/avocado/tcg_plugins.py
|
|
|
|
+++ b/tests/avocado/tcg_plugins.py
|
2024-01-02 12:52:01 +00:00
|
|
|
@@ -66,7 +66,7 @@ def test_aarch64_virt_insn(self):
|
2022-09-05 08:13:56 +00:00
|
|
|
:avocado: tags=accel:tcg
|
|
|
|
:avocado: tags=arch:aarch64
|
|
|
|
:avocado: tags=machine:virt
|
|
|
|
- :avocado: tags=cpu:cortex-a53
|
|
|
|
+ :avocado: tags=cpu:cortex-a57
|
|
|
|
"""
|
|
|
|
kernel_path = self._grab_aarch64_kernel()
|
|
|
|
kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE +
|
2024-01-02 12:52:01 +00:00
|
|
|
@@ -96,7 +96,7 @@ def test_aarch64_virt_insn_icount(self):
|
2022-09-05 08:13:56 +00:00
|
|
|
:avocado: tags=accel:tcg
|
|
|
|
:avocado: tags=arch:aarch64
|
|
|
|
:avocado: tags=machine:virt
|
|
|
|
- :avocado: tags=cpu:cortex-a53
|
|
|
|
+ :avocado: tags=cpu:cortex-a57
|
|
|
|
"""
|
|
|
|
kernel_path = self._grab_aarch64_kernel()
|
|
|
|
kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE +
|
2023-04-20 06:33:14 +00:00
|
|
|
diff --git a/tests/qemu-iotests/meson.build b/tests/qemu-iotests/meson.build
|
2024-05-14 06:50:03 +00:00
|
|
|
index fad340ad59..3c0d5241f6 100644
|
2023-04-20 06:33:14 +00:00
|
|
|
--- a/tests/qemu-iotests/meson.build
|
|
|
|
+++ b/tests/qemu-iotests/meson.build
|
|
|
|
@@ -51,21 +51,21 @@ foreach format, speed: qemu_iotests_formats
|
|
|
|
check: true,
|
|
|
|
)
|
|
|
|
|
|
|
|
- foreach item: rc.stdout().strip().split()
|
|
|
|
- args = [qemu_iotests_check_cmd,
|
|
|
|
- '-tap', '-' + format, item,
|
|
|
|
- '--source-dir', meson.current_source_dir(),
|
|
|
|
- '--build-dir', meson.current_build_dir()]
|
|
|
|
- # Some individual tests take as long as 45 seconds
|
|
|
|
- # Bump the timeout to 3 minutes for some headroom
|
|
|
|
- # on slow machines to minimize spurious failures
|
|
|
|
- test('io-' + format + '-' + item,
|
|
|
|
- python,
|
|
|
|
- args: args,
|
|
|
|
- depends: qemu_iotests_binaries,
|
|
|
|
- env: qemu_iotests_env,
|
|
|
|
- protocol: 'tap',
|
|
|
|
- timeout: 180,
|
|
|
|
- suite: suites)
|
|
|
|
- endforeach
|
|
|
|
+# foreach item: rc.stdout().strip().split()
|
|
|
|
+# args = [qemu_iotests_check_cmd,
|
|
|
|
+# '-tap', '-' + format, item,
|
|
|
|
+# '--source-dir', meson.current_source_dir(),
|
|
|
|
+# '--build-dir', meson.current_build_dir()]
|
|
|
|
+# # Some individual tests take as long as 45 seconds
|
|
|
|
+# # Bump the timeout to 3 minutes for some headroom
|
|
|
|
+# # on slow machines to minimize spurious failures
|
|
|
|
+# test('io-' + format + '-' + item,
|
|
|
|
+# python,
|
|
|
|
+# args: args,
|
|
|
|
+# depends: qemu_iotests_binaries,
|
|
|
|
+# env: qemu_iotests_env,
|
|
|
|
+# protocol: 'tap',
|
|
|
|
+# timeout: 180,
|
|
|
|
+# suite: suites)
|
|
|
|
+# endforeach
|
|
|
|
endforeach
|
2023-08-29 12:37:47 +00:00
|
|
|
diff --git a/tests/qemu-iotests/testenv.py b/tests/qemu-iotests/testenv.py
|
2024-09-10 06:42:37 +00:00
|
|
|
index c8848f2ec2..d515e5b8b0 100644
|
2023-08-29 12:37:47 +00:00
|
|
|
--- a/tests/qemu-iotests/testenv.py
|
|
|
|
+++ b/tests/qemu-iotests/testenv.py
|
2024-09-10 06:42:37 +00:00
|
|
|
@@ -249,6 +249,9 @@ def __init__(self, source_dir: str, build_dir: str,
|
2023-08-29 12:37:47 +00:00
|
|
|
if self.qemu_prog.endswith(f'qemu-system-{suffix}'):
|
|
|
|
self.qemu_options += f' -machine {machine}'
|
|
|
|
|
|
|
|
+ if self.qemu_prog.endswith('qemu-system-x86_64'):
|
|
|
|
+ self.qemu_options += ' -cpu Nehalem'
|
|
|
|
+
|
|
|
|
# QEMU_DEFAULT_MACHINE
|
|
|
|
self.qemu_default_machine = get_default_machine(self.qemu_prog)
|
|
|
|
|
2022-04-20 07:49:16 +00:00
|
|
|
diff --git a/tests/qtest/fuzz-e1000e-test.c b/tests/qtest/fuzz-e1000e-test.c
|
2024-05-14 06:50:03 +00:00
|
|
|
index 5052883fb6..8242190170 100644
|
2022-04-20 07:49:16 +00:00
|
|
|
--- 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");
|
2024-05-14 06:50:03 +00:00
|
|
|
+ s = qtest_init("-nographic -monitor none -serial none -M pc-q35-rhel9.4.0");
|
2022-04-20 07:49:16 +00:00
|
|
|
|
|
|
|
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
|
2024-05-14 06:50:03 +00:00
|
|
|
index e37b48b2cc..9f1965b530 100644
|
2022-04-20 07:49:16 +00:00
|
|
|
--- 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;
|
|
|
|
|
2022-12-15 06:04:15 +00:00
|
|
|
- s = qtest_init("-M pc-q35-5.2 -m 512M "
|
2024-05-14 06:50:03 +00:00
|
|
|
+ s = qtest_init("-M pc-q35-rhel9.4.0 -m 512M "
|
2022-04-20 07:49:16 +00:00
|
|
|
"-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
|
2024-01-02 12:52:01 +00:00
|
|
|
index 663bb6c485..2efc43e3f7 100644
|
2022-04-20 07:49:16 +00:00
|
|
|
--- a/tests/qtest/intel-hda-test.c
|
|
|
|
+++ b/tests/qtest/intel-hda-test.c
|
2024-01-02 12:52:01 +00:00
|
|
|
@@ -42,7 +42,7 @@ static void test_issue542_ich6(void)
|
2022-04-20 07:49:16 +00:00
|
|
|
{
|
|
|
|
QTestState *s;
|
|
|
|
|
|
|
|
- s = qtest_init("-nographic -nodefaults -M pc-q35-6.2 "
|
|
|
|
+ s = qtest_init("-nographic -nodefaults -M pc-q35-rhel9.0.0 "
|
2024-01-02 12:52:01 +00:00
|
|
|
AUDIODEV
|
2022-04-20 07:49:16 +00:00
|
|
|
"-device intel-hda,id=" HDA_ID CODEC_DEVICES);
|
|
|
|
|
|
|
|
diff --git a/tests/qtest/libqos/meson.build b/tests/qtest/libqos/meson.build
|
2024-09-10 06:42:37 +00:00
|
|
|
index 1b2b2dbb22..86afbddb58 100644
|
2022-04-20 07:49:16 +00:00
|
|
|
--- a/tests/qtest/libqos/meson.build
|
|
|
|
+++ b/tests/qtest/libqos/meson.build
|
2023-04-20 06:33:14 +00:00
|
|
|
@@ -44,7 +44,7 @@ libqos_srcs = files(
|
2022-04-20 07:49:16 +00:00
|
|
|
'virtio-rng.c',
|
|
|
|
'virtio-scsi.c',
|
|
|
|
'virtio-serial.c',
|
|
|
|
- 'virtio-iommu.c',
|
|
|
|
+# 'virtio-iommu.c',
|
2022-12-15 06:04:15 +00:00
|
|
|
'virtio-gpio.c',
|
2023-08-29 12:37:47 +00:00
|
|
|
'virtio-scmi.c',
|
2022-09-05 08:13:56 +00:00
|
|
|
'generic-pcihost.c',
|
2022-04-20 07:49:16 +00:00
|
|
|
diff --git a/tests/qtest/lpc-ich9-test.c b/tests/qtest/lpc-ich9-test.c
|
2024-05-14 06:50:03 +00:00
|
|
|
index 8ac95b89f7..0e118b76eb 100644
|
2022-04-20 07:49:16 +00:00
|
|
|
--- 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 "
|
2024-05-14 06:50:03 +00:00
|
|
|
+ s = qtest_init("-M pc-q35-rhel9.4.0 "
|
2022-04-20 07:49:16 +00:00
|
|
|
"-nographic -monitor none -serial none");
|
|
|
|
|
|
|
|
qtest_outl(s, 0xcf8, 0x8000f840); /* PMBASE */
|
|
|
|
diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
|
2024-09-10 06:42:37 +00:00
|
|
|
index 2f0d3ef080..134c48c10e 100644
|
2022-04-20 07:49:16 +00:00
|
|
|
--- a/tests/qtest/meson.build
|
|
|
|
+++ b/tests/qtest/meson.build
|
2024-09-10 06:42:37 +00:00
|
|
|
@@ -91,7 +91,7 @@ qtests_i386 = \
|
|
|
|
config_all_devices.has_key('CONFIG_PARALLEL') ? ['bios-tables-test'] : []) + \
|
|
|
|
qtests_pci + \
|
|
|
|
qtests_cxl + \
|
|
|
|
- ['fdc-test',
|
|
|
|
+ [
|
|
|
|
'ide-test',
|
|
|
|
'hd-geo-test',
|
|
|
|
'boot-order-test',
|
|
|
|
@@ -102,7 +102,6 @@ qtests_i386 = \
|
2022-04-20 07:49:16 +00:00
|
|
|
'drive_del-test',
|
|
|
|
'tco-test',
|
|
|
|
'cpu-plug-test',
|
|
|
|
- 'q35-test',
|
|
|
|
'vmgenid-test',
|
|
|
|
'migration-test',
|
|
|
|
'test-x86-cpuid-compat',
|
2024-09-10 06:42:37 +00:00
|
|
|
diff --git a/tests/qtest/pvpanic-test.c b/tests/qtest/pvpanic-test.c
|
|
|
|
index c18f63e255..57fb129ae4 100644
|
|
|
|
--- a/tests/qtest/pvpanic-test.c
|
|
|
|
+++ b/tests/qtest/pvpanic-test.c
|
|
|
|
@@ -65,7 +65,7 @@ static void test_pvshutdown(void)
|
|
|
|
QDict *response, *data;
|
|
|
|
QTestState *qts;
|
|
|
|
|
|
|
|
- qts = qtest_init("-device pvpanic");
|
|
|
|
+ qts = qtest_init("-M q35 -device pvpanic");
|
|
|
|
|
|
|
|
val = qtest_inb(qts, 0x505);
|
|
|
|
g_assert_cmpuint(val, ==, PVPANIC_EVENTS);
|
2022-04-20 07:49:16 +00:00
|
|
|
diff --git a/tests/qtest/virtio-net-failover.c b/tests/qtest/virtio-net-failover.c
|
2024-05-14 06:50:03 +00:00
|
|
|
index 73dfabc272..a9dd304781 100644
|
2022-04-20 07:49:16 +00:00
|
|
|
--- a/tests/qtest/virtio-net-failover.c
|
|
|
|
+++ b/tests/qtest/virtio-net-failover.c
|
2024-01-02 12:52:01 +00:00
|
|
|
@@ -26,6 +26,7 @@
|
2022-04-20 07:49:16 +00:00
|
|
|
#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 "
|
|
|
|
|
2023-10-16 10:42:05 +00:00
|
|
|
--
|
|
|
|
2.39.3
|
|
|
|
|