]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: Re-enable ppc64 cpu tests
authorAndrea Bolognani <abologna@redhat.com>
Fri, 7 Aug 2015 15:39:20 +0000 (17:39 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 11 Aug 2015 13:25:28 +0000 (15:25 +0200)
Now that all the changes have been implemented we can run the
test cases once again, after updating them to reflect the new
behaviour.

12 files changed:
tests/cputest.c
tests/cputestdata/ppc64-baseline-incompatible-vendors.xml
tests/cputestdata/ppc64-baseline-no-vendor-result.xml
tests/cputestdata/ppc64-baseline-no-vendor.xml
tests/cputestdata/ppc64-exact.xml [deleted file]
tests/cputestdata/ppc64-guest-exact.xml [new file with mode: 0644]
tests/cputestdata/ppc64-guest-nofallback.xml
tests/cputestdata/ppc64-guest-strict.xml [new file with mode: 0644]
tests/cputestdata/ppc64-guest.xml
tests/cputestdata/ppc64-host+guest,ppc_models-result.xml
tests/cputestdata/ppc64-host.xml
tests/cputestdata/ppc64-strict.xml [deleted file]

index 4dbccfdef070d9fb817bd6ff006b7a1bb93588f0..09f690abcae7d027bde47ce2880482bff2dbdf6c 100644 (file)
@@ -501,9 +501,7 @@ static const char *model486[]   = { "486" };
 static const char *nomodel[]    = { "nomodel" };
 static const char *models[]     = { "qemu64", "core2duo", "Nehalem" };
 static const char *haswell[]    = { "SandyBridge", "Haswell" };
-/* XXX temporarily disabled
-static const char *ppc_models[] = { "POWER7", "POWER7_v2.1", "POWER7_v2.3", "POWER8_v1.0"};
-*/
+static const char *ppc_models[] = { "POWER6", "POWER7", "POWER8" };
 
 static int
 mymain(void)
@@ -597,10 +595,8 @@ mymain(void)
     DO_TEST_COMPARE("x86", "host-worse", "nehalem-force", VIR_CPU_COMPARE_IDENTICAL);
     DO_TEST_COMPARE("x86", "host-SandyBridge", "exact-force-Haswell", VIR_CPU_COMPARE_IDENTICAL);
 
-    /* XXX temporarily disabled
-    DO_TEST_COMPARE("ppc64", "host", "strict", VIR_CPU_COMPARE_IDENTICAL);
-    DO_TEST_COMPARE("ppc64", "host", "exact", VIR_CPU_COMPARE_INCOMPATIBLE);
-    */
+    DO_TEST_COMPARE("ppc64", "host", "guest-strict", VIR_CPU_COMPARE_IDENTICAL);
+    DO_TEST_COMPARE("ppc64", "host", "guest-exact", VIR_CPU_COMPARE_INCOMPATIBLE);
 
     /* guest updates for migration
      * automatically compares host CPU with the result */
@@ -629,10 +625,8 @@ mymain(void)
     DO_TEST_BASELINE("x86", "7", 0, 0);
     DO_TEST_BASELINE("x86", "8", 0, 0);
 
-    /* XXX temporarily disabled
     DO_TEST_BASELINE("ppc64", "incompatible-vendors", 0, -1);
     DO_TEST_BASELINE("ppc64", "no-vendor", 0, 0);
-    */
 
     /* CPU features */
     DO_TEST_HASFEATURE("x86", "host", "vmx", YES);
@@ -668,10 +662,8 @@ mymain(void)
     DO_TEST_GUESTDATA("x86", "host-Haswell-noTSX", "Haswell-noTSX",
                       NULL, "Haswell-noTSX", 0);
 
-    /* XXX temporarily disabled
     DO_TEST_GUESTDATA("ppc64", "host", "guest", ppc_models, NULL, 0);
-    DO_TEST_GUESTDATA("ppc64", "host", "guest-nofallback", ppc_models, "POWER7_v2.1", -1);
-    */
+    DO_TEST_GUESTDATA("ppc64", "host", "guest-nofallback", ppc_models, "POWER8", -1);
 
     return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
 }
index 97d3c9c084171698b70e3bfc82f3b269b2a0838f..9e67e9d84e3a10a87a9935fec0a5f51004210946 100644 (file)
@@ -1,13 +1,13 @@
 <cpuTest>
 <cpu>
   <arch>ppc64</arch>
