c1c534
From 22398ee5b022b7831477d79959d4990a849b7e55 Mon Sep 17 00:00:00 2001
c1c534
Message-Id: <22398ee5b022b7831477d79959d4990a849b7e55@dist-git>
c1c534
From: Andrea Bolognani <abologna@redhat.com>
c1c534
Date: Wed, 15 Nov 2017 10:28:52 +0100
c1c534
Subject: [PATCH] tests: Rename ppc64le caps to ppc64
c1c534
c1c534
The architecture itself is called ppc64, and it can run both in big
c1c534
endian and little endian mode - the latter is known as ppc64le.
c1c534
c1c534
>From the (virtual) hardware point of view, ppc64 is a more accurate
c1c534
name so it should be used here.
c1c534
c1c534
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
c1c534
Reviewed-by: John Ferlan <jferlan@redhat.com>
c1c534
(cherry picked from commit 61ea70341a668738a4fb524a65fa1a80705b2bab)
c1c534
c1c534
Conflicts:
c1c534
  * tests/qemucapabilitiestest.c:
c1c534
    caused by missing capabilities for QEMU 2.10.0 on aarch64
c1c534
c1c534
https://bugzilla.redhat.com/show_bug.cgi?id=1308743
c1c534
c1c534
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
c1c534
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
c1c534
---
c1c534
 .../{qemu_2.6.0.ppc64le.xml => qemu_2.6.0.ppc64.xml}                  | 2 +-
c1c534
 tests/domaincapstest.c                                                | 2 +-
c1c534
 .../{caps_2.6.0.ppc64le.replies => caps_2.6.0.ppc64.replies}          | 0
c1c534
 .../{caps_2.6.0.ppc64le.xml => caps_2.6.0.ppc64.xml}                  | 0
c1c534
 .../{caps_2.9.0.ppc64le.replies => caps_2.9.0.ppc64.replies}          | 0
c1c534
 .../{caps_2.9.0.ppc64le.xml => caps_2.9.0.ppc64.xml}                  | 0
c1c534
 tests/qemucapabilitiestest.c                                          | 4 ++--
c1c534
 7 files changed, 4 insertions(+), 4 deletions(-)
c1c534
 rename tests/domaincapsschemadata/{qemu_2.6.0.ppc64le.xml => qemu_2.6.0.ppc64.xml} (98%)
c1c534
 rename tests/qemucapabilitiesdata/{caps_2.6.0.ppc64le.replies => caps_2.6.0.ppc64.replies} (100%)
c1c534
 rename tests/qemucapabilitiesdata/{caps_2.6.0.ppc64le.xml => caps_2.6.0.ppc64.xml} (100%)
c1c534
 rename tests/qemucapabilitiesdata/{caps_2.9.0.ppc64le.replies => caps_2.9.0.ppc64.replies} (100%)
c1c534
 rename tests/qemucapabilitiesdata/{caps_2.9.0.ppc64le.xml => caps_2.9.0.ppc64.xml} (100%)
c1c534
c1c534
diff --git a/tests/domaincapsschemadata/qemu_2.6.0.ppc64le.xml b/tests/domaincapsschemadata/qemu_2.6.0.ppc64.xml
c1c534
similarity index 98%
c1c534
rename from tests/domaincapsschemadata/qemu_2.6.0.ppc64le.xml
c1c534
rename to tests/domaincapsschemadata/qemu_2.6.0.ppc64.xml
c1c534
index 5b986e52f7..98c72d36de 100644
c1c534
--- a/tests/domaincapsschemadata/qemu_2.6.0.ppc64le.xml
c1c534
+++ b/tests/domaincapsschemadata/qemu_2.6.0.ppc64.xml
c1c534
@@ -2,7 +2,7 @@
c1c534
   <path>/usr/bin/qemu-system-ppc64</path>
c1c534
   <domain>kvm</domain>
c1c534
   <machine>pseries-2.6</machine>
