mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-25 10:03:49 +03:00
nodeinfo: test more details
Make it obvious why we need Osier's patch in commit 10d9038b to fix NUMA parsing of an AMD machine with two cores sharing a socket id. * tests/nodeinfotest.c (linuxTestCompareFiles): Enhance the test. * tests/nodeinfodata/linux-nodeinfo-sysfs-test-*-output.txt: Update.
This commit is contained in:
parent
e7df360d56
commit
5a8262a0ae
@ -1 +1 @@
|
|||||||
CPUs: 2, MHz: 8, Nodes: 1, Cores: 2
|
CPUs: 2/2, MHz: 8, Nodes: 1, Sockets: 1, Cores: 2, Threads: 1
|
||||||
|
@ -1 +1 @@
|
|||||||
CPUs: 2, MHz: 2800, Nodes: 1, Cores: 2
|
CPUs: 2/2, MHz: 2800, Nodes: 1, Sockets: 1, Cores: 2, Threads: 1
|
||||||
|
@ -1 +1 @@
|
|||||||
CPUs: 2, MHz: 800, Nodes: 1, Cores: 2
|
CPUs: 2/2, MHz: 800, Nodes: 1, Sockets: 1, Cores: 2, Threads: 1
|
||||||
|
@ -1 +1 @@
|
|||||||
CPUs: 48, MHz: 2100, Nodes: 1, Cores: 12
|
CPUs: 48/48, MHz: 2100, Nodes: 1, Sockets: 4, Cores: 12, Threads: 1
|
||||||
|
@ -60,9 +60,12 @@ linuxTestCompareFiles(const char *cpuinfofile,
|
|||||||
}
|
}
|
||||||
VIR_FORCE_FCLOSE(cpuinfo);
|
VIR_FORCE_FCLOSE(cpuinfo);
|
||||||
|
|
||||||
if (virAsprintf(&actualData, "CPUs: %u, MHz: %u, Nodes: %u, Cores: %u\n",
|
if (virAsprintf(&actualData,
|
||||||
nodeinfo.cpus, nodeinfo.mhz, nodeinfo.nodes,
|
"CPUs: %u/%u, MHz: %u, Nodes: %u, Sockets: %u, "
|
||||||
nodeinfo.cores) < 0)
|
"Cores: %u, Threads: %u\n",
|
||||||
|
nodeinfo.cpus, VIR_NODEINFO_MAXCPUS(nodeinfo),
|
||||||
|
nodeinfo.mhz, nodeinfo.nodes, nodeinfo.sockets,
|
||||||
|
nodeinfo.cores, nodeinfo.threads) < 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
if (STRNEQ(actualData, expectData)) {
|
if (STRNEQ(actualData, expectData)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user