]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lscpu: add s390 drawer testcase
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 14 Jun 2016 10:38:08 +0000 (12:38 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 24 Jun 2016 08:54:09 +0000 (10:54 +0200)
Add a new s390 testcase so we get some coverage for the new drawer cpu
topology level.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
tests/expected/lscpu/lscpu-s390-lpar-drawer [new file with mode: 0644]
tests/ts/lscpu/dumps/s390-lpar-drawer.tar.gz [new file with mode: 0644]

diff --git a/tests/expected/lscpu/lscpu-s390-lpar-drawer b/tests/expected/lscpu/lscpu-s390-lpar-drawer
new file mode 100644 (file)
index 0000000..1624e73
--- /dev/null
@@ -0,0 +1,35 @@
+CPU op-mode(s):        32-bit, 64-bit
+CPU(s):                8
+On-line CPU(s) list:   0-7
+Thread(s) per core:    1
+Core(s) per socket:    8
+Socket(s) per book:    3
+Book(s) per drawer:    2
+Drawers(s):            4
+NUMA node(s):          1
+Vendor ID:             IBM/S390
+Model name:            0
+BogoMIPS:              20325.00
+Hypervisor:            PR/SM
+Hypervisor vendor:     IBM
+Virtualization type:   full
+Dispatching mode:      horizontal
+L1d cache:             128K
+L1i cache:             96K
+L2d cache:             2048K
+L2i cache:             2048K
+NUMA node0 CPU(s):     0-140
+Flags:                 esan3 zarch stfle msa ldisp eimm dfp edat etf3eh highgprs te vx sie
+
+# 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,L2d,L2i
+0,0,0,0,,0,0,0,0
+1,1,0,0,,1,1,1,1
+2,2,0,0,,2,2,2,2
+3,3,1,0,,3,3,3,3
+4,4,1,0,,4,4,4,4
+5,5,1,0,,5,5,5,5
+6,6,1,0,,6,6,6,6
+7,7,1,0,,7,7,7,7
diff --git a/tests/ts/lscpu/dumps/s390-lpar-drawer.tar.gz b/tests/ts/lscpu/dumps/s390-lpar-drawer.tar.gz
new file mode 100644 (file)
index 0000000..3386ded
Binary files /dev/null and b/tests/ts/lscpu/dumps/s390-lpar-drawer.tar.gz differ