49d448
From 6cf9cd8f6d9e90eadd58d8a37129e7401876e4e8 Mon Sep 17 00:00:00 2001
49d448
Message-Id: <6cf9cd8f6d9e90eadd58d8a37129e7401876e4e8@dist-git>
49d448
From: Jiri Denemark <jdenemar@redhat.com>
49d448
Date: Wed, 4 May 2022 16:28:03 +0200
49d448
Subject: [PATCH] cputest: Give better names to baseline tests
49d448
49d448
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
49d448
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
49d448
(cherry picked from commit 3daa68e26514dc114d71f4c44f7d728e93a53cd0)
49d448
49d448
https://bugzilla.redhat.com/show_bug.cgi?id=1851227
49d448
49d448
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
49d448
---
49d448
 tests/cputest.c                                      | 12 ++++++------
49d448
 ... x86_64-baseline-Westmere+Nehalem-migratable.xml} |  0
49d448
 ...l => x86_64-baseline-Westmere+Nehalem-result.xml} |  0
49d448
 ...ne-6.xml => x86_64-baseline-Westmere+Nehalem.xml} |  0
49d448
 ...ded.xml => x86_64-baseline-features-expanded.xml} |  0
49d448
 ...esult.xml => x86_64-baseline-features-result.xml} |  0
49d448
 ...4-baseline-4.xml => x86_64-baseline-features.xml} |  0
49d448
 ...anded.xml => x86_64-baseline-simple-expanded.xml} |  0
49d448
 ...-result.xml => x86_64-baseline-simple-result.xml} |  0
49d448
 ..._64-baseline-3.xml => x86_64-baseline-simple.xml} |  0
49d448
 10 files changed, 6 insertions(+), 6 deletions(-)
49d448
 rename tests/cputestdata/{x86_64-baseline-6-migratable.xml => x86_64-baseline-Westmere+Nehalem-migratable.xml} (100%)
49d448
 rename tests/cputestdata/{x86_64-baseline-6-result.xml => x86_64-baseline-Westmere+Nehalem-result.xml} (100%)
49d448
 rename tests/cputestdata/{x86_64-baseline-6.xml => x86_64-baseline-Westmere+Nehalem.xml} (100%)
49d448
 rename tests/cputestdata/{x86_64-baseline-4-expanded.xml => x86_64-baseline-features-expanded.xml} (100%)
49d448
 rename tests/cputestdata/{x86_64-baseline-4-result.xml => x86_64-baseline-features-result.xml} (100%)
49d448
 rename tests/cputestdata/{x86_64-baseline-4.xml => x86_64-baseline-features.xml} (100%)
49d448
 rename tests/cputestdata/{x86_64-baseline-3-expanded.xml => x86_64-baseline-simple-expanded.xml} (100%)
49d448
 rename tests/cputestdata/{x86_64-baseline-3-result.xml => x86_64-baseline-simple-result.xml} (100%)
49d448
 rename tests/cputestdata/{x86_64-baseline-3.xml => x86_64-baseline-simple.xml} (100%)
49d448
49d448
diff --git a/tests/cputest.c b/tests/cputest.c
49d448
index 20d56836be..b939e20718 100644
49d448
--- a/tests/cputest.c
49d448
+++ b/tests/cputest.c
49d448
@@ -1051,12 +1051,12 @@ mymain(void)
49d448
     DO_TEST_BASELINE(VIR_ARCH_X86_64, "incompatible-vendors", 0, -1);
49d448
     DO_TEST_BASELINE(VIR_ARCH_X86_64, "no-vendor", 0, 0);
49d448
     DO_TEST_BASELINE(VIR_ARCH_X86_64, "some-vendors", 0, 0);
