From 8442645126eb0206be1c7c57741961192c44d919 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Thu, 23 Feb 2023 09:07:50 +0100 Subject: [PATCH] qemuxml2(argv|xmltest): Simplify testing of scheduler settings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove the cputune-iothreads, cputune-iothreadsched-zeropriority, cputune-iothreadsched test files by moving the relevant elements into the cputune case as we can setup scheduler settings for multiple objects and thus test everything in one go. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- tests/qemuxml2argvdata/cputune-iothreads.xml | 39 -------------- .../cputune-iothreadsched-zeropriority.xml | 40 --------------- .../cputune-iothreadsched.xml | 39 -------------- .../cputune.x86_64-latest.args | 6 ++- tests/qemuxml2argvdata/cputune.xml | 8 ++- .../qemuxml2xmloutdata/cputune-iothreads.xml | 48 ----------------- .../cputune-iothreadsched-zeropriority.xml | 51 ------------------- .../cputune-iothreadsched.xml | 51 ------------------- .../cputune.x86_64-latest.xml | 10 +++- tests/qemuxml2xmltest.c | 3 -- 10 files changed, 21 insertions(+), 274 deletions(-) delete mode 100644 tests/qemuxml2argvdata/cputune-iothreads.xml delete mode 100644 tests/qemuxml2argvdata/cputune-iothreadsched-zeropriority.xml delete mode 100644 tests/qemuxml2argvdata/cputune-iothreadsched.xml delete mode 100644 tests/qemuxml2xmloutdata/cputune-iothreads.xml delete mode 100644 tests/qemuxml2xmloutdata/cputune-iothreadsched-zeropriority.xml delete mode 100644 tests/qemuxml2xmloutdata/cputune-iothreadsched.xml diff --git a/tests/qemuxml2argvdata/cputune-iothreads.xml b/tests/qemuxml2argvdata/cputune-iothreads.xml deleted file mode 100644 index d55d85c07d..0000000000 --- a/tests/qemuxml2argvdata/cputune-iothreads.xml +++ /dev/null @@ -1,39 +0,0 @@ - - QEMUGuest1 - c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219136 - 219136 - 2 - 2 - - - - - - - - -1 - 1000000 - 2048 - - - hvm - - - - destroy - restart - destroy - - /usr/bin/qemu-system-i386 - - - -
- - - - - - - diff --git a/tests/qemuxml2argvdata/cputune-iothreadsched-zeropriority.xml b/tests/qemuxml2argvdata/cputune-iothreadsched-zeropriority.xml deleted file mode 100644 index 1144e0f132..0000000000 --- a/tests/qemuxml2argvdata/cputune-iothreadsched-zeropriority.xml +++ /dev/null @@ -1,40 +0,0 @@ - - QEMUGuest1 - c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219136 - 219136 - 2 - 4 - - 2048 - 1000000 - -1 - - - - - - - - hvm - - - - destroy - restart - destroy - - /usr/bin/qemu-system-i386 - - - -
- - - - - - - - - diff --git a/tests/qemuxml2argvdata/cputune-iothreadsched.xml b/tests/qemuxml2argvdata/cputune-iothreadsched.xml deleted file mode 100644 index 73bcec602e..0000000000 --- a/tests/qemuxml2argvdata/cputune-iothreadsched.xml +++ /dev/null @@ -1,39 +0,0 @@ - - QEMUGuest1 - c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219136 - 219136 - 2 - 4 - - 2048 - 1000000 - -1 - - - - - - - - - hvm - - - - destroy - restart - destroy - - /usr/bin/qemu-system-i386 - - - -
- - - - - - - diff --git a/tests/qemuxml2argvdata/cputune.x86_64-latest.args b/tests/qemuxml2argvdata/cputune.x86_64-latest.args index d77c1db2c2..e52211ee6d 100644 --- a/tests/qemuxml2argvdata/cputune.x86_64-latest.args +++ b/tests/qemuxml2argvdata/cputune.x86_64-latest.args @@ -16,7 +16,11 @@ XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest1/.config \ -m 214 \ -object '{"qom-type":"memory-backend-ram","id":"pc.ram","size":224395264}' \ -overcommit mem-lock=off \ --smp 2,sockets=2,cores=1,threads=1 \ +-smp 4,sockets=4,cores=1,threads=1 \ +-object '{"qom-type":"iothread","id":"iothread1"}' \ +-object '{"qom-type":"iothread","id":"iothread2"}' \ +-object '{"qom-type":"iothread","id":"iothread3"}' \ +-object '{"qom-type":"iothread","id":"iothread4"}' \ -uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \ -display none \ -no-user-config \ diff --git a/tests/qemuxml2argvdata/cputune.xml b/tests/qemuxml2argvdata/cputune.xml index 3c8116f637..722636780c 100644 --- a/tests/qemuxml2argvdata/cputune.xml +++ b/tests/qemuxml2argvdata/cputune.xml @@ -3,7 +3,8 @@ c7a5fdbd-edaf-9455-926a-d65c16db1809 219136 219136 - 2 + 4 + 4 2048 1000000 @@ -15,6 +16,11 @@ + + + + + hvm diff --git a/tests/qemuxml2xmloutdata/cputune-iothreads.xml b/tests/qemuxml2xmloutdata/cputune-iothreads.xml deleted file mode 100644 index 36c4b0920f..0000000000 --- a/tests/qemuxml2xmloutdata/cputune-iothreads.xml +++ /dev/null @@ -1,48 +0,0 @@ - - QEMUGuest1 - c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219136 - 219136 - 2 - 2 - - 2048 - 1000000 - -1 - - - - - - - - hvm - - - - destroy - restart - destroy - - /usr/bin/qemu-system-i386 - - - - -
- - -
- - -
- - - - -