summary refs log tree commit diff stats
path: root/tests/functional/test_alpha_replay.py
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2025-02-18 16:27:40 +0100
committerThomas Huth <thuth@redhat.com>2025-02-26 07:43:25 +0100
commit7472862965f77d10b44eba0d9efa9cfb47c94651 (patch)
treea90a5242a949b2b695889eb5bc7b6b85beb2ca07 /tests/functional/test_alpha_replay.py
parent8a145225c296006efc28c4c4cf90b9e0b334ec87 (diff)
downloadfocaccia-qemu-7472862965f77d10b44eba0d9efa9cfb47c94651.tar.gz
focaccia-qemu-7472862965f77d10b44eba0d9efa9cfb47c94651.zip
tests/functional: Convert the alpha replay avocado tests
Put the tests into a separate file now (since in the functional
framework, each file is run with one specific qemu-system-* binary).

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20250218152744.228335-11-thuth@redhat.com>
Diffstat (limited to 'tests/functional/test_alpha_replay.py')
-rwxr-xr-xtests/functional/test_alpha_replay.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/functional/test_alpha_replay.py b/tests/functional/test_alpha_replay.py
new file mode 100755
index 0000000000..24a17ef590
--- /dev/null
+++ b/tests/functional/test_alpha_replay.py
@@ -0,0 +1,29 @@
+#!/usr/bin/env python3
+#
+# Replay test that boots a Linux kernel on an Alpha machine
+# and checks the console
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+from qemu_test import Asset
+from replay_kernel import ReplayKernelBase
+
+
+class AlphaReplay(ReplayKernelBase):
+
+    ASSET_KERNEL = Asset(
+        ('http://archive.debian.org/debian/dists/lenny/main/installer-alpha/'
+         '20090123lenny10/images/cdrom/vmlinuz'),
+        '34f53da3fa32212e4f00b03cb944b2ad81c06bc8faaf9b7193b2e544ceeca576')
+
+    def test_clipper(self):
+        self.set_machine('clipper')
+        kernel_path = self.uncompress(self.ASSET_KERNEL, format='gz')
+        kernel_command_line = self.KERNEL_COMMON_COMMAND_LINE + 'console=ttyS0'
+        console_pattern = 'Kernel command line: %s' % kernel_command_line
+        self.run_rr(kernel_path, kernel_command_line, console_pattern, shift=9,
+            args=('-nodefaults', ))
+
+
+if __name__ == '__main__':
+    ReplayKernelBase.main()