From: Karel Zak Date: Wed, 22 Oct 2008 11:22:21 +0000 (+0200) Subject: tests: add lscpu(1) test for paravirt. Xen i386 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=750e040e0091ec38ad21abaccfc7e5f19dd30bd6;p=util-linux tests: add lscpu(1) test for paravirt. Xen i386 Signed-off-by: Karel Zak --- diff --git a/tests/expected/ts-lscpu-i386-xenpara b/tests/expected/ts-lscpu-i386-xenpara new file mode 100644 index 00000000..ae3fa2c1 --- /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 00000000..e69de29b 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 00000000..14a24da8 --- /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 00000000..e69de29b 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 00000000..d00491fd --- /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 00000000..d3476039 --- /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 00000000..56b868b2 --- /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 00000000..0b7088ec --- /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 00000000..d00491fd --- /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 00000000..d3476039 --- /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 00000000..56b868b2 --- /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 00000000..9a53cbfa --- /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 00000000..0cfbf088 --- /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 00000000..b9ad9ed2 --- /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 00000000..fd6858c5 --- /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 00000000..e4fd9dcc --- /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 00000000..bd10c801 --- /dev/null +++ b/tests/ts-lscpu-i386-xenpara @@ -0,0 +1,3 @@ +#!/bin/bash +export TS_DESC=i386-xenpara +. ./ts-lscpu.sh