mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 05:17:59 +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);
|
||||
|
||||
if (virAsprintf(&actualData, "CPUs: %u, MHz: %u, Nodes: %u, Cores: %u\n",
|
||||
nodeinfo.cpus, nodeinfo.mhz, nodeinfo.nodes,
|
||||
nodeinfo.cores) < 0)
|
||||
if (virAsprintf(&actualData,
|
||||
"CPUs: %u/%u, MHz: %u, Nodes: %u, Sockets: %u, "
|
||||
"Cores: %u, Threads: %u\n",
|
||||
nodeinfo.cpus, VIR_NODEINFO_MAXCPUS(nodeinfo),
|
||||
nodeinfo.mhz, nodeinfo.nodes, nodeinfo.sockets,
|
||||
nodeinfo.cores, nodeinfo.threads) < 0)
|
||||
goto fail;
|
||||
|
||||
if (STRNEQ(actualData, expectData)) {
|
||||
|
Loading…
Reference in New Issue
Block a user