diff options
author | Karel Zak | 2008-10-22 13:22:21 +0200 |
---|---|---|
committer | Karel Zak | 2008-10-22 13:56:52 +0200 |
commit | 750e040e0091ec38ad21abaccfc7e5f19dd30bd6 (patch) | |
tree | c2b09921ae8c0d22c46a9a4439ce6ed1245dc770 /tests | |
parent | tests: add mk-lscpu-input.sh (diff) | |
download | kernel-qcow2-util-linux-750e040e0091ec38ad21abaccfc7e5f19dd30bd6.tar.gz kernel-qcow2-util-linux-750e040e0091ec38ad21abaccfc7e5f19dd30bd6.tar.xz kernel-qcow2-util-linux-750e040e0091ec38ad21abaccfc7e5f19dd30bd6.zip |
tests: add lscpu(1) test for paravirt. Xen i386
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests')
17 files changed, 72 insertions, 0 deletions
diff --git a/tests/expected/ts-lscpu-i386-xenpara b/tests/expected/ts-lscpu-i386-xenpara new file mode 100644 index 000000000..ae3fa2c1a --- /dev/null +++ b/tests/expected/ts-lscpu-i386-xenpara @@ -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 index 000000000..e69de29bb --- /dev/null +++ b/tests/input/ts-lscpu-i386-xenpara/proc/bus/pci/devices diff --git a/tests/input/ts-lscpu-i386-xenpara/proc/cpuinfo b/tests/input/ts-lscpu-i386-xenpara/proc/cpuinfo new file mode 100644 index 000000000..14a24da8f --- /dev/null +++ b/tests/input/ts-lscpu-i386-xenpara/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.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 index 000000000..e69de29bb --- /dev/null +++ b/tests/input/ts-lscpu-i386-xenpara/proc/xen/capabilities 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 index 000000000..d00491fd7 --- /dev/null +++ b/tests/input/ts-lscpu-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index0/level @@ -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 index 000000000..d34760397 --- /dev/null +++ b/tests/input/ts-lscpu-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index0/shared_cpu_map @@ -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 index 000000000..56b868b2a --- /dev/null +++ b/tests/input/ts-lscpu-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index0/size @@ -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 index 000000000..0b7088ec6 --- /dev/null +++ b/tests/input/ts-lscpu-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index0/type @@ -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 index 000000000..d00491fd7 --- /dev/null +++ b/tests/input/ts-lscpu-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index1/level @@ -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 index 000000000..d34760397 --- /dev/null +++ b/tests/input/ts-lscpu-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index1/shared_cpu_map @@ -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 index 000000000..56b868b2a --- /dev/null +++ b/tests/input/ts-lscpu-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index1/size @@ -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 index 000000000..9a53cbfa3 --- /dev/null +++ b/tests/input/ts-lscpu-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index1/type @@ -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 index 000000000..0cfbf0888 --- /dev/null +++ b/tests/input/ts-lscpu-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index2/level @@ -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 index 000000000..b9ad9ed2c --- /dev/null +++ b/tests/input/ts-lscpu-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index2/shared_cpu_map @@ -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 index 000000000..fd6858c52 --- /dev/null +++ b/tests/input/ts-lscpu-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index2/size @@ -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 index 000000000..e4fd9dccd --- /dev/null +++ b/tests/input/ts-lscpu-i386-xenpara/sys/devices/system/cpu/cpu0/cache/index2/type @@ -0,0 +1 @@ +Unified diff --git a/tests/ts-lscpu-i386-xenpara b/tests/ts-lscpu-i386-xenpara new file mode 100755 index 000000000..bd10c801c --- /dev/null +++ b/tests/ts-lscpu-i386-xenpara @@ -0,0 +1,3 @@ +#!/bin/bash +export TS_DESC=i386-xenpara +. ./ts-lscpu.sh |