[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 01/21] tests/acceptance: add replay kernel test for s390x
From: |
Philippe Mathieu-Daudé |
Subject: |
[PULL 01/21] tests/acceptance: add replay kernel test for s390x |
Date: |
Mon, 27 Sep 2021 19:02:07 +0200 |
From: Pavel Dovgalyuk <pavel.dovgalyuk@ispras.ru>
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>
---
tests/acceptance/replay_kernel.py | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/tests/acceptance/replay_kernel.py
b/tests/acceptance/replay_kernel.py
index bb32b312402..06a09d66791 100644
--- a/tests/acceptance/replay_kernel.py
+++ b/tests/acceptance/replay_kernel.py
@@ -207,6 +207,21 @@ def test_arm_cubieboard_initrd(self):
'-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
--
2.31.1
- [PULL 00/21] Integration testing patches for 2021-09-27, Philippe Mathieu-Daudé, 2021/09/27
- [PULL 01/21] tests/acceptance: add replay kernel test for s390x,
Philippe Mathieu-Daudé <=
- [PULL 02/21] tests/acceptance: add replay kernel test for openrisc, Philippe Mathieu-Daudé, 2021/09/27
- [PULL 03/21] tests/acceptance: add replay kernel test for nios2, Philippe Mathieu-Daudé, 2021/09/27
- [PULL 04/21] tests/acceptance: add replay kernel test for alpha, Philippe Mathieu-Daudé, 2021/09/27
- [PULL 06/21] Acceptance tests: add myself as a reviewer for the acceptance tests, Philippe Mathieu-Daudé, 2021/09/27
- [PULL 07/21] Acceptance Tests: add standard clean up at test tearDown(), Philippe Mathieu-Daudé, 2021/09/27
- [PULL 08/21] avocado_qemu: standardize super() call following PEP3135, Philippe Mathieu-Daudé, 2021/09/27
- [PULL 05/21] tests/acceptance: Linux boot test for record/replay, Philippe Mathieu-Daudé, 2021/09/27
- [PULL 09/21] avocado_qemu: fix import module based on isort, Philippe Mathieu-Daudé, 2021/09/27
- [PULL 10/21] avocado_qemu: tweak ssh connect method, Philippe Mathieu-Daudé, 2021/09/27
- [PULL 11/21] avocado_qemu: explicitly return None to avoid R1710, Philippe Mathieu-Daudé, 2021/09/27