c1c534
-  <arch>ppc64le</arch>
c1c534
+  <arch>ppc64</arch>
c1c534
   <vcpu max='255'/>
c1c534
   <os supported='yes'>
c1c534
     <loader supported='yes'>
c1c534
diff --git a/tests/domaincapstest.c b/tests/domaincapstest.c
c1c534
index 7aeac4507f..f3f623bb3d 100644
c1c534
--- a/tests/domaincapstest.c
c1c534
+++ b/tests/domaincapstest.c
c1c534
@@ -460,7 +460,7 @@ mymain(void)
c1c534
 
c1c534
     DO_TEST_QEMU("2.6.0", "caps_2.6.0",
c1c534
                  "/usr/bin/qemu-system-ppc64", NULL,
c1c534
-                 "ppc64le", VIR_DOMAIN_VIRT_KVM);
c1c534
+                 "ppc64", VIR_DOMAIN_VIRT_KVM);
c1c534
 
c1c534
     DO_TEST_QEMU("2.8.0", "caps_2.8.0",
c1c534
                  "/usr/bin/qemu-system-x86_64", NULL,
c1c534
diff --git a/tests/qemucapabilitiesdata/caps_2.6.0.ppc64le.replies b/tests/qemucapabilitiesdata/caps_2.6.0.ppc64.replies
c1c534
similarity index 100%
c1c534
rename from tests/qemucapabilitiesdata/caps_2.6.0.ppc64le.replies
c1c534
rename to tests/qemucapabilitiesdata/caps_2.6.0.ppc64.replies
c1c534
diff --git a/tests/qemucapabilitiesdata/caps_2.6.0.ppc64le.xml b/tests/qemucapabilitiesdata/caps_2.6.0.ppc64.xml
c1c534
similarity index 100%
c1c534
rename from tests/qemucapabilitiesdata/caps_2.6.0.ppc64le.xml
c1c534
rename to tests/qemucapabilitiesdata/caps_2.6.0.ppc64.xml
c1c534
diff --git a/tests/qemucapabilitiesdata/caps_2.9.0.ppc64le.replies b/tests/qemucapabilitiesdata/caps_2.9.0.ppc64.replies
c1c534
similarity index 100%
c1c534
rename from tests/qemucapabilitiesdata/caps_2.9.0.ppc64le.replies
c1c534
rename to tests/qemucapabilitiesdata/caps_2.9.0.ppc64.replies
c1c534
diff --git a/tests/qemucapabilitiesdata/caps_2.9.0.ppc64le.xml b/tests/qemucapabilitiesdata/caps_2.9.0.ppc64.xml
c1c534
similarity index 100%
c1c534
rename from tests/qemucapabilitiesdata/caps_2.9.0.ppc64le.xml
c1c534
rename to tests/qemucapabilitiesdata/caps_2.9.0.ppc64.xml
c1c534
diff --git a/tests/qemucapabilitiestest.c b/tests/qemucapabilitiestest.c
c1c534
index df3a9de516..9bb1ffca6a 100644
c1c534
--- a/tests/qemucapabilitiestest.c
c1c534
+++ b/tests/qemucapabilitiestest.c
c1c534
@@ -173,8 +173,8 @@ mymain(void)
c1c534
     DO_TEST("x86_64", "caps_2.10.0");
c1c534
     DO_TEST("aarch64", "caps_2.6.0-gicv2");
c1c534
     DO_TEST("aarch64", "caps_2.6.0-gicv3");
c1c534
-    DO_TEST("ppc64le", "caps_2.6.0");
c1c534
-    DO_TEST("ppc64le", "caps_2.9.0");
c1c534
+    DO_TEST("ppc64", "caps_2.6.0");
c1c534
+    DO_TEST("ppc64", "caps_2.9.0");
c1c534
     DO_TEST("s390x", "caps_2.7.0");
c1c534
     DO_TEST("s390x", "caps_2.8.0");
c1c534
     DO_TEST("s390x", "caps_2.9.0");
c1c534
-- 
c1c534
2.15.0
c1c534