aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2020-02-10 12:26:44 +0100
committerGerd Hoffmann <kraxel@redhat.com>2020-02-10 12:26:44 +0100
commit490442630911cfc149e72a00fd52b6f17b67ea68 (patch)
tree603692cf2627d6827c125d495745879cb762bf9b
parent1fec1f4df6d26d63dac396a3dbae70da2c69d8a5 (diff)
downloaddrminfo-490442630911cfc149e72a00fd52b6f17b67ea68.tar.gz
tests: add guest driver tags
-rw-r--r--tests/basic.py27
-rw-r--r--tests/edid.py12
-rw-r--r--tests/migration.py15
-rw-r--r--tests/unbind.py12
-rw-r--r--tests/unload.py12
5 files changed, 78 insertions, 0 deletions
diff --git a/tests/basic.py b/tests/basic.py
index 69dfe3e..f6e8d9a 100644
--- a/tests/basic.py
+++ b/tests/basic.py
@@ -126,40 +126,64 @@ class BaseDRM(TestDRM):
self.prepare_kernel_initrd()
def test_stdvga(self):
+ """
+ :avocado: tags=bochs
+ """
vga = 'VGA'
self.common_tests(vga)
def test_bochs_dpy(self):
+ """
+ :avocado: tags=bochs
+ """
vga = 'bochs-display'
self.common_tests(vga)
def test_cirrus(self):
+ """
+ :avocado: tags=cirrus
+ """
vga = 'cirrus-vga'
self.common_tests(vga)
def test_qxl_vga(self):
+ """
+ :avocado: tags=qxl
+ """
vga = 'qxl-vga'
self.common_tests(vga)
self.prime_tests(vga)
def test_qxl(self):
+ """
+ :avocado: tags=qxl
+ """
vga = 'qxl'
self.common_tests(vga)
self.prime_tests(vga)
def test_virtio_vga(self):
+ """
+ :avocado: tags=virtio
+ """
vga = 'virtio-vga'
self.common_tests(vga)
self.prime_tests(vga)
self.virtio_tests(vga)
def test_virtio_gpu(self):
+ """
+ :avocado: tags=virtio
+ """
vga = 'virtio-gpu-pci'
self.common_tests(vga)
self.prime_tests(vga)
self.virtio_tests(vga)
def test_virgl(self):
+ """
+ :avocado: tags=virtio
+ """
vga = 'virtio-vga'
self.common_tests(vga, 'egl-headless')
self.prime_tests(vga)
@@ -168,5 +192,8 @@ class BaseDRM(TestDRM):
@avocado.skipUnless(os.path.exists(igd_vgpu_path), "no vgpu")
def test_vgpu_igd(self):
+ """
+ :avocado: tags=igd
+ """
vga = 'vfio-pci,display=on,sysfsdev=%s' % self.igd_vgpu_path
self.common_tests(vga, 'egl-headless')
diff --git a/tests/edid.py b/tests/edid.py
index 6a21bf7..ea51de7 100644
--- a/tests/edid.py
+++ b/tests/edid.py
@@ -41,17 +41,29 @@ class EDID(TestDRM):
self.prepare_kernel_initrd()
def test_stdvga(self):
+ """
+ :avocado: tags=bochs
+ """
vga = "VGA"
self.run_edid_test(vga)
def test_bochs_dpy(self):
+ """
+ :avocado: tags=bochs
+ """
vga = 'bochs-display'
self.run_edid_test(vga)
def test_virtio_vga(self):
+ """
+ :avocado: tags=virtio
+ """
vga = 'virtio-vga'
self.run_edid_test(vga)
def test_virtio_gpu(self):
+ """
+ :avocado: tags=virtio
+ """
vga = 'virtio-gpu-pci'
self.run_edid_test(vga)
diff --git a/tests/migration.py b/tests/migration.py
index 4c8990a..a267d78 100644
--- a/tests/migration.py
+++ b/tests/migration.py
@@ -86,21 +86,36 @@ class Migration(TestDRM):
self.prepare_kernel_initrd()
def test_stdvga(self):
+ """
+ :avocado: tags=bochs
+ """
vga = 'VGA'
self.migration_test(vga)
def test_bochs_dpy(self):
+ """
+ :avocado: tags=bochs
+ """
vga = 'bochs-display'
self.migration_test(vga)
def test_cirrus(self):
+ """
+ :avocado: tags=cirrus
+ """
vga = "cirrus-vga"
self.migration_test(vga)
def test_qxl(self):
+ """
+ :avocado: tags=qxl
+ """
vga = "qxl-vga"
self.migration_test(vga)
def test_virtio_vga(self):
+ """
+ :avocado: tags=virtio
+ """
vga = "virtio-vga"
self.migration_test(vga)
diff --git a/tests/unbind.py b/tests/unbind.py
index 87f419c..8da135d 100644
--- a/tests/unbind.py
+++ b/tests/unbind.py
@@ -39,17 +39,29 @@ class unbind(TestDRM):
self.prepare_kernel_initrd()
def test_stdvga(self):
+ """
+ :avocado: tags=bochs
+ """
vga = "VGA"
self.run_unbind_test(vga)
def test_cirrus(self):
+ """
+ :avocado: tags=cirrus
+ """
vga = "cirrus-vga"
self.run_unbind_test(vga)
def test_qxl_vga(self):
+ """
+ :avocado: tags=qxl
+ """
vga = "qxl-vga"
self.run_unbind_test(vga)
def test_virtio_vga(self):
+ """
+ :avocado: tags=virtio
+ """
vga = "virtio-vga"
self.run_unbind_test(vga)
diff --git a/tests/unload.py b/tests/unload.py
index 7d46b47..8f09ffc 100644
--- a/tests/unload.py
+++ b/tests/unload.py
@@ -39,21 +39,33 @@ class unload(TestDRM):
self.prepare_kernel_initrd()
def test_stdvga(self):
+ """
+ :avocado: tags=bochs
+ """
vga = "VGA"
mod = "bochs-drm"
self.run_unload_test(vga, mod)
def test_cirrus(self):
+ """
+ :avocado: tags=cirrus
+ """
vga = "cirrus-vga"
mod = "cirrus"
self.run_unload_test(vga, mod)
def test_qxl_vga(self):
+ """
+ :avocado: tags=qxl
+ """
vga = "qxl-vga"
mod = "qxl"
self.run_unload_test(vga, mod)
def test_virtio_vga(self):
+ """
+ :avocado: tags=virtio
+ """
vga = "virtio-vga"
mod = "virtio-gpu"
self.run_unload_test(vga, mod)