From 15b5e4636421276a22b042a97afefe57ff020c6f Mon Sep 17 00:00:00 2001 From: Martin Kletzander Date: Tue, 7 Mar 2017 10:24:54 +0100 Subject: [PATCH] tests: Add cpu/{online,present} files for old tests 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 --- 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 0000000000..8b0fab869c --- /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 0000000000..8b0fab869c --- /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 0000000000..8b0fab869c --- /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 0000000000..8b0fab869c --- /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 0000000000..ece4196a6a --- /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 0000000000..ece4196a6a --- /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 0000000000..580a385a1d --- /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 0000000000..580a385a1d --- /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 0000000000..40c7bb2f1a --- /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 0000000000..40c7bb2f1a --- /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 0000000000..1d3e4fb38a --- /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 0000000000..74fc2fb6b0 --- /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 0000000000..bb381c7835 --- /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 0000000000..bb381c7835 --- /dev/null +++ b/tests/virhostcpudata/linux-test7/cpu/present @@ -0,0 +1 @@ +0-23