提交 7dc52241 编写于 作者: A Andrea Bolognani

tests: Add some compatibility-related cases to the CPU tests

上级 5750149f
...@@ -607,6 +607,10 @@ mymain(void) ...@@ -607,6 +607,10 @@ mymain(void)
DO_TEST_COMPARE("ppc64", "host", "guest-legacy", VIR_CPU_COMPARE_IDENTICAL); DO_TEST_COMPARE("ppc64", "host", "guest-legacy", VIR_CPU_COMPARE_IDENTICAL);
DO_TEST_COMPARE("ppc64", "host", "guest-legacy-incompatible", VIR_CPU_COMPARE_INCOMPATIBLE); DO_TEST_COMPARE("ppc64", "host", "guest-legacy-incompatible", VIR_CPU_COMPARE_INCOMPATIBLE);
DO_TEST_COMPARE("ppc64", "host", "guest-legacy-invalid", VIR_CPU_COMPARE_ERROR); DO_TEST_COMPARE("ppc64", "host", "guest-legacy-invalid", VIR_CPU_COMPARE_ERROR);
DO_TEST_COMPARE("ppc64", "host", "guest-compat-none", VIR_CPU_COMPARE_IDENTICAL);
DO_TEST_COMPARE("ppc64", "host", "guest-compat-valid", VIR_CPU_COMPARE_IDENTICAL);
DO_TEST_COMPARE("ppc64", "host", "guest-compat-invalid", VIR_CPU_COMPARE_ERROR);
DO_TEST_COMPARE("ppc64", "host", "guest-compat-incompatible", VIR_CPU_COMPARE_INCOMPATIBLE);
/* guest updates for migration /* guest updates for migration
* automatically compares host CPU with the result */ * automatically compares host CPU with the result */
...@@ -618,6 +622,16 @@ mymain(void) ...@@ -618,6 +622,16 @@ mymain(void)
DO_TEST_UPDATE("x86", "host", "host-passthrough", VIR_CPU_COMPARE_IDENTICAL); DO_TEST_UPDATE("x86", "host", "host-passthrough", VIR_CPU_COMPARE_IDENTICAL);
DO_TEST_UPDATE("x86", "host-invtsc", "host-model", VIR_CPU_COMPARE_SUPERSET); DO_TEST_UPDATE("x86", "host-invtsc", "host-model", VIR_CPU_COMPARE_SUPERSET);
DO_TEST_UPDATE("ppc64", "host", "guest", VIR_CPU_COMPARE_IDENTICAL);
DO_TEST_UPDATE("ppc64", "host", "guest-nofallback", VIR_CPU_COMPARE_INCOMPATIBLE);
DO_TEST_UPDATE("ppc64", "host", "guest-legacy", VIR_CPU_COMPARE_IDENTICAL);
DO_TEST_UPDATE("ppc64", "host", "guest-legacy-incompatible", VIR_CPU_COMPARE_INCOMPATIBLE);
DO_TEST_UPDATE("ppc64", "host", "guest-legacy-invalid", VIR_CPU_COMPARE_ERROR);
DO_TEST_UPDATE("ppc64", "host", "guest-compat-none", VIR_CPU_COMPARE_IDENTICAL);
DO_TEST_UPDATE("ppc64", "host", "guest-compat-valid", VIR_CPU_COMPARE_IDENTICAL);
DO_TEST_UPDATE("ppc64", "host", "guest-compat-invalid", VIR_CPU_COMPARE_ERROR);
DO_TEST_UPDATE("ppc64", "host", "guest-compat-incompatible", VIR_CPU_COMPARE_INCOMPATIBLE);
/* computing baseline CPUs */ /* computing baseline CPUs */
DO_TEST_BASELINE("x86", "incompatible-vendors", 0, -1); DO_TEST_BASELINE("x86", "incompatible-vendors", 0, -1);
DO_TEST_BASELINE("x86", "no-vendor", 0, 0); DO_TEST_BASELINE("x86", "no-vendor", 0, 0);
......
<cpu mode='host-model'>
<model>power8</model>
</cpu>
<cpu mode='host-model'>
<model>power7+</model>
</cpu>
<cpu mode='host-model'>
<model>power6</model>
</cpu>
<cpu mode='host-model'>
<model fallback='allow'/>
</cpu>
<cpu mode='host-model' match='exact'>
<model fallback='allow'>power8</model>
</cpu>
<cpu mode='host-model' match='exact'>
<model fallback='allow'>power7+</model>
</cpu>
<cpu mode='host-model'>
<model fallback='allow'/>
</cpu>
<cpu mode='host-model' match='exact'>
<model fallback='allow'>power6</model>
</cpu>
<cpu mode='host-model'>
<model fallback='allow'/>
</cpu>
<cpu mode='custom' match='exact'>
<model fallback='allow'>POWER8_v1.0</model>
</cpu>
<cpu mode='custom' match='exact'>
<model fallback='allow'>POWER8E_v1.0</model>
</cpu>
<cpu mode='custom' match='exact'>
<model fallback='allow'>POWER7_v2.3</model>
</cpu>
<cpu mode='custom' match='exact'>
<model fallback='forbid'>POWER8</model>
</cpu>
<cpu mode='custom' match='exact'>
<model fallback='allow'>POWER7</model>
</cpu>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册