The functionality these tests partially relied on (scanning the cpu
directory for cpu[0-9]+ subdirectories) is going to be removed, so we
need additional files that are present on all non-medieval systems.
Removing all these tests would be an option but we would lose the
ability to test the topologies. Even though we just extract number of
sockets/cores/threads from all these directory trees.
Signed-off-by: Martin Kletzander <mkletzan(a)redhat.com>
---
tests/virhostcpudata/linux-test1/cpu/online | 1 +
tests/virhostcpudata/linux-test1/cpu/present | 1 +
tests/virhostcpudata/linux-test2/cpu/online | 1 +
tests/virhostcpudata/linux-test2/cpu/present | 1 +
tests/virhostcpudata/linux-test3/cpu/online | 1 +
tests/virhostcpudata/linux-test3/cpu/present | 1 +
tests/virhostcpudata/linux-test4/cpu/online | 1 +
tests/virhostcpudata/linux-test4/cpu/present | 1 +
tests/virhostcpudata/linux-test5/cpu/online | 1 +
tests/virhostcpudata/linux-test5/cpu/present | 1 +
tests/virhostcpudata/linux-test6/cpu/online | 1 +
tests/virhostcpudata/linux-test6/cpu/present | 1 +
tests/virhostcpudata/linux-test7/cpu/online | 1 +
tests/virhostcpudata/linux-test7/cpu/present | 1 +
14 files changed, 14 insertions(+)
create mode 100644 tests/virhostcpudata/linux-test1/cpu/online
create mode 100644 tests/virhostcpudata/linux-test1/cpu/present
create mode 100644 tests/virhostcpudata/linux-test2/cpu/online
create mode 100644 tests/virhostcpudata/linux-test2/cpu/present
create mode 100644 tests/virhostcpudata/linux-test3/cpu/online
create mode 100644 tests/virhostcpudata/linux-test3/cpu/present
create mode 100644 tests/virhostcpudata/linux-test4/cpu/online
create mode 100644 tests/virhostcpudata/linux-test4/cpu/present
create mode 100644 tests/virhostcpudata/linux-test5/cpu/online
create mode 100644 tests/virhostcpudata/linux-test5/cpu/present
create mode 100644 tests/virhostcpudata/linux-test6/cpu/online
create mode 100644 tests/virhostcpudata/linux-test6/cpu/present
create mode 100644 tests/virhostcpudata/linux-test7/cpu/online
create mode 100644 tests/virhostcpudata/linux-test7/cpu/present
diff --git a/tests/virhostcpudata/linux-test1/cpu/online
b/tests/virhostcpudata/linux-test1/cpu/online
new file mode 100644
index 000000000000..8b0fab869c1d
--- /dev/null
+++ b/tests/virhostcpudata/linux-test1/cpu/online
@@ -0,0 +1 @@
+0-1
diff --git a/tests/virhostcpudata/linux-test1/cpu/present
b/tests/virhostcpudata/linux-test1/cpu/present
new file mode 100644
index 000000000000..8b0fab869c1d
--- /dev/null
+++ b/tests/virhostcpudata/linux-test1/cpu/present
@@ -0,0 +1 @@
+0-1
diff --git a/tests/virhostcpudata/linux-test2/cpu/online
b/tests/virhostcpudata/linux-test2/cpu/online
new file mode 100644
index 000000000000..8b0fab869c1d
--- /dev/null
+++ b/tests/virhostcpudata/linux-test2/cpu/online
@@ -0,0 +1 @@
+0-1
diff --git a/tests/virhostcpudata/linux-test2/cpu/present
b/tests/virhostcpudata/linux-test2/cpu/present
new file mode 100644
index 000000000000..8b0fab869c1d
--- /dev/null
+++ b/tests/virhostcpudata/linux-test2/cpu/present
@@ -0,0 +1 @@
+0-1
diff --git a/tests/virhostcpudata/linux-test3/cpu/online
b/tests/virhostcpudata/linux-test3/cpu/online
new file mode 100644
index 000000000000..ece4196a6ae3
--- /dev/null
+++ b/tests/virhostcpudata/linux-test3/cpu/online
@@ -0,0 +1 @@
+0-47
diff --git a/tests/virhostcpudata/linux-test3/cpu/present
b/tests/virhostcpudata/linux-test3/cpu/present
new file mode 100644
index 000000000000..ece4196a6ae3
--- /dev/null
+++ b/tests/virhostcpudata/linux-test3/cpu/present
@@ -0,0 +1 @@
+0-47
diff --git a/tests/virhostcpudata/linux-test4/cpu/online
b/tests/virhostcpudata/linux-test4/cpu/online
new file mode 100644
index 000000000000..580a385a1d96
--- /dev/null
+++ b/tests/virhostcpudata/linux-test4/cpu/online
@@ -0,0 +1 @@
+0-15
diff --git a/tests/virhostcpudata/linux-test4/cpu/present
b/tests/virhostcpudata/linux-test4/cpu/present
new file mode 100644
index 000000000000..580a385a1d96
--- /dev/null
+++ b/tests/virhostcpudata/linux-test4/cpu/present
@@ -0,0 +1 @@
+0-15
diff --git a/tests/virhostcpudata/linux-test5/cpu/online
b/tests/virhostcpudata/linux-test5/cpu/online
new file mode 100644
index 000000000000..40c7bb2f1a2a
--- /dev/null
+++ b/tests/virhostcpudata/linux-test5/cpu/online
@@ -0,0 +1 @@
+0-3
diff --git a/tests/virhostcpudata/linux-test5/cpu/present
b/tests/virhostcpudata/linux-test5/cpu/present
new file mode 100644
index 000000000000..40c7bb2f1a2a
--- /dev/null
+++ b/tests/virhostcpudata/linux-test5/cpu/present
@@ -0,0 +1 @@
+0-3
diff --git a/tests/virhostcpudata/linux-test6/cpu/online
b/tests/virhostcpudata/linux-test6/cpu/online
new file mode 100644
index 000000000000..1d3e4fb38a0d
--- /dev/null
+++ b/tests/virhostcpudata/linux-test6/cpu/online
@@ -0,0 +1 @@
+0-4,6
diff --git a/tests/virhostcpudata/linux-test6/cpu/present
b/tests/virhostcpudata/linux-test6/cpu/present
new file mode 100644
index 000000000000..74fc2fb6b048
--- /dev/null
+++ b/tests/virhostcpudata/linux-test6/cpu/present
@@ -0,0 +1 @@
+0-7
diff --git a/tests/virhostcpudata/linux-test7/cpu/online
b/tests/virhostcpudata/linux-test7/cpu/online
new file mode 100644
index 000000000000..bb381c7835f1
--- /dev/null
+++ b/tests/virhostcpudata/linux-test7/cpu/online
@@ -0,0 +1 @@
+0-23
diff --git a/tests/virhostcpudata/linux-test7/cpu/present
b/tests/virhostcpudata/linux-test7/cpu/present
new file mode 100644
index 000000000000..bb381c7835f1
--- /dev/null
+++ b/tests/virhostcpudata/linux-test7/cpu/present
@@ -0,0 +1 @@
+0-23
--
2.12.0