cca0c4
From 4d48c517db42b6d7f30d7d2441863704bd01eb11 Mon Sep 17 00:00:00 2001
cca0c4
From: Robert Marshall <rmarshall@redhat.com>
cca0c4
Date: Tue, 14 Mar 2017 22:55:27 -0400
cca0c4
Subject: [PATCH 41/55] Add s390/s390x --info test (#1285601)
cca0c4
cca0c4
Running the --info grubby option on s390/s390x platforms always returned
cca0c4
the (null) value. Added a test to look at --info and ensure it comes out
cca0c4
as a user would expect.
cca0c4
cca0c4
Resolves: rhbz#1285601
cca0c4
---
cca0c4
 test.sh                |  2 ++
cca0c4
 test/results/info/z2.1 |  6 ++++++
cca0c4
 test/zipl.2            | 22 ++++++++++++++++++++++
cca0c4
 3 files changed, 30 insertions(+)
cca0c4
 create mode 100644 test/results/info/z2.1
cca0c4
 create mode 100644 test/zipl.2
cca0c4
cca0c4
diff --git a/test.sh b/test.sh
cca0c4
index 1ef9eca535d..afa4f705b2b 100755
cca0c4
--- a/test.sh
cca0c4
+++ b/test.sh
cca0c4
@@ -320,6 +320,8 @@ testing="Z/IPL display default title"
cca0c4
 ziplDisplayTest zipl.1 defaulttitle/z.1 --default-title
cca0c4
 testing="Z/IPL display default kernel"
cca0c4
 ziplDisplayTest zipl.1 defaultkernel/z.1 --default-kernel
cca0c4
+testing="Z/IPL display entry information"
cca0c4
+ziplDisplayTest zipl.2 info/z2.1 --info=1
cca0c4
 
cca0c4
 testing="GRUB fallback directive"
cca0c4
 grubTest grub.5 fallback/g5.1 --remove-kernel=/boot/vmlinuz-2.4.7-ac3 \
cca0c4
diff --git a/test/results/info/z2.1 b/test/results/info/z2.1
cca0c4
new file mode 100644
cca0c4
index 00000000000..e5ce3a1a61f
cca0c4
--- /dev/null
cca0c4
+++ b/test/results/info/z2.1
cca0c4
@@ -0,0 +1,6 @@
cca0c4
+index=1
cca0c4
+kernel=/boot/vmlinuz-3.10.0-514.6.2.el7.s390x
cca0c4
+args="crashkernel=auto rd.dasd=0.0.0120 rd.dasd=0.0.0121 rd.dasd=0.0.0122 rd.dasd=0.0.0123 rd.lvm.lv=rhel_ibm-z-68/root rd.lvm.lv=rhel_ibm-z-68/swap rd.znet=qeth,0.0.8000,0.0.8001,0.0.8002,layer2=1,portname=z-68,portno=0 LANG=en_US.UTF-8 systemd.log_level=debug systemd.log_target=kmsg"
cca0c4
+root=/dev/mapper/rhel_ibm--z--68-root
cca0c4
+initrd=/boot/initramfs-3.10.0-514.6.2.el7.s390x.img
cca0c4
+title=3.10.0-514.6.2.el7.s390x_with_debugging
cca0c4
diff --git a/test/zipl.2 b/test/zipl.2
cca0c4
new file mode 100644
cca0c4
index 00000000000..f064b2a36d5
cca0c4
--- /dev/null
cca0c4
+++ b/test/zipl.2
cca0c4
@@ -0,0 +1,22 @@
cca0c4
+[defaultboot]
cca0c4
+defaultauto
cca0c4
+prompt=1
cca0c4
+timeout=5
cca0c4
+default=3.10.0-514.6.2.el7.s390x_with_debugging
cca0c4
+target=/boot
cca0c4
+[3.10.0-514.6.2.el7.s390x]
cca0c4
+	image=/boot/vmlinuz-3.10.0-514.6.2.el7.s390x
cca0c4
+	parameters="root=/dev/mapper/rhel_ibm--z--68-root crashkernel=auto rd.dasd=0.0.0120 rd.dasd=0.0.0121 rd.dasd=0.0.0122 rd.dasd=0.0.0123 rd.lvm.lv=rhel_ibm-z-68/root rd.lvm.lv=rhel_ibm-z-68/swap rd.znet=qeth,0.0.8000,0.0.8001,0.0.8002,layer2=1,portname=z-68,portno=0 LANG=en_US.UTF-8"
cca0c4
+	ramdisk=/boot/initramfs-3.10.0-514.6.2.el7.s390x.img
cca0c4
+[3.10.0-514.6.2.el7.s390x_with_debugging]
cca0c4
+	image=/boot/vmlinuz-3.10.0-514.6.2.el7.s390x
cca0c4
+	parameters="root=/dev/mapper/rhel_ibm--z--68-root crashkernel=auto rd.dasd=0.0.0120 rd.dasd=0.0.0121 rd.dasd=0.0.0122 rd.dasd=0.0.0123 rd.lvm.lv=rhel_ibm-z-68/root rd.lvm.lv=rhel_ibm-z-68/swap rd.znet=qeth,0.0.8000,0.0.8001,0.0.8002,layer2=1,portname=z-68,portno=0 LANG=en_US.UTF-8 systemd.log_level=debug systemd.log_target=kmsg"
cca0c4
+	ramdisk=/boot/initramfs-3.10.0-514.6.2.el7.s390x.img
cca0c4
+[linux]
cca0c4
+	image=/boot/vmlinuz-3.10.0-514.el7.s390x
cca0c4
+	ramdisk=/boot/initramfs-3.10.0-514.el7.s390x.img
cca0c4
+	parameters="root=/dev/mapper/rhel_ibm--z--68-root crashkernel=auto rd.dasd=0.0.0120 rd.dasd=0.0.0121 rd.dasd=0.0.0122 rd.dasd=0.0.0123 rd.lvm.lv=rhel_ibm-z-68/root rd.lvm.lv=rhel_ibm-z-68/swap rd.znet=qeth,0.0.8000,0.0.8001,0.0.8002,layer2=1,portname=z-68,portno=0 LANG=en_US.UTF-8"
cca0c4
+[linux-0-rescue-196fd0394b7442a6838686745f03fd04]
cca0c4
+	image=/boot/vmlinuz-0-rescue-196fd0394b7442a6838686745f03fd04
cca0c4
+	ramdisk=/boot/initramfs-0-rescue-196fd0394b7442a6838686745f03fd04.img
cca0c4
+	parameters="root=/dev/mapper/rhel_ibm--z--68-root crashkernel=auto rd.dasd=0.0.0120 rd.dasd=0.0.0121 rd.dasd=0.0.0122 rd.dasd=0.0.0123 rd.lvm.lv=rhel_ibm-z-68/root rd.lvm.lv=rhel_ibm-z-68/swap rd.znet=qeth,0.0.8000,0.0.8001,0.0.8002,layer2=1,portname=z-68,portno=0"
cca0c4
-- 
cca0c4
2.17.1
cca0c4