49d448
-    DO_TEST_BASELINE(VIR_ARCH_X86_64, "3", 0, 0);
49d448
-    DO_TEST_BASELINE(VIR_ARCH_X86_64, "3", VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES, 0);
49d448
-    DO_TEST_BASELINE(VIR_ARCH_X86_64, "4", 0, 0);
49d448
-    DO_TEST_BASELINE(VIR_ARCH_X86_64, "4", VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES, 0);
49d448
-    DO_TEST_BASELINE(VIR_ARCH_X86_64, "6", 0, 0);
49d448
-    DO_TEST_BASELINE(VIR_ARCH_X86_64, "6", VIR_CONNECT_BASELINE_CPU_MIGRATABLE, 0);
49d448
+    DO_TEST_BASELINE(VIR_ARCH_X86_64, "simple", 0, 0);
49d448
+    DO_TEST_BASELINE(VIR_ARCH_X86_64, "simple", VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES, 0);
49d448
+    DO_TEST_BASELINE(VIR_ARCH_X86_64, "features", 0, 0);
49d448
+    DO_TEST_BASELINE(VIR_ARCH_X86_64, "features", VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES, 0);
49d448
+    DO_TEST_BASELINE(VIR_ARCH_X86_64, "Westmere+Nehalem", 0, 0);
49d448
+    DO_TEST_BASELINE(VIR_ARCH_X86_64, "Westmere+Nehalem", VIR_CONNECT_BASELINE_CPU_MIGRATABLE, 0);
49d448
 
49d448
     DO_TEST_BASELINE(VIR_ARCH_PPC64, "incompatible-vendors", 0, -1);
49d448
     DO_TEST_BASELINE(VIR_ARCH_PPC64, "no-vendor", 0, 0);
49d448
diff --git a/tests/cputestdata/x86_64-baseline-6-migratable.xml b/tests/cputestdata/x86_64-baseline-Westmere+Nehalem-migratable.xml
49d448
similarity index 100%
49d448
rename from tests/cputestdata/x86_64-baseline-6-migratable.xml
49d448
rename to tests/cputestdata/x86_64-baseline-Westmere+Nehalem-migratable.xml
49d448
diff --git a/tests/cputestdata/x86_64-baseline-6-result.xml b/tests/cputestdata/x86_64-baseline-Westmere+Nehalem-result.xml
49d448
similarity index 100%
49d448
rename from tests/cputestdata/x86_64-baseline-6-result.xml
49d448
rename to tests/cputestdata/x86_64-baseline-Westmere+Nehalem-result.xml
49d448
diff --git a/tests/cputestdata/x86_64-baseline-6.xml b/tests/cputestdata/x86_64-baseline-Westmere+Nehalem.xml
49d448
similarity index 100%
49d448
rename from tests/cputestdata/x86_64-baseline-6.xml
49d448
rename to tests/cputestdata/x86_64-baseline-Westmere+Nehalem.xml
49d448
diff --git a/tests/cputestdata/x86_64-baseline-4-expanded.xml b/tests/cputestdata/x86_64-baseline-features-expanded.xml
49d448
similarity index 100%
49d448
rename from tests/cputestdata/x86_64-baseline-4-expanded.xml
49d448
rename to tests/cputestdata/x86_64-baseline-features-expanded.xml
49d448
diff --git a/tests/cputestdata/x86_64-baseline-4-result.xml b/tests/cputestdata/x86_64-baseline-features-result.xml
49d448
similarity index 100%
49d448
rename from tests/cputestdata/x86_64-baseline-4-result.xml
49d448
rename to tests/cputestdata/x86_64-baseline-features-result.xml
49d448
diff --git a/tests/cputestdata/x86_64-baseline-4.xml b/tests/cputestdata/x86_64-baseline-features.xml
49d448
similarity index 100%
49d448
rename from tests/cputestdata/x86_64-baseline-4.xml
49d448
rename to tests/cputestdata/x86_64-baseline-features.xml
49d448
diff --git a/tests/cputestdata/x86_64-baseline-3-expanded.xml b/tests/cputestdata/x86_64-baseline-simple-expanded.xml
49d448
similarity index 100%
49d448
rename from tests/cputestdata/x86_64-baseline-3-expanded.xml
49d448
rename to tests/cputestdata/x86_64-baseline-simple-expanded.xml
49d448
diff --git a/tests/cputestdata/x86_64-baseline-3-result.xml b/tests/cputestdata/x86_64-baseline-simple-result.xml
49d448
similarity index 100%
49d448
rename from tests/cputestdata/x86_64-baseline-3-result.xml
49d448
rename to tests/cputestdata/x86_64-baseline-simple-result.xml
49d448
diff --git a/tests/cputestdata/x86_64-baseline-3.xml b/tests/cputestdata/x86_64-baseline-simple.xml
49d448
similarity index 100%
49d448
rename from tests/cputestdata/x86_64-baseline-3.xml
49d448
rename to tests/cputestdata/x86_64-baseline-simple.xml
49d448
-- 
49d448
2.35.1
49d448