[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 16/27] tests/acceptance: ARC: Add linux boot testing.
From: |
cupertinomiranda |
Subject: |
[PATCH 16/27] tests/acceptance: ARC: Add linux boot testing. |
Date: |
Mon, 5 Apr 2021 15:31:27 +0100 |
From: Cupertino Miranda <cmiranda@synopsys.com>
Just an acceptance test with ARC Linux booting.
Signed-off-by: Cupertino Miranda <cmiranda@synopsys.com>
---
tests/acceptance/boot_linux_console.py | 55 ++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
diff --git a/tests/acceptance/boot_linux_console.py
b/tests/acceptance/boot_linux_console.py
index 1ca32ecf25..b5a781b6b4 100644
--- a/tests/acceptance/boot_linux_console.py
+++ b/tests/acceptance/boot_linux_console.py
@@ -138,6 +138,26 @@ def test_mips_malta(self):
console_pattern = 'Kernel command line: %s' % kernel_command_line
self.wait_for_console_pattern(console_pattern)
+ def test_mips_malta(self):
+ """
+ :avocado: tags=arch:arc
+ """
+ deb_url = ('http://snapshot.debian.org/archive/debian/'
+ '20130217T032700Z/pool/main/l/linux-2.6/'
+ 'linux-image-2.6.32-5-4kc-malta_2.6.32-48_mips.deb')
+ deb_hash = 'a8cfc28ad8f45f54811fc6cf74fc43ffcfe0ba04'
+ deb_path = self.fetch_asset(deb_url, asset_hash=deb_hash)
+ kernel_path = self.extract_from_deb(deb_path,
+ '/boot/vmlinux-archs')
+
+ self.vm.set_console()
+ kernel_command_line = self.KERNEL_COMMON_COMMAND_LINE + 'console=ttyS0'
+ self.vm.add_args('-kernel', kernel_path,
+ '-append', kernel_command_line)
+ self.vm.launch()
+ console_pattern = 'Kernel command line: %s' % kernel_command_line
+ self.wait_for_console_pattern(console_pattern)
+
def test_mips64el_malta(self):
"""
This test requires the ar tool to extract "data.tar.gz" from
@@ -966,6 +986,17 @@ def test_alpha_clipper(self):
console_pattern = 'Kernel command line: %s' % kernel_command_line
self.wait_for_console_pattern(console_pattern)
+ def do_test_arc(self, kernel_name, console=0):
+ tar_url =
('https://github.com/cupertinomiranda/arc-qemu-resources/archive/master.tar.gz')
+ file_path = self.fetch_asset(tar_url)
+ archive.extract(file_path, self.workdir)
+
+ self.vm.set_console(console_index=console)
+ self.vm.add_args('-kernel',
+ self.workdir + '/' + kernel_name)
+ self.vm.launch()
+ self.wait_for_console_pattern('QEMU advent calendar')
+
def test_m68k_q800(self):
"""
:avocado: tags=arch:m68k
@@ -1086,3 +1117,27 @@ def test_xtensa_lx60(self):
tar_hash = '49e88d9933742f0164b60839886c9739cb7a0d34'
self.vm.add_args('-cpu', 'dc233c')
self.do_test_advcal_2018('02', tar_hash, 'santas-sleigh-ride.elf')
+
+ timeout = 240
+ def test_arc_virt(self):
+ """
+ :avocado: tags=arch:arc
+ :avocado: tags=machine:virt
+ """
+
+ tar_url = ('https://github.com/cupertinomiranda/'
+ 'arc-qemu-resources/archive/master.tar.gz')
+ file_path = self.fetch_asset(tar_url)
+ archive.extract(file_path, self.workdir)
+
+ kernel_path = self.workdir + '/arc-qemu-resources-master/vmlinux_archs'
+
+ self.vm.set_console()
+ kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE)
+ self.vm.add_args('-kernel', kernel_path)
+ self.vm.add_args('-device', 'virtio-net-device,netdev=net0')
+ self.vm.add_args('-netdev',
'user,id=net0,hostfwd=tcp::5558-:21,hostfwd=tcp::5557-:23')
+ self.vm.launch()
+
+ console_pattern = 'Welcome to Buildroot'
+ self.wait_for_console_pattern(console_pattern)
--
2.20.1
- Re: [PATCH 05/27] arc: TCG instruction generator and hand-definitions, (continued)
- [PATCH 06/27] arc: semfunc.c tcg code generator., cupertinomiranda, 2021/04/05
- [PATCH 10/27] arc: Add memory management unit (MMU) support, cupertinomiranda, 2021/04/05
- [PATCH 09/27] arc: Add IRQ and timer subsystem support, cupertinomiranda, 2021/04/05
- [PATCH 14/27] arc: Add support for ARCv2, cupertinomiranda, 2021/04/05
- [PATCH 11/27] arc: Add memory protection unit (MPU) support, cupertinomiranda, 2021/04/05
- [PATCH 16/27] tests/acceptance: ARC: Add linux boot testing.,
cupertinomiranda <=
- [PATCH 08/27] arc: Add BCR and AUX registers implementation, cupertinomiranda, 2021/04/05
- [PATCH 12/27] arc: Add gdbstub and XML for debugging support, cupertinomiranda, 2021/04/05
- [PATCH 13/27] arc: Add Synopsys ARC emulation boards, cupertinomiranda, 2021/04/05
- [PATCH 17/27] arcv3: Core cpu file changes, cupertinomiranda, 2021/04/05
- [PATCH 20/27] arcv3: TCG, decoder glue code and helper changes, cupertinomiranda, 2021/04/05
- [PATCH 15/27] tests/tcg: ARC: Add TCG instruction definition tests, cupertinomiranda, 2021/04/05
- [PATCH 18/27] arcv3: Decoder code, cupertinomiranda, 2021/04/05