]> err.no Git - util-linux/commitdiff
tests: add lscpu(1) test for fullvirt. Xen x86_64
authorKarel Zak <kzak@redhat.com>
Wed, 22 Oct 2008 11:49:23 +0000 (13:49 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 22 Oct 2008 12:01:44 +0000 (14:01 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
19 files changed:
tests/expected/ts-lscpu-x86_64-xenfull [new file with mode: 0644]
tests/input/ts-lscpu-x86_64-xenfull/proc/bus/pci/devices [new file with mode: 0644]
tests/input/ts-lscpu-x86_64-xenfull/proc/cpuinfo [new file with mode: 0644]
tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index0/level [new file with mode: 0644]
tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index0/shared_cpu_map [new file with mode: 0644]
tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index0/size [new file with mode: 0644]
tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index0/type [new file with mode: 0644]
tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index1/level [new file with mode: 0644]
tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index1/shared_cpu_map [new file with mode: 0644]
tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index1/size [new file with mode: 0644]
tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index1/type [new file with mode: 0644]
tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index2/level [new file with mode: 0644]
tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index2/shared_cpu_map [new file with mode: 0644]
tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index2/size [new file with mode: 0644]
tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/cache/index2/type [new file with mode: 0644]
tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/topology/core_siblings [new file with mode: 0644]
tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/cpu/cpu0/topology/thread_siblings [new file with mode: 0644]
tests/input/ts-lscpu-x86_64-xenfull/sys/devices/system/node/node0/cpumap [new file with mode: 0644]
tests/ts-lscpu-x86_64-xenfull [new file with mode: 0755]

diff --git a/tests/expected/ts-lscpu-x86_64-xenfull b/tests/expected/ts-lscpu-x86_64-xenfull
new file mode 100644 (file)
index 0000000..1a5c46a
--- /dev/null
@@ -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 (file)
index 0000000..e977cd2
--- /dev/null
@@ -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 (file)
index 0000000..ebd29f4
--- /dev/null
@@ -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 (file)
index 0000000..d00491f
--- /dev/null
@@ -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 (file)
index 0000000..6dcc80c
--- /dev/null
@@ -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 (file)
index 0000000..56b868b
--- /dev/null
@@ -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 (file)
index 0000000..0b7088e
--- /dev/null
@@ -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 (file)
index 0000000..d00491f
--- /dev/null
@@ -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 (file)
index 0000000..6dcc80c
--- /dev/null
@@ -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 (file)
index 0000000..56b868b
--- /dev/null
@@ -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 (file)
index 0000000..9a53cbf
--- /dev/null
@@ -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 (file)
index 0000000..0cfbf08
--- /dev/null
@@ -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 (file)
index 0000000..6dcc80c
--- /dev/null
@@ -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 (file)
index 0000000..fd6858c
--- /dev/null
@@ -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 (file)
index 0000000..e4fd9dc
--- /dev/null
@@ -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 (file)
index 0000000..6dcc80c
--- /dev/null
@@ -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 (file)
index 0000000..6dcc80c
--- /dev/null
@@ -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 (file)
index 0000000..176d3d6
--- /dev/null
@@ -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 (executable)
index 0000000..20b2bd5
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash
+TS_DESC=x86_64-xenfull
+. ./ts-lscpu.sh