aboutsummaryrefslogtreecommitdiff
path: root/tests/acceptance
diff options
context:
space:
mode:
authorPavel Dovgalyuk <Pavel.Dovgaluk@gmail.com>2020-05-29 10:05:20 +0300
committerPhilippe Mathieu-Daudé <philmd@redhat.com>2020-06-21 13:58:52 +0200
commit20b1bf2ea907a69d64ba50d3c737bba95231fc8d (patch)
tree7d79caed4f145c1fc46da5394a6d6921b1e59839 /tests/acceptance
parent2e1206b9cb03894e824e1eaa2a81a0248b4abcba (diff)
downloadqemu-20b1bf2ea907a69d64ba50d3c737bba95231fc8d.zip
qemu-20b1bf2ea907a69d64ba50d3c737bba95231fc8d.tar.gz
qemu-20b1bf2ea907a69d64ba50d3c737bba95231fc8d.tar.bz2
tests/acceptance: add record/replay test for m68k
This patch adds a test for record/replay of the kernel image boot for m68k platform. Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru> Tested-by: Philippe Mathieu-Daude <philmd@redhat.com> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <159073592033.20809.1838967871297177313.stgit@pasha-ThinkPad-X280> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'tests/acceptance')
-rw-r--r--tests/acceptance/replay_kernel.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/acceptance/replay_kernel.py b/tests/acceptance/replay_kernel.py
index b7acc4b..8ef4e49 100644
--- a/tests/acceptance/replay_kernel.py
+++ b/tests/acceptance/replay_kernel.py
@@ -172,3 +172,21 @@ class ReplayKernel(LinuxKernelTest):
# icount is not good enough for PPC64 for complete boot yet
console_pattern = 'Kernel command line: %s' % kernel_command_line
self.run_rr(kernel_path, kernel_command_line, console_pattern)
+
+ def test_m68k_q800(self):
+ """
+ :avocado: tags=arch:m68k
+ :avocado: tags=machine:q800
+ """
+ deb_url = ('https://snapshot.debian.org/archive/debian-ports'
+ '/20191021T083923Z/pool-m68k/main'
+ '/l/linux/kernel-image-5.3.0-1-m68k-di_5.3.7-1_m68k.udeb')
+ deb_hash = '044954bb9be4160a3ce81f8bc1b5e856b75cccd1'
+ deb_path = self.fetch_asset(deb_url, asset_hash=deb_hash)
+ kernel_path = self.extract_from_deb(deb_path,
+ '/boot/vmlinux-5.3.0-1-m68k')
+
+ kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE +
+ 'console=ttyS0 vga=off')
+ console_pattern = 'No filesystem could mount root'
+ self.run_rr(kernel_path, kernel_command_line, console_pattern)