diff options
author | Pavel Dovgalyuk <pavel.dovgalyuk@ispras.ru> | 2021-07-27 11:45:17 +0300 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@redhat.com> | 2021-09-27 18:51:36 +0200 |
commit | f7ade7793170619cebbe2aeeda6c7baf0516a58c (patch) | |
tree | 48a2f474f9c6de02b8e0cf5bcc59416d2ff77c3c /tests/acceptance | |
parent | de8ed1055c2ce18c95f597eb10df360dcb534f99 (diff) | |
download | qemu-f7ade7793170619cebbe2aeeda6c7baf0516a58c.zip qemu-f7ade7793170619cebbe2aeeda6c7baf0516a58c.tar.gz qemu-f7ade7793170619cebbe2aeeda6c7baf0516a58c.tar.bz2 |
tests/acceptance: add replay kernel test for s390x
This patch adds record/replay test which boots Linux
kernel on s390x platform. The test uses kernel binaries
taken from boot_linux_console test.
Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru>
Reviewed-by: Willian Rampazzo <willianr@redhat.com>
Acked-by: Thomas Huth <thuth@redhat.com>
[PMD: Drop default '-smp 1' as suggested by Thomas]
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <162737551785.1735673.6775108576116333386.stgit@pasha-ThinkPad-X280>
Diffstat (limited to 'tests/acceptance')
-rw-r--r-- | tests/acceptance/replay_kernel.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/acceptance/replay_kernel.py b/tests/acceptance/replay_kernel.py index bb32b31..06a09d6 100644 --- a/tests/acceptance/replay_kernel.py +++ b/tests/acceptance/replay_kernel.py @@ -207,6 +207,21 @@ class ReplayKernelNormal(ReplayKernelBase): '-initrd', initrd_path, '-no-reboot')) + def test_s390x_s390_ccw_virtio(self): + """ + :avocado: tags=arch:s390x + :avocado: tags=machine:s390-ccw-virtio + """ + kernel_url = ('https://archives.fedoraproject.org/pub/archive' + '/fedora-secondary/releases/29/Everything/s390x/os/images' + '/kernel.img') + kernel_hash = 'e8e8439103ef8053418ef062644ffd46a7919313' + kernel_path = self.fetch_asset(kernel_url, asset_hash=kernel_hash) + + kernel_command_line = self.KERNEL_COMMON_COMMAND_LINE + 'console=sclp0' + console_pattern = 'Kernel command line: %s' % kernel_command_line + self.run_rr(kernel_path, kernel_command_line, console_pattern, shift=9) + def test_ppc64_pseries(self): """ :avocado: tags=arch:ppc64 |