[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v5 32/44] tests/functional: Convert the vnc test
From: |
Thomas Huth |
Subject: |
[PATCH v5 32/44] tests/functional: Convert the vnc test |
Date: |
Fri, 30 Aug 2024 15:38:26 +0200 |
Nothing thrilling in here, it's just a straight forward conversion.
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
tests/functional/meson.build | 1 +
tests/{avocado/vnc.py => functional/test_vnc.py} | 12 +++++++-----
2 files changed, 8 insertions(+), 5 deletions(-)
rename tests/{avocado/vnc.py => functional/test_vnc.py} (97%)
mode change 100644 => 100755
diff --git a/tests/functional/meson.build b/tests/functional/meson.build
index 34a9b277f8..58f6bcf95d 100644
--- a/tests/functional/meson.build
+++ b/tests/functional/meson.build
@@ -107,6 +107,7 @@ tests_x86_64_system_quick = [
'pc_cpu_hotplug_props',
'virtio_version',
'x86_cpu_model_versions',
+ 'vnc',
]
tests_x86_64_system_thorough = [
diff --git a/tests/avocado/vnc.py b/tests/functional/test_vnc.py
old mode 100644
new mode 100755
similarity index 97%
rename from tests/avocado/vnc.py
rename to tests/functional/test_vnc.py
index 862c8996a8..b769d3b268
--- a/tests/avocado/vnc.py
+++ b/tests/functional/test_vnc.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+#
# Simple functional tests for VNC functionality
#
# Copyright (c) 2018 Red Hat, Inc.
@@ -11,7 +13,7 @@
import socket
from typing import List
-from avocado_qemu import QemuSystemTest
+from qemu_test import QemuSystemTest
VNC_ADDR = '127.0.0.1'
@@ -51,10 +53,7 @@ def find_free_ports(count: int) -> List[int]:
class Vnc(QemuSystemTest):
- """
- :avocado: tags=vnc,quick
- :avocado: tags=machine:none
- """
+
def test_no_vnc(self):
self.vm.add_args('-nodefaults', '-S')
self.vm.launch()
@@ -113,3 +112,6 @@ def test_change_listen(self):
self.assertFalse(check_connect(a))
self.assertTrue(check_connect(b))
self.assertTrue(check_connect(c))
+
+if __name__ == '__main__':
+ QemuSystemTest.main()
--
2.46.0
- [PATCH v5 20/44] tests/functional: Convert the s390x avocado tests into standalone tests, (continued)
- [PATCH v5 20/44] tests/functional: Convert the s390x avocado tests into standalone tests, Thomas Huth, 2024/08/30
- [PATCH v5 24/44] tests/functional: Convert the virtio_gpu avocado test into a standalone test, Thomas Huth, 2024/08/30
- [PATCH v5 23/44] tests/functional: Convert the riscv_opensbi avocado test into a standalone test, Thomas Huth, 2024/08/30
- [PATCH v5 25/44] tests/functional: Convert most ppc avocado tests into standalone tests, Thomas Huth, 2024/08/30
- [PATCH v5 26/44] tests/functional: Convert the ppc_amiga avocado test into a standalone test, Thomas Huth, 2024/08/30
- [PATCH v5 27/44] tests/functional: Convert the ppc_hv avocado test into a standalone test, Thomas Huth, 2024/08/30
- [PATCH v5 28/44] tests/functional: Convert the m68k nextcube test with tesseract, Thomas Huth, 2024/08/30
- [PATCH v5 29/44] tests/functional: Convert the acpi-bits test into a standalone test, Thomas Huth, 2024/08/30
- [PATCH v5 30/44] tests/functional: Convert the rx_gdbsim avocado test into a standalone test, Thomas Huth, 2024/08/30
- [PATCH v5 31/44] tests/functional: Convert the linux_initrd avocado test into a standalone test, Thomas Huth, 2024/08/30
- [PATCH v5 32/44] tests/functional: Convert the vnc test,
Thomas Huth <=
- [PATCH v5 33/44] tests/functional: Convert ARM Integrator/CP avocado tests, Thomas Huth, 2024/08/30
- [PATCH v5 35/44] tests/functional: Convert Aarch64 Virt machine avocado tests, Thomas Huth, 2024/08/30
- [PATCH v5 34/44] tests/functional: Convert Aarch64 SBSA-Ref avocado tests, Thomas Huth, 2024/08/30
- [PATCH v5 36/44] tests/functional: Convert mips64el Fuloong2e avocado test (1/2), Thomas Huth, 2024/08/30
- [PATCH v5 37/44] tests/functional: Add QemuUserTest class, Thomas Huth, 2024/08/30
- [PATCH v5 38/44] tests/functional: Convert ARM bFLT linux-user avocado test, Thomas Huth, 2024/08/30
- [PATCH v5 39/44] tests/avocado: Remove unused QemuUserTest class, Thomas Huth, 2024/08/30
- [PATCH v5 41/44] docs/devel: Split testing docs from the build docs and move to separate folder, Thomas Huth, 2024/08/30
- [PATCH v5 40/44] gitlab-ci: Add "check-functional" to the build tests, Thomas Huth, 2024/08/30
- [PATCH v5 43/44] docs/devel/testing: Rename avocado_qemu.Test class, Thomas Huth, 2024/08/30