-  <model>POWER7+_v2.1</model>
+  <model>POWER7</model>
   <vendor>Intel</vendor>
   <topology sockets='2' cores='4' threads='1'/>
 </cpu>
 <cpu>
   <arch>ppc64</arch>
-  <model>POWER8_v1.0</model>
+  <model>POWER8</model>
   <vendor>Intel</vendor>
   <topology sockets='1' cores='1' threads='1'/>
 </cpu>
index 36bae525084a15a133cfd39a89e40f94deae3c40..758099ccf8dcbd48efa3306c47e65fd60c511e24 100644 (file)
@@ -1,3 +1,3 @@
 <cpu mode='custom' match='exact'>
-  <model fallback='allow'>POWER7_v2.3</model>
+  <model fallback='forbid'>POWER7</model>
 </cpu>
index 5e69a6240448a0cb6295f33e51353aa156d6f88c..6d8dd0d4fd449f9552bc77a3b124002f53720730 100644 (file)
@@ -1,7 +1,7 @@
 <cpuTest>
 <cpu>
   <arch>ppc64</arch>
-  <model>POWER7_v2.3</model>
+  <model>POWER7</model>
   <topology sockets='2' cores='4' threads='1'/>
 </cpu>
 </cpuTest>
diff --git a/tests/cputestdata/ppc64-exact.xml b/tests/cputestdata/ppc64-exact.xml
deleted file mode 100644 (file)
index c84f16a..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-<cpu match='exact'>
-  <model>POWER8_v1.0</model>
-</cpu>
diff --git a/tests/cputestdata/ppc64-guest-exact.xml b/tests/cputestdata/ppc64-guest-exact.xml
new file mode 100644 (file)
index 0000000..f416a59
--- /dev/null
@@ -0,0 +1,3 @@
+<cpu match='exact'>
+  <model>POWER8</model>
+</cpu>
index 42026b47dd8b82ad87a4f3f6ff2158f6ca8e5fd1..070f006788a07e723cab61c44dc1569b55722e2e 100644 (file)
@@ -1,4 +1,3 @@
 <cpu match='exact'>
-  <model fallback='forbid'>POWER7_v2.1</model>
-  <topology sockets='2' cores='4' threads='1'/>
+  <model fallback='forbid'>POWER8</model>
 </cpu>
diff --git a/tests/cputestdata/ppc64-guest-strict.xml b/tests/cputestdata/ppc64-guest-strict.xml
new file mode 100644 (file)
index 0000000..217dfc7
--- /dev/null
@@ -0,0 +1,3 @@
+<cpu match='strict'>
+  <model>POWER7</model>
+</cpu>
index 9e91501002a4f1de1b537d9d3fc78ff110ef31d0..a60c59fd2d859ba48240ee218c084ba526f85d83 100644 (file)
@@ -1,4 +1,3 @@
 <cpu match='exact'>
-  <model>POWER7_v2.3</model>
-  <topology sockets='2' cores='4' threads='1'/>
+  <model fallback='allow'>POWER7</model>
 </cpu>
index 3e55f68f50a8176d4e8bd5cf9ff79f34828e04f2..3548c0ef6742bf9fca7d8054a76618858b46e740 100644 (file)
@@ -1,5 +1,5 @@
 <cpu mode='custom' match='exact'>
   <arch>ppc64</arch>
-  <model fallback='allow'>POWER7_v2.3</model>
+  <model fallback='allow'>POWER7</model>
   <vendor>IBM</vendor>
 </cpu>
index 39cb7414dce42719ca5017f6b4ae59bdcbca3e8c..0ac5c4e27d9a90f850c663c49374d1dacdf38245 100644 (file)
@@ -1,6 +1,6 @@
 <cpu>
   <arch>ppc64</arch>
-  <model>POWER7_v2.3</model>
+  <model>POWER7</model>
   <vendor>IBM</vendor>
   <topology sockets='1' cores='64' threads='1'/>
 </cpu>
diff --git a/tests/cputestdata/ppc64-strict.xml b/tests/cputestdata/ppc64-strict.xml
deleted file mode 100644 (file)
index e91c6e7..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-<cpu match='exact'>
-  <model>POWER7_v2.3</model>
-</cpu>