libvirt/tests/nodeinfodata
Eric Blake 03e0ec10b4 nodeinfo: deal with offline cpus in a node
Commit 80533ca forgot to think about offline cpus.  When a node
cpu is offline, then its topology/ subdirectory is not present,
leading to spurious error messages leaked to the user such as:

libvir:  error : cannot open /home/dummy/libvirt/tests/nodeinfodata/linux-nodeinfo-sysfs-test-6/node/node0/cpu7/topology/physical_package_id: No such file or directory

Fix that, as well as test it; the test data is gathered from a
machine with one NUMA node, hyperthreading, and with 2 of the
8 cpus offline.

* src/nodeinfo.c (virNodeParseNode): Don't parse topology of
offline cpus.
* tests/nodeinfotest.c (mymain): Run new test.
* tests/nodeinfodata/linux-nodeinfo-sysfs-test-6*: New data.
2012-07-18 17:11:42 -06:00
..
linux-nodeinfo-sysfs-test-1 Modify the tests/nodeinfotest.c to use sysfs in addition 2011-12-08 08:39:26 -05:00
linux-nodeinfo-sysfs-test-2 nodeinfo_test: Enhance test data before changing nodeinfo gathering 2012-07-11 15:16:36 +02:00
linux-nodeinfo-sysfs-test-3 nodeinfo_test: Enhance test data before changing nodeinfo gathering 2012-07-11 15:16:36 +02:00
linux-nodeinfo-sysfs-test-4 test: Add new test case for nodeinfotest 2012-07-11 15:36:26 +02:00
linux-nodeinfo-sysfs-test-5/cpu test: Add test case for nodeinfotest if host machine doesn't have NUMA 2012-07-11 15:40:37 +02:00
linux-nodeinfo-sysfs-test-6 nodeinfo: deal with offline cpus in a node 2012-07-18 17:11:42 -06:00
linux-nodeinfo-sysfs-test-1-cpu-ppc-output.txt nodeinfo: test more details 2012-05-16 10:23:06 -06:00
linux-nodeinfo-sysfs-test-1-cpu-x86-output.txt nodeinfo: test more details 2012-05-16 10:23:06 -06:00
linux-nodeinfo-sysfs-test-1-ppc.cpuinfo Modify the tests/nodeinfotest.c to use sysfs in addition 2011-12-08 08:39:26 -05:00
linux-nodeinfo-sysfs-test-1-x86.cpuinfo Modify the tests/nodeinfotest.c to use sysfs in addition 2011-12-08 08:39:26 -05:00
linux-nodeinfo-sysfs-test-2-cpu-x86-output.txt nodeinfo: test more details 2012-05-16 10:23:06 -06:00
linux-nodeinfo-sysfs-test-2-x86.cpuinfo nodeinfo: add some more tests 2012-05-14 11:18:26 -06:00
linux-nodeinfo-sysfs-test-3-cpu-x86-output.txt nodeinfo: Fix gathering of nodeinfo data structure 2012-07-11 15:32:19 +02:00
linux-nodeinfo-sysfs-test-3-x86.cpuinfo nodeinfo: add some more tests 2012-05-14 11:18:26 -06:00
linux-nodeinfo-sysfs-test-4-cpu-x86-output.txt test: Add new test case for nodeinfotest 2012-07-11 15:36:26 +02:00
linux-nodeinfo-sysfs-test-4-x86.cpuinfo test: Add new test case for nodeinfotest 2012-07-11 15:36:26 +02:00
linux-nodeinfo-sysfs-test-5-cpu-x86-output.txt test: Add test case for nodeinfotest if host machine doesn't have NUMA 2012-07-11 15:40:37 +02:00
linux-nodeinfo-sysfs-test-5-x86.cpuinfo test: Add test case for nodeinfotest if host machine doesn't have NUMA 2012-07-11 15:40:37 +02:00
linux-nodeinfo-sysfs-test-6-cpu-x86-output.txt nodeinfo: deal with offline cpus in a node 2012-07-18 17:11:42 -06:00
linux-nodeinfo-sysfs-test-6-x86.cpuinfo nodeinfo: deal with offline cpus in a node 2012-07-18 17:11:42 -06:00