Skip to content

Commit 2e1206b

Browse files
Dovgalyukphilmd
authored andcommitted
tests/acceptance: add record/replay test for ppc64
This patch adds a test for record/replay of the kernel image boot for ppc64 platform. Signed-off-by: Pavel Dovgalyuk <[email protected]> Tested-by: Philippe Mathieu-Daude <[email protected]> Message-Id: <159073591363.20809.15658672985367330140.stgit@pasha-ThinkPad-X280> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
1 parent 2f2d83a commit 2e1206b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/acceptance/replay_kernel.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,19 @@ def test_arm_cubieboard_initrd(self):
156156
args=('-dtb', dtb_path,
157157
'-initrd', initrd_path,
158158
'-no-reboot'))
159+
160+
def test_ppc64_pseries(self):
161+
"""
162+
:avocado: tags=arch:ppc64
163+
:avocado: tags=machine:pseries
164+
"""
165+
kernel_url = ('https://archives.fedoraproject.org/pub/archive'
166+
'/fedora-secondary/releases/29/Everything/ppc64le/os'
167+
'/ppc/ppc64/vmlinuz')
168+
kernel_hash = '3fe04abfc852b66653b8c3c897a59a689270bc77'
169+
kernel_path = self.fetch_asset(kernel_url, asset_hash=kernel_hash)
170+
171+
kernel_command_line = self.KERNEL_COMMON_COMMAND_LINE + 'console=hvc0'
172+
# icount is not good enough for PPC64 for complete boot yet
173+
console_pattern = 'Kernel command line: %s' % kernel_command_line
174+
self.run_rr(kernel_path, kernel_command_line, console_pattern)

0 commit comments

Comments
 (0)