From 049df97504e4f14cc4b8e16db26ea202c47d336a Mon Sep 17 00:00:00 2001 From: Andrea Bolognani Date: Fri, 7 Aug 2015 17:39:20 +0200 Subject: [PATCH] tests: Re-enable ppc64 cpu tests Now that all the changes have been implemented we can run the test cases once again, after updating them to reflect the new behaviour. --- tests/cputest.c | 16 ++++------------ .../ppc64-baseline-incompatible-vendors.xml | 4 ++-- .../ppc64-baseline-no-vendor-result.xml | 2 +- tests/cputestdata/ppc64-baseline-no-vendor.xml | 2 +- tests/cputestdata/ppc64-exact.xml | 3 --- tests/cputestdata/ppc64-guest-exact.xml | 3 +++ tests/cputestdata/ppc64-guest-nofallback.xml | 3 +-- tests/cputestdata/ppc64-guest-strict.xml | 3 +++ tests/cputestdata/ppc64-guest.xml | 3 +-- .../ppc64-host+guest,ppc_models-result.xml | 2 +- tests/cputestdata/ppc64-host.xml | 2 +- tests/cputestdata/ppc64-strict.xml | 3 --- 12 files changed, 18 insertions(+), 28 deletions(-) delete mode 100644 tests/cputestdata/ppc64-exact.xml create mode 100644 tests/cputestdata/ppc64-guest-exact.xml create mode 100644 tests/cputestdata/ppc64-guest-strict.xml delete mode 100644 tests/cputestdata/ppc64-strict.xml diff --git a/tests/cputest.c b/tests/cputest.c index 4dbccfdef0..09f690abca 100644 --- a/tests/cputest.c +++ b/tests/cputest.c @@ -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; } diff --git a/tests/cputestdata/ppc64-baseline-incompatible-vendors.xml b/tests/cputestdata/ppc64-baseline-incompatible-vendors.xml index 97d3c9c084..9e67e9d84e 100644 --- a/tests/cputestdata/ppc64-baseline-incompatible-vendors.xml +++ b/tests/cputestdata/ppc64-baseline-incompatible-vendors.xml @@ -1,13 +1,13 @@ ppc64 - POWER7+_v2.1 + POWER7 Intel ppc64 - POWER8_v1.0 + POWER8 Intel diff --git a/tests/cputestdata/ppc64-baseline-no-vendor-result.xml b/tests/cputestdata/ppc64-baseline-no-vendor-result.xml index 36bae52508..758099ccf8 100644 --- a/tests/cputestdata/ppc64-baseline-no-vendor-result.xml +++ b/tests/cputestdata/ppc64-baseline-no-vendor-result.xml @@ -1,3 +1,3 @@ - POWER7_v2.3 + POWER7 diff --git a/tests/cputestdata/ppc64-baseline-no-vendor.xml b/tests/cputestdata/ppc64-baseline-no-vendor.xml index 5e69a62404..6d8dd0d4fd 100644 --- a/tests/cputestdata/ppc64-baseline-no-vendor.xml +++ b/tests/cputestdata/ppc64-baseline-no-vendor.xml @@ -1,7 +1,7 @@ ppc64 - POWER7_v2.3 + POWER7 diff --git a/tests/cputestdata/ppc64-exact.xml b/tests/cputestdata/ppc64-exact.xml deleted file mode 100644 index c84f16a5dc..0000000000 --- a/tests/cputestdata/ppc64-exact.xml +++ /dev/null @@ -1,3 +0,0 @@ - - POWER8_v1.0 - diff --git a/tests/cputestdata/ppc64-guest-exact.xml b/tests/cputestdata/ppc64-guest-exact.xml new file mode 100644 index 0000000000..f416a59b33 --- /dev/null +++ b/tests/cputestdata/ppc64-guest-exact.xml @@ -0,0 +1,3 @@ + + POWER8 + diff --git a/tests/cputestdata/ppc64-guest-nofallback.xml b/tests/cputestdata/ppc64-guest-nofallback.xml index 42026b47dd..070f006788 100644 --- a/tests/cputestdata/ppc64-guest-nofallback.xml +++ b/tests/cputestdata/ppc64-guest-nofallback.xml @@ -1,4 +1,3 @@ - POWER7_v2.1 - + POWER8 diff --git a/tests/cputestdata/ppc64-guest-strict.xml b/tests/cputestdata/ppc64-guest-strict.xml new file mode 100644 index 0000000000..217dfc7dd7 --- /dev/null +++ b/tests/cputestdata/ppc64-guest-strict.xml @@ -0,0 +1,3 @@ + + POWER7 + diff --git a/tests/cputestdata/ppc64-guest.xml b/tests/cputestdata/ppc64-guest.xml index 9e91501002..a60c59fd2d 100644 --- a/tests/cputestdata/ppc64-guest.xml +++ b/tests/cputestdata/ppc64-guest.xml @@ -1,4 +1,3 @@ - POWER7_v2.3 - + POWER7 diff --git a/tests/cputestdata/ppc64-host+guest,ppc_models-result.xml b/tests/cputestdata/ppc64-host+guest,ppc_models-result.xml index 3e55f68f50..3548c0ef67 100644 --- a/tests/cputestdata/ppc64-host+guest,ppc_models-result.xml +++ b/tests/cputestdata/ppc64-host+guest,ppc_models-result.xml @@ -1,5 +1,5 @@ ppc64 - POWER7_v2.3 + POWER7 IBM diff --git a/tests/cputestdata/ppc64-host.xml b/tests/cputestdata/ppc64-host.xml index 39cb7414dc..0ac5c4e27d 100644 --- a/tests/cputestdata/ppc64-host.xml +++ b/tests/cputestdata/ppc64-host.xml @@ -1,6 +1,6 @@ ppc64 - POWER7_v2.3 + POWER7 IBM diff --git a/tests/cputestdata/ppc64-strict.xml b/tests/cputestdata/ppc64-strict.xml deleted file mode 100644 index e91c6e7cb2..0000000000 --- a/tests/cputestdata/ppc64-strict.xml +++ /dev/null @@ -1,3 +0,0 @@ - - POWER7_v2.3 -