]> xenbits.xensource.com Git - libvirt.git/commitdiff
testutilsqemu: Remove unused non-x86 fake machine types
authorPeter Krempa <pkrempa@redhat.com>
Tue, 4 Jan 2022 15:10:31 +0000 (16:10 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 7 Jan 2022 08:25:13 +0000 (09:25 +0100)
For tests with fake capabilities we fill in a bunch of machine types
which the tests might use. For now there's a random collection of
machine types which are not actually used. Purge the unused ones for
non-x86 machines.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/testutilsqemu.c
tests/vircapstest.c

index 7fdb82daecc8ecd5df6b8e253330dd9b7938431a..980555b27e7d189f5bfd43858510ffcecefbce34 100644 (file)
@@ -58,27 +58,25 @@ static const char *const aarch64_machines[] = {
     "virt", "virt-2.6", "versatilepb", NULL
 };
 static const char *const arm_machines[] = {
-    "vexpress-a9", "vexpress-a15", "versatilepb", "virt", NULL
+    "vexpress-a9", "virt", NULL
 };
 static const char *const ppc64_machines[] = {
     "pseries", NULL
 };
 static const char *const ppc_machines[] = {
-    "g3beige", "mac99", "prep", "ppce500", NULL
+    "ppce500", NULL
 };
 static const char *const riscv32_machines[] = {
-    "spike_v1.10", "spike_v1.9.1", "sifive_e", "virt", "sifive_u", NULL
+    "virt", NULL
 };
 static const char *const riscv64_machines[] = {
-    "spike_v1.10", "spike_v1.9.1", "sifive_e", "virt", "sifive_u", NULL
+    "virt", NULL
 };
 static const char *const s390x_machines[] = {
     "s390-ccw-virtio", NULL
 };
 static const char *const sparc_machines[] = {
-    "SS-5", "LX", "SPARCClassic", "SPARCbook",
-    "SS-10", "SS-20", "SS-4", "SS-600MP",
-    "Voyager", "leon3_generic", NULL
+    "SS-5", NULL
 };
 
 static const char *const *qemu_machines[VIR_ARCH_LAST] = {
index 697803fdc948ec82854fdb98389c316fca7f2d18..be93325307e98026d35a6b4144d062a8ebc5fbb7 100644 (file)
@@ -165,12 +165,6 @@ test_virCapsDomainDataLookupQEMU(const void *data G_GNUC_UNUSED)
     CAPSCOMP(-1, VIR_ARCH_NONE, VIR_DOMAIN_VIRT_NONE, "/usr/bin/qemu-system-ppc64", NULL,
         VIR_DOMAIN_OSTYPE_HVM, VIR_ARCH_PPC64,
         VIR_DOMAIN_VIRT_QEMU, "/usr/bin/qemu-system-ppc64", "pseries");
-    CAPSCOMP(-1, VIR_ARCH_RISCV32, VIR_DOMAIN_VIRT_NONE, NULL, NULL,
-        VIR_DOMAIN_OSTYPE_HVM, VIR_ARCH_RISCV32,
-        VIR_DOMAIN_VIRT_QEMU, "/usr/bin/qemu-system-riscv32", "spike_v1.10");
-    CAPSCOMP(-1, VIR_ARCH_RISCV64, VIR_DOMAIN_VIRT_NONE, NULL, NULL,
-        VIR_DOMAIN_OSTYPE_HVM, VIR_ARCH_RISCV64,
-        VIR_DOMAIN_VIRT_QEMU, "/usr/bin/qemu-system-riscv64", "spike_v1.10");
 
     CAPSCOMP(-1, VIR_ARCH_NONE, VIR_DOMAIN_VIRT_NONE, NULL, "pseries",
         VIR_DOMAIN_OSTYPE_HVM, VIR_ARCH_PPC64,