mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
nodeinfo: add some more tests
Test 2 data grabbed from a 2-core 1-node laptop. Test 3 data grabbed from a 48-cpu AMD Magny Cours box. * tests/nodeinfodata/linux-nodeinfo-sysfs-test-2*: New test data. * tests/nodeinfodata/linux-nodeinfo-sysfs-test-3*: Likewise. * tests/nodeinfotest.c (mymain): Run them. * cfg.mk (exclude_file_name_regexp--sc_prohibit_empty_lines_at_EOF): Exempt new test files.
This commit is contained in:
parent
2b366b46dc
commit
891a7f9e23
2
cfg.mk
2
cfg.mk
@ -780,7 +780,7 @@ exclude_file_name_regexp--sc_prohibit_close = \
|
||||
(\.p[yl]$$|^docs/|^(src/util/virfile\.c|src/libvirt\.c)$$)
|
||||
|
||||
exclude_file_name_regexp--sc_prohibit_empty_lines_at_EOF = \
|
||||
(^tests/qemuhelpdata/|\.(gif|ico|png|diff)$$)
|
||||
(^tests/(qemuhelp|nodeinfo)data/|\.(gif|ico|png|diff)$$)
|
||||
|
||||
_src2=src/(util/command|libvirt|lxc/lxc_controller)
|
||||
exclude_file_name_regexp--sc_prohibit_fork_wrappers = \
|
||||
|
@ -0,0 +1 @@
|
||||
CPUs: 2, MHz: 800, Nodes: 1, Cores: 2
|
52
tests/nodeinfodata/linux-nodeinfo-sysfs-test-2-x86.cpuinfo
Normal file
52
tests/nodeinfodata/linux-nodeinfo-sysfs-test-2-x86.cpuinfo
Normal file
@ -0,0 +1,52 @@
|
||||
processor : 0
|
||||
vendor_id : GenuineIntel
|
||||
cpu family : 6
|
||||
model : 23
|
||||
model name : Intel(R) Core(TM)2 Duo CPU T9600 @ 2.80GHz
|
||||
stepping : 10
|
||||
microcode : 0xa0b
|
||||
cpu MHz : 800.000
|
||||
cache size : 6144 KB
|
||||
physical id : 0
|
||||
siblings : 2
|
||||
core id : 0
|
||||
cpu cores : 2
|
||||
apicid : 0
|
||||
initial apicid : 0
|
||||
fpu : yes
|
||||
fpu_exception : yes
|
||||
cpuid level : 13
|
||||
wp : yes
|
||||
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts nopl aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm ida dts tpr_shadow vnmi flexpriority
|
||||
bogomips : 5586.29
|
||||
clflush size : 64
|
||||
cache_alignment : 64
|
||||
address sizes : 36 bits physical, 48 bits virtual
|
||||
power management:
|
||||
|
||||
processor : 1
|
||||
vendor_id : GenuineIntel
|
||||
cpu family : 6
|
||||
model : 23
|
||||
model name : Intel(R) Core(TM)2 Duo CPU T9600 @ 2.80GHz
|
||||
stepping : 10
|
||||
microcode : 0xa0b
|
||||
cpu MHz : 800.000
|
||||
cache size : 6144 KB
|
||||
physical id : 0
|
||||
siblings : 2
|
||||
core id : 1
|
||||
cpu cores : 2
|
||||
apicid : 1
|
||||
initial apicid : 1
|
||||
fpu : yes
|
||||
fpu_exception : yes
|
||||
cpuid level : 13
|
||||
wp : yes
|
||||
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts nopl aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm ida dts tpr_shadow vnmi flexpriority
|
||||
bogomips : 5586.29
|
||||
clflush size : 64
|
||||
cache_alignment : 64
|
||||
address sizes : 36 bits physical, 48 bits virtual
|
||||
power management:
|
||||
|
@ -0,0 +1 @@
|
||||
0
|
@ -0,0 +1 @@
|
||||
00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000003
|
@ -0,0 +1 @@
|
||||
0-1
|
@ -0,0 +1 @@
|
||||
0
|
@ -0,0 +1 @@
|
||||
00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001
|
@ -0,0 +1 @@
|
||||
0
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1 @@
|
||||
00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000003
|
@ -0,0 +1 @@
|
||||
0-1
|
@ -0,0 +1 @@
|
||||
0
|
@ -0,0 +1 @@
|
||||
00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000002
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1,29 @@
|
||||
Node 0 MemTotal: 4085724 kB
|
||||
Node 0 MemFree: 291364 kB
|
||||
Node 0 MemUsed: 3794360 kB
|
||||
Node 0 Active: 2048032 kB
|
||||
Node 0 Inactive: 1218340 kB
|
||||
Node 0 Active(anon): 1420080 kB
|
||||
Node 0 Inactive(anon): 716324 kB
|
||||
Node 0 Active(file): 627952 kB
|
||||
Node 0 Inactive(file): 502016 kB
|
||||
Node 0 Unevictable: 3536 kB
|
||||
Node 0 Mlocked: 3536 kB
|
||||
Node 0 Dirty: 1192 kB
|
||||
Node 0 Writeback: 0 kB
|
||||
Node 0 FilePages: 1338636 kB
|
||||
Node 0 Mapped: 109700 kB
|
||||
Node 0 AnonPages: 1979864 kB
|
||||
Node 0 Shmem: 86764 kB
|
||||
Node 0 KernelStack: 4432 kB
|
||||
Node 0 PageTables: 34328 kB
|
||||
Node 0 NFS_Unstable: 0 kB
|
||||
Node 0 Bounce: 0 kB
|
||||
Node 0 WritebackTmp: 0 kB
|
||||
Node 0 Slab: 141504 kB
|
||||
Node 0 SReclaimable: 84436 kB
|
||||
Node 0 SUnreclaim: 57068 kB
|
||||
Node 0 AnonHugePages: 268288 kB
|
||||
Node 0 HugePages_Total: 0
|
||||
Node 0 HugePages_Free: 0
|
||||
Node 0 HugePages_Surp: 0
|
@ -0,0 +1 @@
|
||||
0
|
@ -0,0 +1 @@
|
||||
CPUs: 48, MHz: 2100, Nodes: 1, Cores: 6
|
1248
tests/nodeinfodata/linux-nodeinfo-sysfs-test-3-x86.cpuinfo
Normal file
1248
tests/nodeinfodata/linux-nodeinfo-sysfs-test-3-x86.cpuinfo
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1 @@
|
||||
0
|
@ -0,0 +1 @@
|
||||
0
|
@ -0,0 +1 @@
|
||||
00000000,00000001
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1 @@
|
||||
0
|
@ -0,0 +1 @@
|
||||
3
|
@ -0,0 +1 @@
|
||||
00000000,00000002
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1 @@
|
||||
2
|
@ -0,0 +1 @@
|
||||
2
|
@ -0,0 +1 @@
|
||||
00000000,00000400
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1 @@
|
||||
2
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1 @@
|
||||
00000000,00000800
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1 @@
|
||||
3
|
@ -0,0 +1 @@
|
||||
0
|
@ -0,0 +1 @@
|
||||
00000000,00001000
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1 @@
|
||||
3
|
@ -0,0 +1 @@
|
||||
3
|
@ -0,0 +1 @@
|
||||
00000000,00002000
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1 @@
|
||||
3
|
@ -0,0 +1 @@
|
||||
2
|
@ -0,0 +1 @@
|
||||
00000000,00004000
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1 @@
|
||||
3
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1 @@
|
||||
00000000,00008000
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1 @@
|
||||
4
|
@ -0,0 +1 @@
|
||||
0
|
@ -0,0 +1 @@
|
||||
00000000,00010000
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1 @@
|
||||
4
|
@ -0,0 +1 @@
|
||||
3
|
@ -0,0 +1 @@
|
||||
00000000,00020000
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1 @@
|
||||
4
|
@ -0,0 +1 @@
|
||||
2
|
@ -0,0 +1 @@
|
||||
00000000,00040000
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1 @@
|
||||
4
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1 @@
|
||||
00000000,00080000
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1 @@
|
||||
0
|
@ -0,0 +1 @@
|
||||
2
|
@ -0,0 +1 @@
|
||||
00000000,00000004
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1 @@
|
||||
5
|
@ -0,0 +1 @@
|
||||
0
|
@ -0,0 +1 @@
|
||||
00000000,00100000
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1 @@
|
||||
5
|
@ -0,0 +1 @@
|
||||
3
|
@ -0,0 +1 @@
|
||||
00000000,00200000
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1 @@
|
||||
5
|
@ -0,0 +1 @@
|
||||
2
|
@ -0,0 +1 @@
|
||||
00000000,00400000
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1 @@
|
||||
5
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1 @@
|
||||
00000000,00800000
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1 @@
|
||||
0
|
@ -0,0 +1 @@
|
||||
0
|
@ -0,0 +1 @@
|
||||
00000000,01000000
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1 @@
|
||||
0
|
@ -0,0 +1 @@
|
||||
3
|
@ -0,0 +1 @@
|
||||
00000000,02000000
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1 @@
|
||||
0
|
@ -0,0 +1 @@
|
||||
2
|
@ -0,0 +1 @@
|
||||
00000000,04000000
|
@ -0,0 +1 @@
|
||||
1
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user