All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Dovgalyuk <pavel.dovgalyuk@ispras.ru>
To: qemu-devel@nongnu.org
Cc: pavel.dovgalyuk@ispras.ru, philmd@redhat.com,
	wrampazz@redhat.com, crosa@redhat.com, pbonzini@redhat.com,
	alex.bennee@linaro.org
Subject: [PATCH v3 4/5] tests/acceptance: add replay kernel test for alpha
Date: Tue, 27 Jul 2021 11:45:34 +0300	[thread overview]
Message-ID: <162737553482.1735673.10021851966976933952.stgit@pasha-ThinkPad-X280> (raw)
In-Reply-To: <162737551207.1735673.5022919664900932604.stgit@pasha-ThinkPad-X280>

This patch adds record/replay test which boots Linux
kernel on alpha 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>
---
 tests/acceptance/replay_kernel.py |   17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/tests/acceptance/replay_kernel.py b/tests/acceptance/replay_kernel.py
index 89079987ee..bcecdf1522 100644
--- a/tests/acceptance/replay_kernel.py
+++ b/tests/acceptance/replay_kernel.py
@@ -223,6 +223,23 @@ def test_s390x_s390_ccw_virtio(self):
         self.run_rr(kernel_path, kernel_command_line, console_pattern, shift=9,
             args=('-nodefaults', '-smp', '1'))
 
+    def test_alpha_clipper(self):
+        """
+        :avocado: tags=arch:alpha
+        :avocado: tags=machine:clipper
+        """
+        kernel_url = ('http://archive.debian.org/debian/dists/lenny/main/'
+                      'installer-alpha/20090123lenny10/images/cdrom/vmlinuz')
+        kernel_hash = '3a943149335529e2ed3e74d0d787b85fb5671ba3'
+        kernel_path = self.fetch_asset(kernel_url, asset_hash=kernel_hash)
+
+        uncompressed_kernel = archive.uncompress(kernel_path, self.workdir)
+
+        kernel_command_line = self.KERNEL_COMMON_COMMAND_LINE + 'console=ttyS0'
+        console_pattern = 'Kernel command line: %s' % kernel_command_line
+        self.run_rr(uncompressed_kernel, kernel_command_line, console_pattern, shift=9,
+            args=('-nodefaults', ))
+
     def test_ppc64_pseries(self):
         """
         :avocado: tags=arch:ppc64



  parent reply	other threads:[~2021-07-27  8:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-27  8:45 [PATCH v3 0/5] More record/replay acceptance tests Pavel Dovgalyuk
2021-07-27  8:45 ` [PATCH v3 1/5] tests/acceptance: add replay kernel test for s390 Pavel Dovgalyuk
2021-07-27  8:45 ` [PATCH v3 2/5] tests/acceptance: add replay kernel test for openrisc Pavel Dovgalyuk
2021-07-27  8:45 ` [PATCH v3 3/5] tests/acceptance: add replay kernel test for nios2 Pavel Dovgalyuk
2021-07-27  8:45 ` Pavel Dovgalyuk [this message]
2021-07-27  8:45 ` [PATCH v3 5/5] tests/acceptance: Linux boot test for record/replay Pavel Dovgalyuk
2021-09-27 16:37 ` [PATCH v3 0/5] More record/replay acceptance tests Philippe Mathieu-Daudé
2021-09-28  6:08   ` dovgaluk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=162737553482.1735673.10021851966976933952.stgit@pasha-ThinkPad-X280 \
    --to=pavel.dovgalyuk@ispras.ru \
    --cc=alex.bennee@linaro.org \
    --cc=crosa@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=philmd@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=wrampazz@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.