diff mbox series

[v2,2/6] tests/acceptance: add replay kernel test for ppc64

Message ID 162459954921.387455.17000468377504697052.stgit@pasha-ThinkPad-X280 (mailing list archive)
State New, archived
Headers show
Series More record/replay acceptance tests | expand

Commit Message

Pavel Dovgalyuk June 25, 2021, 5:39 a.m. UTC
This patch adds record/replay test which boots Linux
kernel on ppc64 platform. The test uses kernel binaries
taken from boot_linux_console test.

Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru>
---
 tests/acceptance/replay_kernel.py |   13 +++++++++++++
 1 file changed, 13 insertions(+)

Comments

Willian Rampazzo July 5, 2021, 5:46 p.m. UTC | #1
Already upstream :)

On Fri, Jun 25, 2021 at 2:39 AM Pavel Dovgalyuk
<pavel.dovgalyuk@ispras.ru> wrote:
>
> This patch adds record/replay test which boots Linux
> kernel on ppc64 platform. The test uses kernel binaries
> taken from boot_linux_console test.
>
> Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru>
> ---
>  tests/acceptance/replay_kernel.py |   13 +++++++++++++
>  1 file changed, 13 insertions(+)
>
> diff --git a/tests/acceptance/replay_kernel.py b/tests/acceptance/replay_kernel.py
> index cdc22cb6d3..7e7f4c8ccc 100644
> --- a/tests/acceptance/replay_kernel.py
> +++ b/tests/acceptance/replay_kernel.py
> @@ -367,6 +367,19 @@ def test_xtensa_lx60(self):
>          self.do_test_advcal_2018(file_path, 'santas-sleigh-ride.elf',
>                                   args=('-cpu', 'dc233c'))
>
> +    def test_ppc64_e500(self):
> +        """
> +        :avocado: tags=arch:ppc64
> +        :avocado: tags=machine:ppce500
> +        :avocado: tags=cpu:e5500
> +        """
> +        tar_hash = '6951d86d644b302898da2fd701739c9406527fe1'
> +        tar_url = ('https://www.qemu-advent-calendar.org'
> +                   '/2018/download/day19.tar.xz')
> +        file_path = self.fetch_asset(tar_url, asset_hash=tar_hash)
> +        self.do_test_advcal_2018(file_path, 'uImage', ('-cpu', 'e5500'))
> +
> +
>  @skipUnless(os.getenv('AVOCADO_TIMEOUT_EXPECTED'), 'Test might timeout')
>  class ReplayKernelSlow(ReplayKernelBase):
>      # Override the timeout, because this kernel includes an inner
>
Pavel Dovgalyuk July 6, 2021, 4:27 a.m. UTC | #2
On 05.07.2021 20:46, Willian Rampazzo wrote:
> Already upstream :)

Ok, thanks.

> 
> On Fri, Jun 25, 2021 at 2:39 AM Pavel Dovgalyuk
> <pavel.dovgalyuk@ispras.ru> wrote:
>>
>> This patch adds record/replay test which boots Linux
>> kernel on ppc64 platform. The test uses kernel binaries
>> taken from boot_linux_console test.
>>
>> Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru>
>> ---
>>   tests/acceptance/replay_kernel.py |   13 +++++++++++++
>>   1 file changed, 13 insertions(+)
>>
>> diff --git a/tests/acceptance/replay_kernel.py b/tests/acceptance/replay_kernel.py
>> index cdc22cb6d3..7e7f4c8ccc 100644
>> --- a/tests/acceptance/replay_kernel.py
>> +++ b/tests/acceptance/replay_kernel.py
>> @@ -367,6 +367,19 @@ def test_xtensa_lx60(self):
>>           self.do_test_advcal_2018(file_path, 'santas-sleigh-ride.elf',
>>                                    args=('-cpu', 'dc233c'))
>>
>> +    def test_ppc64_e500(self):
>> +        """
>> +        :avocado: tags=arch:ppc64
>> +        :avocado: tags=machine:ppce500
>> +        :avocado: tags=cpu:e5500
>> +        """
>> +        tar_hash = '6951d86d644b302898da2fd701739c9406527fe1'
>> +        tar_url = ('https://www.qemu-advent-calendar.org'
>> +                   '/2018/download/day19.tar.xz')
>> +        file_path = self.fetch_asset(tar_url, asset_hash=tar_hash)
>> +        self.do_test_advcal_2018(file_path, 'uImage', ('-cpu', 'e5500'))
>> +
>> +
>>   @skipUnless(os.getenv('AVOCADO_TIMEOUT_EXPECTED'), 'Test might timeout')
>>   class ReplayKernelSlow(ReplayKernelBase):
>>       # Override the timeout, because this kernel includes an inner
>>
>
diff mbox series

Patch

diff --git a/tests/acceptance/replay_kernel.py b/tests/acceptance/replay_kernel.py
index cdc22cb6d3..7e7f4c8ccc 100644
--- a/tests/acceptance/replay_kernel.py
+++ b/tests/acceptance/replay_kernel.py
@@ -367,6 +367,19 @@  def test_xtensa_lx60(self):
         self.do_test_advcal_2018(file_path, 'santas-sleigh-ride.elf',
                                  args=('-cpu', 'dc233c'))
 
+    def test_ppc64_e500(self):
+        """
+        :avocado: tags=arch:ppc64
+        :avocado: tags=machine:ppce500
+        :avocado: tags=cpu:e5500
+        """
+        tar_hash = '6951d86d644b302898da2fd701739c9406527fe1'
+        tar_url = ('https://www.qemu-advent-calendar.org'
+                   '/2018/download/day19.tar.xz')
+        file_path = self.fetch_asset(tar_url, asset_hash=tar_hash)
+        self.do_test_advcal_2018(file_path, 'uImage', ('-cpu', 'e5500'))
+
+
 @skipUnless(os.getenv('AVOCADO_TIMEOUT_EXPECTED'), 'Test might timeout')
 class ReplayKernelSlow(ReplayKernelBase):
     # Override the timeout, because this kernel includes an inner