From: Karel Zak Date: Wed, 22 Oct 2008 11:49:23 +0000 (+0200) Subject: tests: add lscpu(1) test for fullvirt. Xen x86_64 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e8f283e905797e9f166e4ebfd572c75219edaba;p=util-linux tests: add lscpu(1) test for fullvirt. Xen x86_64 Signed-off-by: Karel Zak --- diff --git a/tests/expected/ts-lscpu-x86_64-xenfull b/tests/expected/ts-lscpu-x86_64-xenfull new file mode 100644 index 00000000..1a5c46a7 --- /dev/null +++ b/tests/expected/ts-lscpu-x86_64-xenfull @@ -0,0 +1,22 @@ +CPU(s): 2 +Thread(s) per core: 1 +Core(s) per socket: 1 +CPU socket(s): 2 +NUMA node(s): 1 +Vendor ID: GenuineIntel +CPU family: 6 +Model: 23 +Stepping: 6 +CPU MHz: 2493.900 +Hypervisor vendor: Xen +Virtualization type: full +L1d cache: 32K +L1i cache: 32K +L2 cache: 6144K + +# The following is the parsable format, which can be fed to other +# programs. Each different item in every column has an unique ID +# starting from zero. +# CPU,Core,Socket,Node,,L1d,L1i,L2 +0,0,0,0,,0,0,0 +1,1,1,0,,1,1,1 diff --git a/tests/input/ts-lscpu-x86_64-xenfull/proc/bus/pci/devices b/tests/input/ts-lscpu-x86_64-xenfull/proc/bus/pci/devices new file mode 100644 index 00000000..e977cd23 --- /dev/null +++ b/tests/input/ts-lscpu-x86_64-xenfull/proc/bus/pci/devices @@ -0,0 +1,8 @@ +0000 80861237 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0008 80867000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0009 80867010 0 0 0 0 0 c001 0 0 0 0 0 0 10 0 0 PIIX_IDE +000a 80867113 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +000b 80867020 b1 0 0 0 0 c021 0 0 0 0 0 0 20 0 0 uhci_hcd +0010 101300b8 0 f0000008 f2000000 0 0 0 0 2 2000000 1000 0 0 0 0 0 +0018 58530001 a9 c101 f3000008 0 0 0 0 0 100 1000000 0 0 0 0 0 xen-platform-pci +0020 10ec8139 b9 c201 f4000000 0 0 0 0 0 100 100 0 0 0 0 0 8139cp diff --git a/tests/input/ts-lscpu-x86_64-xenfull/proc/cpuinfo b/tests/input/ts-lscpu-x86_64-xenfull/proc/cpuinfo new file mode 100644 index 00000000..ebd29f48 --- /dev/null +++ b/tests/input/ts-lscpu-x86_64-xenfull/proc/cpuinfo @@ -0,0 +1,38 @@ +processor : 0 +vendor_id : GenuineIntel +cpu family : 6 +model : 23 +model name : Intel(R) Xeon(R) CPU L5420 @ 2.50GHz +stepping : 6 +cpu MHz : 2493.900 +cache size : 6144 KB +fpu : yes +fpu_exception : yes +cpuid level : 10 +wp : yes +flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts mmx fxsr sse sse2 ss syscall nx lm constant_tsc pni ds_cpl cx16 xtpr lahf_lm +bogomips : 5002.01 +clflush size : 64 +cache_alignment : 64 +address sizes : 38 bits physical, 48 bits virtual +power management: + +processor : 1 +vendor_id : GenuineIntel +cpu family : 6 +model : 23 +model name : Intel(R) Xeon(R) CPU L5420 @ 2.50GHz +stepping : 6 +cpu MHz : 2493.900 +cache size : 6144 KB +fpu : yes +fpu_exception : yes +cpuid level : 10 +wp : yes +flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts mmx fxsr sse sse2 ss syscall nx lm constant_tsc pni ds_cpl cx16 xtpr lahf_lm +bogomips : 4989.49 +clflush size : 64 +cache_alignment : 64 +address sizes : 38 bits physical, 48 bits virtual +power management: + diff --git a/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index0/level b/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index0/level new file mode 100644 index 00000000..d00491fd --- /dev/null +++ b/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index0/level @@ -0,0 +1 @@ +1 diff --git a/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index0/shared_cpu_map b/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index0/shared_cpu_map new file mode 100644 index 00000000..6dcc80c7 --- /dev/null +++ b/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index0/shared_cpu_map @@ -0,0 +1 @@ +00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 diff --git a/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index0/size b/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index0/size new file mode 100644 index 00000000..56b868b2 --- /dev/null +++ b/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index0/size @@ -0,0 +1 @@ +32K diff --git a/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index0/type b/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index0/type new file mode 100644 index 00000000..0b7088ec --- /dev/null +++ b/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index0/type @@ -0,0 +1 @@ +Data diff --git a/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index1/level b/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index1/level new file mode 100644 index 00000000..d00491fd --- /dev/null +++ b/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index1/level @@ -0,0 +1 @@ +1 diff --git a/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index1/shared_cpu_map b/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index1/shared_cpu_map new file mode 100644 index 00000000..6dcc80c7 --- /dev/null +++ b/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index1/shared_cpu_map @@ -0,0 +1 @@ +00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 diff --git a/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index1/size b/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index1/size new file mode 100644 index 00000000..56b868b2 --- /dev/null +++ b/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index1/size @@ -0,0 +1 @@ +32K diff --git a/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index1/type b/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index1/type new file mode 100644 index 00000000..9a53cbfa --- /dev/null +++ b/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index1/type @@ -0,0 +1 @@ +Instruction diff --git a/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index2/level b/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index2/level new file mode 100644 index 00000000..0cfbf088 --- /dev/null +++ b/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index2/level @@ -0,0 +1 @@ +2 diff --git a/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index2/shared_cpu_map b/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index2/shared_cpu_map new file mode 100644 index 00000000..6dcc80c7 --- /dev/null +++ b/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index2/shared_cpu_map @@ -0,0 +1 @@ +00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 diff --git a/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index2/size b/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index2/size new file mode 100644 index 00000000..fd6858c5 --- /dev/null +++ b/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index2/size @@ -0,0 +1 @@ +6144K diff --git a/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index2/type b/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index2/type new file mode 100644 index 00000000..e4fd9dcc --- /dev/null +++ b/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index2/type @@ -0,0 +1 @@ +Unified diff --git a/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/topology/core_siblings b/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/topology/core_siblings new file mode 100644 index 00000000..6dcc80c7 --- /dev/null +++ b/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/topology/core_siblings @@ -0,0 +1 @@ +00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 diff --git a/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/topology/thread_siblings b/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/topology/thread_siblings new file mode 100644 index 00000000..6dcc80c7 --- /dev/null +++ b/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/topology/thread_siblings @@ -0,0 +1 @@ +00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 diff --git a/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/node/node0/cpumap b/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/node/node0/cpumap new file mode 100644 index 00000000..176d3d66 --- /dev/null +++ b/tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/node/node0/cpumap @@ -0,0 +1 @@ +00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000003 diff --git a/tests/ts-lscpu-x86_64-xenfull b/tests/ts-lscpu-x86_64-xenfull new file mode 100755 index 00000000..20b2bd5c --- /dev/null +++ b/tests/ts-lscpu-x86_64-xenfull @@ -0,0 +1,3 @@ +#!/bin/bash +TS_DESC=x86_64-xenfull +. ./ts-lscpu.sh