libvirt/tests
Chris Lalancette aa2f6f96dd Get thread and socket information in virsh nodeinfo.
The current code for "nodeinfo" is pretty naive
about socket and thread information.  To determine the
sockets, it just takes the number of cpus and divides
by the number of cores.  For the thread count, it always
sets it to 1.  With more recent Intel machines, however,
hyperthreading is again an option, meaning that these
heuristics no longer work and give bogus numbers.  This
patch goes through /sys to get the additional
information so we properly report it.

Note that I had to edit the tests not to report on
socket and thread counts, since these are determined
dynamically now.

v2: As pointed out by Eric Blake, gnulib provides
    count-one-bits (which is LGPLv2+).  Use it instead
    of a hand-coded popcnt.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
2010-03-08 09:26:04 -05:00
..
capabilityschemadata Add a more featureful qemu capabilities test data 2009-09-10 12:25:42 +01:00
confdata build: avoid non-srcdir "make distcheck" failure (test_conf.sh) 2010-02-25 10:50:09 +01:00
domainschemadata Support for container related domain XML extensions 2008-08-01 13:31:37 +00:00
interfaceschemadata Update interface.rng and xml test files to match netcf 0.1.5 2010-01-19 21:13:03 +01:00
networkxml2xmlin Add support for an external TFTP boot server 2009-10-28 15:57:49 +01:00
networkxml2xmlout Add support for an external TFTP boot server 2009-10-28 15:57:49 +01:00
nodedevschemadata nodedev: Add removable storage 'media_label' prop 2009-12-14 14:58:23 +01:00
nodeinfodata Get thread and socket information in virsh nodeinfo. 2010-03-08 09:26:04 -05:00
qemuhelpdata Probe for -device and use -nodefaults 2010-01-18 13:39:14 +00:00
qemuxml2argvdata Allow configurable timezones with QEMU 2010-03-01 18:43:04 +00:00
sexpr2xmldata build: avoid non-srcdir "make distcheck" failures (srcdir vs wildcard) 2010-02-25 10:50:18 +01:00
storagepoolxml2xmlin tests: Add XML 2 XML tests for storage pools. 2009-10-16 10:21:47 -04:00
storagepoolxml2xmlout tests: Add XML 2 XML tests for storage pools. 2009-10-16 10:21:47 -04:00
storagevolxml2xmlin tests: Add storage volume XML 2 XML tests. 2009-10-16 10:52:27 -04:00
storagevolxml2xmlout tests: Add storage volume XML 2 XML tests. 2009-10-16 10:52:27 -04:00
vmx2xmldata esx: Add VNC support 2010-01-18 01:44:20 +01:00
xencapsdata build: avoid non-srcdir "make distcheck" failures (srcdir vs wildcard) 2010-02-25 10:50:18 +01:00
xmconfigdata build: avoid non-srcdir "make distcheck" failures (srcdir vs wildcard) 2010-02-25 10:50:18 +01:00
xml2sexprdata build: avoid non-srcdir "make distcheck" failures (srcdir vs wildcard) 2010-02-25 10:50:18 +01:00
xml2vmxdata esx: Add VNC support 2010-01-18 01:44:20 +01:00
.gitignore tests: Add storage volume XML 2 XML tests. 2009-10-16 10:52:27 -04:00
.valgrind.supp Supress annoying libcap-ng errors from valgrind 2009-11-26 12:07:17 +00:00
capabilityschematest Make test suite output less verbose 2010-01-15 16:28:05 +00:00
conftest.c avoid calling exit with a constant; use EXIT_* instead 2009-12-15 17:46:04 +01:00
cpuset Various error reporting fixes 2009-11-03 16:46:54 -05:00
daemon-conf Fix daemon-conf invalid failures 2010-02-20 15:26:53 +01:00
define-dev-segfault Fix up "make check" 2009-10-07 12:18:13 +02:00
domainschematest Make test suite output less verbose 2010-01-15 16:28:05 +00:00
esxutilstest.c esx: Stop passing around virConnectPtr for error reporting 2010-01-26 01:19:23 +01:00
eventtest.c Make test suite output less verbose 2010-01-15 16:28:05 +00:00
int-overflow Fix up "make check" 2009-10-07 12:18:13 +02:00
interfaceschematest Make test suite output less verbose 2010-01-15 16:28:05 +00:00
interfacexml2xmltest.c Remove virConnectPtr from interface XML APIs 2010-02-10 13:32:48 +00:00
libvirtd-fail Fix up "make check" 2009-10-07 12:18:13 +02:00
libvirtd-pool Fix up "make check" 2009-10-07 12:18:13 +02:00
Makefile.am fix "make distcheck" failure 2010-01-21 15:24:15 +01:00
networkschematest Make test suite output less verbose 2010-01-15 16:28:05 +00:00
networkxml2xmltest.c Remove virConnectPtr from network XML APis 2010-02-10 13:31:28 +00:00
nodedevschematest Make test suite output less verbose 2010-01-15 16:28:05 +00:00
nodedevxml2xmltest.c Remove virConnectPtr from all node device XML APIs 2010-02-10 13:32:01 +00:00
nodeinfotest.c Get thread and socket information in virsh nodeinfo. 2010-03-08 09:26:04 -05:00
object-locking.ml Fix up a few typos in the tree. 2009-09-30 14:05:24 +02:00
oomtrace.pl Generic test suite helpers for OOM testing 2008-05-29 15:21:45 +00:00
qemuargv2xmltest.c Convert qemu command line flags to 64-bit int 2010-02-10 12:09:41 +00:00
qemuhelptest.c Support variable clock offset mode in QEMU 2010-03-01 18:41:40 +00:00
qemuxml2argvtest.c Allow configurable timezones with QEMU 2010-03-01 18:43:04 +00:00
qemuxml2xmltest.c Add domain support for virtio channel 2010-02-18 17:52:03 +01:00
qparamtest.c build: enable redundant-const check 2009-02-03 13:08:59 +00:00
read-bufsiz qemu: Break out function to check if we can create/define/restore 2009-11-06 10:12:32 -05:00
read-non-seekable Fix up "make check" 2009-10-07 12:18:13 +02:00
reconnect.c avoid calling exit with a constant; use EXIT_* instead 2009-12-15 17:46:04 +01:00
schematestutils.sh Make test suite output less verbose 2010-01-15 16:28:05 +00:00
secaatest.c sVirt AppArmor security driver 2009-10-08 16:34:22 +02:00
seclabeltest.c Move security drivers to src/security/ 2009-09-21 14:41:44 +01:00
sexpr2xmltest.c Remove virConnectPtr from all domain XML parsing/formatting APIs 2010-02-10 11:49:23 +00:00
start Fix up "make check" 2009-10-07 12:18:13 +02:00
statstest.c Make test suite output less verbose 2010-01-15 16:28:05 +00:00
storagepoolschematest Make test suite output less verbose 2010-01-15 16:28:05 +00:00
storagepoolxml2xmltest.c Remove virConnectPtr from storage APIs & driver 2010-02-10 13:32:11 +00:00
storagevolschematest Make test suite output less verbose 2010-01-15 16:28:05 +00:00
storagevolxml2xmltest.c Remove virConnectPtr from storage APIs & driver 2010-02-10 13:32:11 +00:00
test_conf.sh Make test suite output less verbose 2010-01-15 16:28:05 +00:00
test-lib.sh Make test suite output less verbose 2010-01-15 16:28:05 +00:00
testutils.c Make test suite output less verbose 2010-01-15 16:28:05 +00:00
testutils.h Make test suite output less verbose 2010-01-15 16:28:05 +00:00
testutilsqemu.c Make test suite output less verbose 2010-01-15 16:28:05 +00:00
testutilsqemu.h remove all trailing blank lines 2009-07-16 15:06:42 +02:00
testutilsxen.c Fix crashes in Xen capabilities code 2009-07-27 16:45:01 +01:00
testutilsxen.h remove all trailing blank lines 2009-07-16 15:06:42 +02:00
undefine Fix up "make check" 2009-10-07 12:18:13 +02:00
vcpupin Fix up "make check" 2009-10-07 12:18:13 +02:00
virsh-all Make test suite output less verbose 2010-01-15 16:28:05 +00:00
virsh-synopsis Fix up "make check" 2009-10-07 12:18:13 +02:00
virshtest.c avoid calling exit with a constant; use EXIT_* instead 2009-12-15 17:46:04 +01:00
virt-aa-helper-test Fix virt-aa-helper when host and os.type arch differ 2009-11-13 11:04:23 +01:00
vmx2xmltest.c Remove virConnectPtr from all domain XML parsing/formatting APIs 2010-02-10 11:49:23 +00:00
xencapstest.c Move xen driver code into src/xen/ directory 2009-09-21 14:41:42 +01:00
xmconfigtest.c Remove virConnectPtr from all domain XML parsing/formatting APIs 2010-02-10 11:49:23 +00:00
xml2sexprtest.c Remove virConnectPtr from all domain XML parsing/formatting APIs 2010-02-10 11:49:23 +00:00
xml2vmxtest.c Remove virConnectPtr from all domain XML parsing/formatting APIs 2010-02-10 11:49:23 +00:00