|
|
75bbb8 |
From 70e36b1a4e67a162c44a692bcde6bec6b6bdc9ee Mon Sep 17 00:00:00 2001
|
|
|
75bbb8 |
From: Robert Marshall <rmarshall@redhat.com>
|
|
|
75bbb8 |
Date: Tue, 14 Mar 2017 22:55:27 -0400
|
|
|
75bbb8 |
Subject: [PATCH 72/75] Add s390/s390x --info test (#1285601)
|
|
|
75bbb8 |
|
|
|
75bbb8 |
Running the --info grubby option on s390/s390x platforms always returned
|
|
|
75bbb8 |
the (null) value. Added a test to look at --info and ensure it comes out
|
|
|
75bbb8 |
as a user would expect.
|
|
|
75bbb8 |
|
|
|
75bbb8 |
Resolves: rhbz#1285601
|
|
|
75bbb8 |
---
|
|
|
75bbb8 |
test.sh | 2 ++
|
|
|
75bbb8 |
test/results/info/z2.1 | 6 ++++++
|
|
|
75bbb8 |
test/zipl.2 | 22 ++++++++++++++++++++++
|
|
|
75bbb8 |
3 files changed, 30 insertions(+)
|
|
|
75bbb8 |
create mode 100644 test/results/info/z2.1
|
|
|
75bbb8 |
create mode 100644 test/zipl.2
|
|
|
75bbb8 |
|
|
|
75bbb8 |
diff --git a/test.sh b/test.sh
|
|
|
75bbb8 |
index 3631ed0..34ba4d7 100755
|
|
|
75bbb8 |
--- a/test.sh
|
|
|
75bbb8 |
+++ b/test.sh
|
|
|
75bbb8 |
@@ -320,6 +320,8 @@ testing="Z/IPL display default title"
|
|
|
75bbb8 |
ziplDisplayTest zipl.1 defaulttitle/z.1 --default-title
|
|
|
75bbb8 |
testing="Z/IPL display default kernel"
|
|
|
75bbb8 |
ziplDisplayTest zipl.1 defaultkernel/z.1 --default-kernel
|
|
|
75bbb8 |
+testing="Z/IPL display entry information"
|
|
|
75bbb8 |
+ziplDisplayTest zipl.2 info/z2.1 --info=1
|
|
|
75bbb8 |
|
|
|
75bbb8 |
testing="GRUB fallback directive"
|
|
|
75bbb8 |
grubTest grub.5 fallback/g5.1 --remove-kernel=/boot/vmlinuz-2.4.7-ac3 \
|
|
|
75bbb8 |
diff --git a/test/results/info/z2.1 b/test/results/info/z2.1
|
|
|
75bbb8 |
new file mode 100644
|
|
|
75bbb8 |
index 0000000..e5ce3a1
|
|
|
75bbb8 |
--- /dev/null
|
|
|
75bbb8 |
+++ b/test/results/info/z2.1
|
|
|
75bbb8 |
@@ -0,0 +1,6 @@
|
|
|
75bbb8 |
+index=1
|
|
|
75bbb8 |
+kernel=/boot/vmlinuz-3.10.0-514.6.2.el7.s390x
|
|
|
75bbb8 |
+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"
|
|
|
75bbb8 |
+root=/dev/mapper/rhel_ibm--z--68-root
|
|
|
75bbb8 |
+initrd=/boot/initramfs-3.10.0-514.6.2.el7.s390x.img
|
|
|
75bbb8 |
+title=3.10.0-514.6.2.el7.s390x_with_debugging
|
|
|
75bbb8 |
diff --git a/test/zipl.2 b/test/zipl.2
|
|
|
75bbb8 |
new file mode 100644
|
|
|
75bbb8 |
index 0000000..f064b2a
|
|
|
75bbb8 |
--- /dev/null
|
|
|
75bbb8 |
+++ b/test/zipl.2
|
|
|
75bbb8 |
@@ -0,0 +1,22 @@
|
|
|
75bbb8 |
+[defaultboot]
|
|
|
75bbb8 |
+defaultauto
|
|
|
75bbb8 |
+prompt=1
|
|
|
75bbb8 |
+timeout=5
|
|
|
75bbb8 |
+default=3.10.0-514.6.2.el7.s390x_with_debugging
|
|
|
75bbb8 |
+target=/boot
|
|
|
75bbb8 |
+[3.10.0-514.6.2.el7.s390x]
|
|
|
75bbb8 |
+ image=/boot/vmlinuz-3.10.0-514.6.2.el7.s390x
|
|
|
75bbb8 |
+ 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"
|
|
|
75bbb8 |
+ ramdisk=/boot/initramfs-3.10.0-514.6.2.el7.s390x.img
|
|
|
75bbb8 |
+[3.10.0-514.6.2.el7.s390x_with_debugging]
|
|
|
75bbb8 |
+ image=/boot/vmlinuz-3.10.0-514.6.2.el7.s390x
|
|
|
75bbb8 |
+ 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"
|
|
|
75bbb8 |
+ ramdisk=/boot/initramfs-3.10.0-514.6.2.el7.s390x.img
|
|
|
75bbb8 |
+[linux]
|
|
|
75bbb8 |
+ image=/boot/vmlinuz-3.10.0-514.el7.s390x
|
|
|
75bbb8 |
+ ramdisk=/boot/initramfs-3.10.0-514.el7.s390x.img
|
|
|
75bbb8 |
+ 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"
|
|
|
75bbb8 |
+[linux-0-rescue-196fd0394b7442a6838686745f03fd04]
|
|
|
75bbb8 |
+ image=/boot/vmlinuz-0-rescue-196fd0394b7442a6838686745f03fd04
|
|
|
75bbb8 |
+ ramdisk=/boot/initramfs-0-rescue-196fd0394b7442a6838686745f03fd04.img
|
|
|
75bbb8 |
+ 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"
|
|
|
75bbb8 |
--
|
|
|
75bbb8 |
2.9.3
|
|
|
75bbb8 |
|