Skip to content

Commit 152a41b

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

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tests/acceptance/replay_kernel.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,22 @@ def test_x86_64_pc(self):
8989
console_pattern = 'VFS: Cannot open root device'
9090

9191
self.run_rr(kernel_path, kernel_command_line, console_pattern, shift=5)
92+
93+
def test_aarch64_virt(self):
94+
"""
95+
:avocado: tags=arch:aarch64
96+
:avocado: tags=machine:virt
97+
:avocado: tags=cpu:cortex-a53
98+
"""
99+
kernel_url = ('https://archives.fedoraproject.org/pub/archive/fedora'
100+
'/linux/releases/29/Everything/aarch64/os/images/pxeboot'
101+
'/vmlinuz')
102+
kernel_hash = '8c73e469fc6ea06a58dc83a628fc695b693b8493'
103+
kernel_path = self.fetch_asset(kernel_url, asset_hash=kernel_hash)
104+
105+
kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE +
106+
'console=ttyAMA0')
107+
console_pattern = 'VFS: Cannot open root device'
108+
109+
self.run_rr(kernel_path, kernel_command_line, console_pattern,
110+
args=('-cpu', 'cortex-a53'))

0 commit comments

Comments
 (0)