[PATCH 05/33] tests: Rename and minimize no-memory

Andrea Bolognani posted 33 patches 8 months, 2 weeks ago
There is a newer version of this series
[PATCH 05/33] tests: Rename and minimize no-memory
Posted by Andrea Bolognani 8 months, 2 weeks ago
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
---
 tests/qemuxmlconfdata/minimal-no-memory.xml   | 25 -------------------
 ...latest.err => no-memory.x86_64-latest.err} |  0
 tests/qemuxmlconfdata/no-memory.xml           | 11 ++++++++
 tests/qemuxmlconftest.c                       |  2 +-
 4 files changed, 12 insertions(+), 26 deletions(-)
 delete mode 100644 tests/qemuxmlconfdata/minimal-no-memory.xml
 rename tests/qemuxmlconfdata/{minimal-no-memory.x86_64-latest.err => no-memory.x86_64-latest.err} (100%)
 create mode 100644 tests/qemuxmlconfdata/no-memory.xml

diff --git a/tests/qemuxmlconfdata/minimal-no-memory.xml b/tests/qemuxmlconfdata/minimal-no-memory.xml
deleted file mode 100644
index dfa2b6dd89..0000000000
--- a/tests/qemuxmlconfdata/minimal-no-memory.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<domain type='qemu'>
-  <name>QEMUGuest1</name>
-  <uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
-  <vcpu placement='static' cpuset='1-4,8-20,525'>1</vcpu>
-  <os>
-    <type arch='x86_64' machine='pc'>hvm</type>
-    <boot dev='hd'/>
-  </os>
-  <clock offset='utc'/>
-  <on_poweroff>destroy</on_poweroff>
-  <on_reboot>restart</on_reboot>
-  <on_crash>destroy</on_crash>
-  <devices>
-    <emulator>/usr/bin/qemu-system-x86_64</emulator>
-    <disk type='block' device='disk'>
-      <source dev='/dev/HostVG/QEMUGuest1'/>
-      <target dev='hda' bus='ide'/>
-      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
-    </disk>
-    <controller type='usb' index='0'/>
-    <controller type='ide' index='0'/>
-    <controller type='pci' index='0' model='pci-root'/>
-    <memballoon model='virtio'/>
-  </devices>
-</domain>
diff --git a/tests/qemuxmlconfdata/minimal-no-memory.x86_64-latest.err b/tests/qemuxmlconfdata/no-memory.x86_64-latest.err
similarity index 100%
rename from tests/qemuxmlconfdata/minimal-no-memory.x86_64-latest.err
rename to tests/qemuxmlconfdata/no-memory.x86_64-latest.err
diff --git a/tests/qemuxmlconfdata/no-memory.xml b/tests/qemuxmlconfdata/no-memory.xml
new file mode 100644
index 0000000000..cff4f00f9d
--- /dev/null
+++ b/tests/qemuxmlconfdata/no-memory.xml
@@ -0,0 +1,11 @@
+<domain type='qemu'>
+  <name>QEMUGuest1</name>
+  <uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
+  <vcpu>1</vcpu>
+  <os>
+    <type arch='x86_64' machine='pc'>hvm</type>
+  </os>
+  <devices>
+    <emulator>/usr/bin/qemu-system-x86_64</emulator>
+  </devices>
+</domain>
diff --git a/tests/qemuxmlconftest.c b/tests/qemuxmlconftest.c
index bd4e2c59fe..6ecfe64d97 100644
--- a/tests/qemuxmlconftest.c
+++ b/tests/qemuxmlconftest.c
@@ -1227,7 +1227,7 @@ mymain(void)
     g_unsetenv("PIPEWIRE_RUNTIME_DIR");
 
     DO_TEST_CAPS_LATEST("minimal");
-    DO_TEST_CAPS_LATEST_PARSE_ERROR("minimal-no-memory");
+    DO_TEST_CAPS_LATEST_PARSE_ERROR("no-memory");
     DO_TEST_CAPS_LATEST("title-and-description");
 
     DO_TEST_CAPS_LATEST("genid");
-- 
2.43.0
_______________________________________________
Devel mailing list -- devel@lists.libvirt.org
To unsubscribe send an email to devel-leave@lists.libvirt.org
Re: [PATCH 05/33] tests: Rename and minimize no-memory
Posted by Peter Krempa 8 months, 2 weeks ago
On Wed, Jan 24, 2024 at 20:37:25 +0100, Andrea Bolognani wrote:
> Signed-off-by: Andrea Bolognani <abologna@redhat.com>
> ---
>  tests/qemuxmlconfdata/minimal-no-memory.xml   | 25 -------------------
>  ...latest.err => no-memory.x86_64-latest.err} |  0
>  tests/qemuxmlconfdata/no-memory.xml           | 11 ++++++++
>  tests/qemuxmlconftest.c                       |  2 +-
>  4 files changed, 12 insertions(+), 26 deletions(-)
>  delete mode 100644 tests/qemuxmlconfdata/minimal-no-memory.xml
>  rename tests/qemuxmlconfdata/{minimal-no-memory.x86_64-latest.err => no-memory.x86_64-latest.err} (100%)
>  create mode 100644 tests/qemuxmlconfdata/no-memory.xml

Reviewed-by: Peter Krempa <pkrempa@redhat.com>
_______________________________________________
Devel mailing list -- devel@lists.libvirt.org
To unsubscribe send an email to devel-leave@lists.libvirt.org