tests/functional/ppc64: extend ppc64 functional tests
v3 cover tests/functional/ppc64: extend ppc64 functional tests
Patch 1 switches the UNIX socket and exec (socat) migration tests in test_migration.py from mac99 to pseries. All three transports were already covered for mac99; this change exercises the same transports against the pseries vmstate not present in mac99. The TCP test is left on mac99 since pseries TCP migration is already covered by the full-boot test_ppc64_linux_migration in test_pseries.py.
Patch 2 adds explicit console checks for NVMe, e1000e, and xHCI driver probe messages in do_test_ppc64_powernv(). These are emitted synchronously during PCI enumeration after OPAL hands off to Linux, making them safe to assert without a separate test file.
Aniket Sahu (2):
tests/functional/ppc64: extend pseries migration tests tests/functional/ppc64: extend ppc64 powernv net device tests
tests/functional/ppc64/test_migration.py | 4 ++-- tests/functional/ppc64/test_powernv.py | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-)
---
Changes in v3:
- Patch 1: Dropped the full-boot UNIX/exec tests from test_pseries.py. Instead, switched the existing no-boot UNIX and exec tests in test_migration.py from mac99 to pseries, exercising the pseries vmstate on all three transport paths with minimal CI cost. (Suggested by Amit and Thomas Huth.)
- Patch 2: No change from v2.
Changes in v2:
- Patch 1: Dropped test_pseries_migrate.py; UNIX and exec transport tests were moved to test_pseries.py as full-boot tests alongside the existing TCP test. (Suggested by Thomas Huth.)
- Patch 2: Dropped test_powernv_devices.py; PCIe device checks were folded into the existing do_test_ppc64_powernv() helper instead. (Suggested by Thomas Huth.)
---
v2: https://lore.kernel.org/qemu-devel/[email protected]/#t
v1: https://lore.kernel.org/qemu-devel/[email protected]/
Signature · 1 line
2.52.0
PATCH v3 1/2 tests/functional/ppc64: extend pseries migration tests
The existing test_migration.py exercises all three migration transport paths (TCP, UNIX, exec) but only against the mac99 machine type. A regression in pseries-specific vmstate save/restore handlers would not be caught by migrating a mac99 guest.
Switch the UNIX socket and exec (socat) migration tests from mac99 to pseries so that these transport paths are exercised against the pseries vmstate. The TCP test is left on mac99 since pseries TCP migration is already covered by test_ppc64_linux_migration in test_pseries.py.
--- tests/functional/ppc64/test_migration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
tests/functional/ppc64/test_migration.py +2 -2
@@ -15,11 +15,11 @@ def test_migration_with_tcp_localhost(self): self.migration_with_tcp_localhost() def test_migration_with_unix(self): - self.set_machine('mac99') + self.set_machine('pseries') self.migration_with_unix() def test_migration_with_exec(self): - self.set_machine('mac99') + self.set_machine('pseries') self.migration_with_exec()
Signature · 1 line
2.52.0
Re: [PATCH v3 1/2] tests/functional/ppc64: extend pseries migration tests
Quoted 21 lines · Aniket Sahu
The existing
test_migration.pyexercises all three migration transport paths (TCP, UNIX, exec) but only against the mac99 machine type. A regression in pseries-specific vmstate save/restore handlers would not be caught by migrating a mac99 guest.Switch the UNIX socket and exec (socat) migration tests from mac99 to pseries so that these transport paths are exercised against the pseries vmstate. The TCP test is left on mac99 since pseries TCP migration is already covered by
test_ppc64_linux_migrationintest_pseries.py.Signed-off-by Aniket Sahu <[email protected]>--- tests/functional/ppc64/test_migration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)tests/functional/ppc64/test_migration.py +0
-0@@ -15,11 +15,11 @@ def test_migration_with_tcp_localhost(self): self.migration_with_tcp_localhost()
tests/functional/ppc64/test_migration.py def test_migration_with_tcp_localhost(self): · line 23
Quoted 10 lines
tests/functional/ppc64/test_migration.py +2
-2def test_migration_with_unix(self): - self.set_machine('mac99') + self.set_machine('pseries') self.migration_with_unix() def test_migration_with_exec(self): - self.set_machine('mac99') + self.set_machine('pseries') self.migration_with_exec()
Re: [PATCH v3 1/2] tests/functional/ppc64: extend pseries migration tests
In reply to Aniket SahuQuoted 11 lines · Aniket Sahu
The existing
test_migration.pyexercises all three migration transport paths (TCP, UNIX, exec) but only against the mac99 machine type. A regression in pseries-specific vmstate save/restore handlers would not be caught by migrating a mac99 guest.Switch the UNIX socket and exec (socat) migration tests from mac99 to pseries so that these transport paths are exercised against the pseries vmstate. The TCP test is left on mac99 since pseries TCP migration is already covered by
test_ppc64_linux_migrationintest_pseries.py.Signed-off-by Aniket Sahu <[email protected]>
Yes, this covers exactly what we intend to.
Thanks,
Amit
PATCH v3 2/2 tests/functional/ppc64: extend ppc64 powernv net device tests
In reply to Aniket SahuAdded console checks as the probe log lines will appear before the S14Silence-console init scripts.
--- tests/functional/ppc64/test_powernv.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
tests/functional/ppc64/test_powernv.py +5 -2
@@ -201,9 +201,12 @@ def do_test_ppc64_powernv(self, proc): self.wait_for_console_pattern("CPU: " + proc + " generation processor") self.wait_for_console_pattern("INIT: Starting kernel at ") + # NVMe, e1000e, and xHCI are probed synchronously by the kernel + # during PCI enumeration, after OPAL hands off to Linux. + self.wait_for_console_pattern("nvme nvme0") + self.wait_for_console_pattern("e1000e") + self.wait_for_console_pattern("xhci_hcd") self.wait_for_console_pattern("Run /sbin/init as init process") - # Device detection output driven by udev probing is sometimes cut off - # from console output, suspect S14silence-console init script. def test_ppc64_powernv_external_dtb(self): self.set_machine('powernv11')
Signature · 1 line
2.52.0
Re: [PATCH v3 2/2] tests/functional/ppc64: extend ppc64 powernv net device tests
Quoted 17 lines · Aniket Sahu
Added console checks as the probe log lines will appear before the S14Silence-console init scripts.
Signed-off-by Aniket Sahu <[email protected]>Reviewed-by Thomas Huth <[email protected]>Reviewed-by Amit Machhiwal <[email protected]>--- tests/functional/ppc64/test_powernv.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)tests/functional/ppc64/test_powernv.py +0
-0@@ -201,9 +201,12 @@ def do_test_ppc64_powernv(self, proc):
tests/functional/ppc64/test_powernv.py def do_test_ppc64_powernv(self, proc): · line 206
Quoted 10 lines
tests/functional/ppc64/test_powernv.py +5
-2self.wait_for_console_pattern("CPU: " + proc + " generation processor") self.wait_for_console_pattern("INIT: Starting kernel at ") + # NVMe, e1000e, and xHCI are probed synchronously by the kernel + # during PCI enumeration, after OPAL hands off to Linux. + self.wait_for_console_pattern("nvme nvme0") + self.wait_for_console_pattern("e1000e") + self.wait_for_console_pattern("xhci_hcd") self.wait_for_console_pattern("Run /sbin/init as init process") - # Device detection output driven by udev probing is sometimes cut off - # from console output, suspect S14silence-console init script.
Verified the probe order is correct.
Thanks,
- Aditya G