]> err.no Git - util-linux/commitdiff
tests: add lscpu(1) test for paravirt. Xen i386
authorKarel Zak <kzak@redhat.com>
Wed, 22 Oct 2008 11:22:21 +0000 (13:22 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 22 Oct 2008 11:56:52 +0000 (13:56 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
17 files changed:
tests/expected/ts-lscpu-i386-xenpara [new file with mode: 0644]
tests/input/ts-lscpu-i386-xenpara/proc/bus/pci/devices [new file with mode: 0644]
tests/input/ts-lscpu-i386-xenpara/proc/cpuinfo [new file with mode: 0644]
tests/input/ts-lscpu-i386-xenpara/proc/xen/capabilities [new file with mode: 0644]
tests/input/ts-lscpu-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index0/level [new file with mode: 0644]
tests/input/ts-lscpu-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index0/shared_cpu_map [new file with mode: 0644]
tests/input/ts-lscpu-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index0/size [new file with mode: 0644]
tests/input/ts-lscpu-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index0/type [new file with mode: 0644]
tests/input/ts-lscpu-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index1/level [new file with mode: 0644]
tests/input/ts-lscpu-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index1/shared_cpu_map [new file with mode: 0644]
tests/input/ts-lscpu-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index1/size [new file with mode: 0644]
tests/input/ts-lscpu-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index1/type [new file with mode: 0644]
tests/input/ts-lscpu-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index2/level [new file with mode: 0644]
tests/input/ts-lscpu-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index2/shared_cpu_map [new file with mode: 0644]
tests/input/ts-lscpu-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index2/size [new file with mode: 0644]
tests/input/ts-lscpu-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index2/type [new file with mode: 0644]
tests/ts-lscpu-i386-xenpara [new file with mode: 0755]

diff --git a/tests/expected/ts-lscpu-i386-xenpara b/tests/expected/ts-lscpu-i386-xenpara
new file mode 100644 (file)
index 0000000..ae3fa2c
--- /dev/null
@@ -0,0 +1,19 @@
+CPU(s):                2
+Vendor ID:             GenuineIntel
+CPU family:            6
+Model:                 23
+Stepping:              6
+CPU MHz:               2493.776
+Virtualization:        VT-x
+Hypervisor vendor:     Xen
+Virtualization type:   para
+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
+1,,,,,1,1,0
diff --git a/tests/input/ts-lscpu-i386-xenpara/proc/bus/pci/devices b/tests/input/ts-lscpu-i386-xenpara/proc/bus/pci/devices
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tests/input/ts-lscpu-i386-xenpara/proc/cpuinfo b/tests/input/ts-lscpu-i386-xenpara/proc/cpuinfo
new file mode 100644 (file)
index 0000000..14a24da
--- /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.776
+cache size     : 6144 KB
+fdiv_bug       : no
+hlt_bug                : no
+f00f_bug       : no
+coma_bug       : no
+fpu            : yes
+fpu_exception  : yes
+cpuid level    : 10
+wp             : yes
+flags          : fpu tsc msr pae mce cx8 apic mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm
+bogomips       : 6236.83
+
+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.776
+cache size     : 6144 KB
+fdiv_bug       : no
+hlt_bug                : no
+f00f_bug       : no
+coma_bug       : no
+fpu            : yes
+fpu_exception  : yes
+cpuid level    : 10
+wp             : yes
+flags          : fpu tsc msr pae mce cx8 apic mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc up pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm
+bogomips       : 6236.83
+
diff --git a/tests/input/ts-lscpu-i386-xenpara/proc/xen/capabilities b/tests/input/ts-lscpu-i386-xenpara/proc/xen/capabilities
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tests/input/ts-lscpu-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index0/level b/tests/input/ts-lscpu-i386-xenpara/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-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index0/shared_cpu_map b/tests/input/ts-lscpu-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index0/shared_cpu_map
new file mode 100644 (file)
index 0000000..d347603
--- /dev/null
@@ -0,0 +1 @@
+00000001
diff --git a/tests/input/ts-lscpu-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index0/size b/tests/input/ts-lscpu-i386-xenpara/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-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index0/type b/tests/input/ts-lscpu-i386-xenpara/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-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index1/level b/tests/input/ts-lscpu-i386-xenpara/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-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index1/shared_cpu_map b/tests/input/ts-lscpu-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index1/shared_cpu_map
new file mode 100644 (file)
index 0000000..d347603
--- /dev/null
@@ -0,0 +1 @@
+00000001
diff --git a/tests/input/ts-lscpu-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index1/size b/tests/input/ts-lscpu-i386-xenpara/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-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index1/type b/tests/input/ts-lscpu-i386-xenpara/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-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index2/level b/tests/input/ts-lscpu-i386-xenpara/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-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index2/shared_cpu_map b/tests/input/ts-lscpu-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index2/shared_cpu_map
new file mode 100644 (file)
index 0000000..b9ad9ed
--- /dev/null
@@ -0,0 +1 @@
+00000003
diff --git a/tests/input/ts-lscpu-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index2/size b/tests/input/ts-lscpu-i386-xenpara/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-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index2/type b/tests/input/ts-lscpu-i386-xenpara/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/ts-lscpu-i386-xenpara b/tests/ts-lscpu-i386-xenpara
new file mode 100755 (executable)
index 0000000..bd10c80
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash
+export TS_DESC=i386-xenpara
+. ./ts-lscpu.sh