[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 04/11] tests/acceptance: add kernel record/replay test for
From: |
Alex Bennée |
Subject: |
Re: [PATCH v2 04/11] tests/acceptance: add kernel record/replay test for x86_64 |
Date: |
Wed, 27 May 2020 16:40:37 +0100 |
User-agent: |
mu4e 1.5.1; emacs 28.0.50 |
Pavel Dovgalyuk <address@hidden> writes:
> This patch adds a test for record/replay an execution of x86_64 machine.
> Execution scenario includes simple kernel boot, which allows testing
> basic hardware interaction in RR mode.
>
> Signed-off-by: Pavel Dovgalyuk <address@hidden>
> ---
> 0 files changed
>
> diff --git a/tests/acceptance/replay_kernel.py
> b/tests/acceptance/replay_kernel.py
> index b8b277ad2f..c7526f1aba 100644
> --- a/tests/acceptance/replay_kernel.py
> +++ b/tests/acceptance/replay_kernel.py
> @@ -55,3 +55,19 @@ class ReplayKernel(LinuxKernelUtils):
> True, shift, args)
> self.run_vm(kernel_path, kernel_command_line, console_pattern,
> False, shift, args)
> +
> + def test_x86_64_pc(self):
> + """
> + :avocado: tags=arch:x86_64
> + :avocado: tags=machine:pc
> + """
> + kernel_url = ('https://archives.fedoraproject.org/pub/archive/fedora'
> +
> '/linux/releases/29/Everything/x86_64/os/images/pxeboot'
> + '/vmlinuz')
> + kernel_hash = '23bebd2680757891cf7adedb033532163a792495'
> + kernel_path = self.fetch_asset(kernel_url, asset_hash=kernel_hash)
> +
> + kernel_command_line = self.KERNEL_COMMON_COMMAND_LINE +
> 'console=ttyS0'
I note that:
KERNEL_COMMON_COMMAND_LINE = 'printk.time=0 '
and given we are looking for repeatability here maybe we should use our
own command line so we can compare the recorded and replayed boot?
> + console_pattern = 'Kernel command line: %s' % kernel_command_line
> +
> + self.run_rr(kernel_path, kernel_command_line,
> console_pattern)
--
Alex Bennée
- Re: [PATCH v2 03/11] tests/acceptance: add base class record/replay kernel tests, (continued)
[PATCH v2 04/11] tests/acceptance: add kernel record/replay test for x86_64, Pavel Dovgalyuk, 2020/05/27
Re: [PATCH v2 04/11] tests/acceptance: add kernel record/replay test for x86_64,
Alex Bennée <=
Re: [PATCH v2 04/11] tests/acceptance: add kernel record/replay test for x86_64, Alex Bennée, 2020/05/27
[PATCH v2 05/11] tests/acceptance: add record/replay test for aarch64, Pavel Dovgalyuk, 2020/05/27
[PATCH v2 06/11] tests/acceptance: add record/replay test for arm, Pavel Dovgalyuk, 2020/05/27