Kaynağa Gözat

tests/acceptance: tweak the tcg/kvm tests for virt

Really it's only TCG that can select which GIC model you want, KVM
guests should always be using the "host" version of the GIC for which
QEMU already provides a handy shortcut. Make the KVM test use this and
split the TCG test into it's two versions.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Willian Rampazzo <willianr@redhat.com>
Message-Id: <20210623102749.25686-2-alex.bennee@linaro.org>
Alex Bennée 4 yıl önce
ebeveyn
işleme
e8d61f7d21
1 değiştirilmiş dosya ile 12 ekleme ve 12 silme
  1. 12 12
      tests/acceptance/boot_linux.py

+ 12 - 12
tests/acceptance/boot_linux.py

@@ -75,10 +75,11 @@ def add_common_args(self):
         self.vm.add_args('-device', 'virtio-rng-pci,rng=rng0')
         self.vm.add_args('-device', 'virtio-rng-pci,rng=rng0')
         self.vm.add_args('-object', 'rng-random,id=rng0,filename=/dev/urandom')
         self.vm.add_args('-object', 'rng-random,id=rng0,filename=/dev/urandom')
 
 
-    def test_virt_tcg(self):
+    def test_virt_tcg_gicv2(self):
         """
         """
         :avocado: tags=accel:tcg
         :avocado: tags=accel:tcg
         :avocado: tags=cpu:max
         :avocado: tags=cpu:max
+        :avocado: tags=device:gicv2
         """
         """
         self.require_accelerator("tcg")
         self.require_accelerator("tcg")
         self.vm.add_args("-accel", "tcg")
         self.vm.add_args("-accel", "tcg")
@@ -87,29 +88,28 @@ def test_virt_tcg(self):
         self.add_common_args()
         self.add_common_args()
         self.launch_and_wait(set_up_ssh_connection=False)
         self.launch_and_wait(set_up_ssh_connection=False)
 
 
-    def test_virt_kvm_gicv2(self):
+    def test_virt_tcg_gicv3(self):
         """
         """
-        :avocado: tags=accel:kvm
-        :avocado: tags=cpu:host
-        :avocado: tags=device:gicv2
+        :avocado: tags=accel:tcg
+        :avocado: tags=cpu:max
+        :avocado: tags=device:gicv3
         """
         """
-        self.require_accelerator("kvm")
-        self.vm.add_args("-accel", "kvm")
-        self.vm.add_args("-cpu", "host")
-        self.vm.add_args("-machine", "virt,gic-version=2")
+        self.require_accelerator("tcg")
+        self.vm.add_args("-accel", "tcg")
+        self.vm.add_args("-cpu", "max")
+        self.vm.add_args("-machine", "virt,gic-version=3")
         self.add_common_args()
         self.add_common_args()
         self.launch_and_wait(set_up_ssh_connection=False)
         self.launch_and_wait(set_up_ssh_connection=False)
 
 
-    def test_virt_kvm_gicv3(self):
+    def test_virt_kvm(self):
         """
         """
         :avocado: tags=accel:kvm
         :avocado: tags=accel:kvm
         :avocado: tags=cpu:host
         :avocado: tags=cpu:host
-        :avocado: tags=device:gicv3
         """
         """
         self.require_accelerator("kvm")
         self.require_accelerator("kvm")
         self.vm.add_args("-accel", "kvm")
         self.vm.add_args("-accel", "kvm")
         self.vm.add_args("-cpu", "host")
         self.vm.add_args("-cpu", "host")
-        self.vm.add_args("-machine", "virt,gic-version=3")
+        self.vm.add_args("-machine", "virt,gic-version=host")
         self.add_common_args()
         self.add_common_args()
         self.launch_and_wait(set_up_ssh_connection=False)
         self.launch_and_wait(set_up_ssh_connection=False)