[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 2/4] tests/acceptance: boot_linux_console: Add boot Linux with
From: |
Wainer dos Santos Moschetta |
Subject: |
[PATCH v3 2/4] tests/acceptance: boot_linux_console: Add boot Linux with kvm tests |
Date: |
Tue, 21 Jan 2020 22:27:51 -0300 |
Added boot Linux test cases that launch QEMU with kvm
enabled. Likewise it was added tests for tcg.
Signed-off-by: Wainer dos Santos Moschetta <address@hidden>
---
tests/acceptance/boot_linux_console.py | 88 ++++++++++++++++++++------
1 file changed, 68 insertions(+), 20 deletions(-)
diff --git a/tests/acceptance/boot_linux_console.py
b/tests/acceptance/boot_linux_console.py
index e40b84651b..a36eae630c 100644
--- a/tests/acceptance/boot_linux_console.py
+++ b/tests/acceptance/boot_linux_console.py
@@ -51,11 +51,7 @@ class BootLinuxConsole(Test):
os.chdir(cwd)
return self.workdir + path
- def test_x86_64_pc(self):
- """
- :avocado: tags=arch:x86_64
- :avocado: tags=machine:pc
- """
+ def do_test_x86_64_pc(self):
kernel_url = ('https://archives.fedoraproject.org/pub/archive/fedora'
'/linux/releases/29/Everything/x86_64/os/images/pxeboot'
'/vmlinuz')
@@ -70,6 +66,22 @@ class BootLinuxConsole(Test):
console_pattern = 'Kernel command line: %s' % kernel_command_line
self.wait_for_console_pattern(console_pattern)
+ def test_x86_64_pc_kvm(self):
+ """
+ :avocado: tags=arch:x86_64
+ :avocado: tags=machine:pc
+ :avocado: tags=accel:kvm
+ """
+ self.do_test_x86_64_pc()
+
+ def test_x86_64_pc_tcg(self):
+ """
+ :avocado: tags=arch:x86_64
+ :avocado: tags=machine:pc
+ :avocado: tags=accel:tcg
+ """
+ self.do_test_x86_64_pc()
+
def test_mips_malta(self):
"""
:avocado: tags=arch:mips
@@ -258,11 +270,7 @@ class BootLinuxConsole(Test):
kernel_hash = '18d1c68f2e23429e266ca39ba5349ccd0aeb7180'
self.do_test_mips_malta32el_nanomips(kernel_url, kernel_hash)
- def test_aarch64_virt(self):
- """
- :avocado: tags=arch:aarch64
- :avocado: tags=machine:virt
- """
+ def do_test_aarch64_virt(self):
kernel_url = ('https://archives.fedoraproject.org/pub/archive/fedora'
'/linux/releases/29/Everything/aarch64/os/images/pxeboot'
'/vmlinuz')
@@ -279,6 +287,22 @@ class BootLinuxConsole(Test):
console_pattern = 'Kernel command line: %s' % kernel_command_line
self.wait_for_console_pattern(console_pattern)
+ def test_aarch64_virt_kvm(self):
+ """
+ :avocado: tags=arch:aarch64
+ :avocado: tags=machine:virt
+ :avocado: tags=accel:kvm
+ """
+ self.do_test_aarch64_virt()
+
+ def test_aarch64_virt_tcg(self):
+ """
+ :avocado: tags=arch:aarch64
+ :avocado: tags=machine:virt
+ :avocado: tags=accel:tcg
+ """
+ self.do_test_aarch64_virt()
+
def test_arm_virt(self):
"""
:avocado: tags=arch:arm
@@ -485,11 +509,7 @@ class BootLinuxConsole(Test):
exec_command_and_wait_for_pattern(self, 'reboot',
'reboot: Restarting system')
- def test_s390x_s390_ccw_virtio(self):
- """
- :avocado: tags=arch:s390x
- :avocado: tags=machine:s390-ccw-virtio
- """
+ def do_test_s390x_s390_ccw_virtio(self):
kernel_url = ('https://archives.fedoraproject.org/pub/archive'
'/fedora-secondary/releases/29/Everything/s390x/os/images'
'/kernel.img')
@@ -505,6 +525,22 @@ class BootLinuxConsole(Test):
console_pattern = 'Kernel command line: %s' % kernel_command_line
self.wait_for_console_pattern(console_pattern)
+ def test_s390x_s390_ccw_virtio_kvm(self):
+ """
+ :avocado: tags=arch:s390x
+ :avocado: tags=machine:s390-ccw-virtio
+ :avocado: tags=accel:kvm
+ """
+ self.do_test_s390x_s390_ccw_virtio()
+
+ def test_s390x_s390_ccw_virtio_tcg(self):
+ """
+ :avocado: tags=arch:s390x
+ :avocado: tags=machine:s390-ccw-virtio
+ :avocado: tags=accel:tcg
+ """
+ self.do_test_s390x_s390_ccw_virtio()
+
def test_alpha_clipper(self):
"""
:avocado: tags=arch:alpha
@@ -526,11 +562,7 @@ class BootLinuxConsole(Test):
console_pattern = 'Kernel command line: %s' % kernel_command_line
self.wait_for_console_pattern(console_pattern)
- def test_ppc64_pseries(self):
- """
- :avocado: tags=arch:ppc64
- :avocado: tags=machine:pseries
- """
+ def do_test_ppc64_pseries(self):
kernel_url = ('https://archives.fedoraproject.org/pub/archive'
'/fedora-secondary/releases/29/Everything/ppc64le/os'
'/ppc/ppc64/vmlinuz')
@@ -545,6 +577,22 @@ class BootLinuxConsole(Test):
console_pattern = 'Kernel command line: %s' % kernel_command_line
self.wait_for_console_pattern(console_pattern)
+ def test_ppc64le_pseries_kvm(self):
+ """
+ :avocado: tags=arch:ppc64
+ :avocado: tags=machine:pseries
+ :avocado: tags=accel:kvm
+ """
+ self.do_test_ppc64_pseries()
+
+ def test_ppc64le_pseries_tcg(self):
+ """
+ :avocado: tags=arch:ppc64
+ :avocado: tags=machine:pseries
+ :avocado: tags=accel:tcg
+ """
+ self.do_test_ppc64_pseries()
+
def test_m68k_q800(self):
"""
:avocado: tags=arch:m68k
--
2.23.0
[PATCH v3 3/4] tests/acceptance: avocado_qemu: Refactor the handler of 'machine' parameter, Wainer dos Santos Moschetta, 2020/01/21
[PATCH v3 4/4] travis.yml: Enable acceptance KVM tests, Wainer dos Santos Moschetta, 2020/01/21