diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2021-02-15 12:24:58 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2021-02-15 12:24:58 +0100 |
commit | ee4acd9755b5f0854a5f1ca5799fecbb057d2ec7 (patch) | |
tree | e9da62a27167094068f5a4d960c664fa95f6b34a | |
parent | 0a2b61623cccb942a65d2669e53d256990e7053b (diff) | |
download | drminfo-ee4acd9755b5f0854a5f1ca5799fecbb057d2ec7.tar.gz |
add cursor test
-rw-r--r-- | tests/cursor.py | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/tests/cursor.py b/tests/cursor.py new file mode 100644 index 0000000..26cb859 --- /dev/null +++ b/tests/cursor.py @@ -0,0 +1,53 @@ +# +# cursor tests +# + +# stdlib +import os +import time +from shutil import copyfile + +# avocado +import avocado + +# my bits +from drminfo import TestDRM + +class cursor(TestDRM): + """ + cursor test + + :avocado: tags=x86_64 + """ + + timeout = 60 + + def run_cursor_test(self, vga): + + self.boot_gfx_vm(vga); + self.console_prepare(); + + self.console_run('drmtest -a -s 10 --cursor') + self.console_wait('---ok---', '---root---', 'cursor') + self.screen_dump(vga, "cursor") + self.console_wait('---root---') + + @avocado.skipUnless(os.path.exists('/usr/bin/dracut'), "no dracut") + def setUp(self): + TestDRM.setUp(self); + if not os.path.isfile(self.initrd): + self.prepare_kernel_initrd() + + def test_qxl_vga(self): + """ + :avocado: tags=qxl + """ + vga = 'qxl-vga' + self.run_cursor_test(vga) + + def test_virtio_vga(self): + """ + :avocado: tags=virtio + """ + vga = 'virtio-vga' + self.run_cursor_test(vga) |