]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tests: Rename 'qemuxml2argvtest' to 'qemuxmlconftest'
authorPeter Krempa <pkrempa@redhat.com>
Mon, 18 Dec 2023 15:21:40 +0000 (16:21 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 17 Jan 2024 16:31:12 +0000 (17:31 +0100)
Since this tests inactive/config XML files rename it accordingly.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
docs/advanced-tests.rst
src/util/virsecret.c
tests/meson.build
tests/qemucapabilitiesdata/README.rst
tests/qemuxmlconftest.c [moved from tests/qemuxml2argvtest.c with 100% similarity]

index 05aa844a231040dce136ca68cc54d492a1c03da6..6ae3422b8c0e032f1b5bd729e1ea3a120c15d3a8 100644 (file)
@@ -45,7 +45,7 @@ I.e. to run all tests from 3 to 20 with the exception of tests
 
 ::
 
-  $ VIR_TEST_DEBUG=1 VIR_TEST_RANGE=3-5,7-20,^16 ./run tests/qemuxml2argvtest
+  $ VIR_TEST_DEBUG=1 VIR_TEST_RANGE=3-5,7-20,^16 ./run tests/qemuxmlconftest
 
 Also, individual tests can be run from inside the ``tests/``
 directory, like:
@@ -62,7 +62,7 @@ CAREFULLY to ensure they are correct.
 
 ::
 
-  $ VIR_TEST_REGENERATE_OUTPUT=1 ./qemuxml2argvtest
+  $ VIR_TEST_REGENERATE_OUTPUT=1 ./qemuxmlconftest
 
 There is also a ``./run`` script at the top level, to make it
 easier to run programs that have not yet been installed, as
@@ -81,7 +81,7 @@ location where the file is stored.
 
 ::
 
-  $ VIR_TEST_FILE_ACCESS=1 VIR_TEST_FILE_ACCESS_OUTPUT="/tmp/file_access.txt" ./qemuxml2argvtest
+  $ VIR_TEST_FILE_ACCESS=1 VIR_TEST_FILE_ACCESS_OUTPUT="/tmp/file_access.txt" ./qemuxmlconftest
 
 #. The Valgrind test should produce similar output to
 ``ninja test``. If the output has traces within libvirt API's,
@@ -98,9 +98,9 @@ of leak:
   ==5414==    by 0x4CD581D: virDomainDefParseXML (domain_conf.c:10188)
   ==5414==    by 0x4CD8C73: virDomainDefParseNode (domain_conf.c:10640)
   ==5414==    by 0x4CD8DDB: virDomainDefParse (domain_conf.c:10590)
-  ==5414==    by 0x41CB1D: testCompareXMLToArgvHelper (qemuxml2argvtest.c:100)
+  ==5414==    by 0x41CB1D: testCompareXMLToArgvHelper (qemuxmlconftest.c:100)
   ==5414==    by 0x41E20F: virtTestRun (testutils.c:161)
-  ==5414==    by 0x41C7CB: mymain (qemuxml2argvtest.c:866)
+  ==5414==    by 0x41C7CB: mymain (qemuxmlconftest.c:866)
   ==5414==    by 0x41E84A: virtTestMain (testutils.c:723)
   ==5414==    by 0x34D9021734: (below main) (in /usr/lib64/libc-2.15.so)
 
index b558aa1d6160ada35624857113b0a8f01a3c92e1..8a220a37ec32548d0cfc5e3c0cf39124bb825dfe 100644 (file)
@@ -155,7 +155,7 @@ virSecretGetSecretString(virConnectPtr conn,
     if (!sec)
         return -1;
 
-    /* NB: NONE is a byproduct of the qemuxml2argvtest test mocking
+    /* NB: NONE is a byproduct of the qemuxmlconftest test mocking
      * for UUID lookups. Normal secret XML processing would fail if
      * the usage type was NONE and since we have no way to set the
      * expected usage in that environment, let's just accept NONE */
index 2f0b5e39b70dff8675d3f3f2a1aef32d4e046cf0..8969f29b08e536e6bb3a5e39ea016016465b39f4 100644 (file)
@@ -455,7 +455,7 @@ if conf.has('WITH_QEMU')
     { 'name': 'qemusecuritytest', 'sources': [ 'qemusecuritytest.c', 'qemusecuritymock.c' ], 'link_with': [ test_qemu_driver_lib ], 'link_whole': [ test_utils_qemu_lib ] },
     { 'name': 'qemuxmlactivetest', 'link_with': [ test_qemu_driver_lib ], 'link_whole': [ test_utils_qemu_lib, test_file_wrapper_lib ] },
     { 'name': 'qemuvhostusertest', 'link_with': [ test_qemu_driver_lib ], 'link_whole': [ test_file_wrapper_lib ] },
-    { 'name': 'qemuxml2argvtest', 'timeout': 90, 'link_with': [ test_qemu_driver_lib, test_utils_qemu_monitor_lib ], 'link_whole': [ test_utils_qemu_lib, test_file_wrapper_lib ] },
+    { 'name': 'qemuxmlconftest', 'timeout': 90, 'link_with': [ test_qemu_driver_lib, test_utils_qemu_monitor_lib ], 'link_whole': [ test_utils_qemu_lib, test_file_wrapper_lib ] },
   ]
   if conf.has('WITH_NBDKIT')
     tests += [
index 487053b12354d84712ae5c5c63125a8db6a2b231..eea07048e99ef6d93e42e3cebb62dc1a59c8c88c 100644 (file)
@@ -10,7 +10,7 @@ Test data in this directory is used:
  - to excercise the capability parsing code in ``qemucapabilitiestest``
 
  - provides "real" capabilities data for test suites such as ``domaincapstest``
-   ``qemuxml2argvtest``, and others
+   ``qemuxmlconftest``, and others
 
  - provides the required data to validate the QMP commands used by libvirt
    against qemu's QMP schema
@@ -65,7 +65,7 @@ Test suites such as ``qemucapabilitiestest`` or ``domaincapstest`` pick up the
 test data automatically once the corresponding ``.xml`` or ``.replies`` file
 is present in ``tests/qemucapabilitiesdata``.
 
-Other test suites such as ``qemuxml2argvtest`` provide macros which invoke test
+Other test suites such as ``qemuxmlconftest`` provide macros which invoke test
 cases using this data such as ``DO_TEST_CAPS_LATEST``.
 
 Capturing QEMU capabilities