Blame SOURCES/0043-Add-s390-s390x-set-default-index-test-1285601.patch

24fce8
From 6d2322507be50c828c400a6de0cd48bf30dfa1b1 Mon Sep 17 00:00:00 2001
24fce8
From: Robert Marshall <rmarshall@redhat.com>
24fce8
Date: Tue, 14 Mar 2017 22:39:20 -0400
24fce8
Subject: [PATCH 43/55] Add s390/s390x set-default-index test (#1285601)
24fce8
24fce8
Adds a test to ensure set-default-index actually works for s390 and
24fce8
s390x platforms.
24fce8
24fce8
Related: rhbz#1285601
24fce8
---
24fce8
 test.sh                   |  2 ++
24fce8
 test/results/default/z2.1 | 22 ++++++++++++++++++++++
24fce8
 2 files changed, 24 insertions(+)
24fce8
 create mode 100644 test/results/default/z2.1
24fce8
24fce8
diff --git a/test.sh b/test.sh
24fce8
index afa4f705b2b..aaa6e9323a6 100755
24fce8
--- a/test.sh
24fce8
+++ b/test.sh
24fce8
@@ -314,6 +314,8 @@ liloDisplayTest lilo.1 defaultkernel/l1.1 --default-kernel
24fce8
 testing="Z/IPL default directive"
24fce8
 ziplTest zipl.1 default/z1.1 --add-kernel /boot/new-kernel --title test
24fce8
 ziplTest zipl.1 default/z1.2 --add-kernel /boot/new-kernel --title test --make-default
24fce8
+testing="Z/IPL default index directive"
24fce8
+ziplTest zipl.2 default/z2.1 --set-default-index=0
24fce8
 testing="Z/IPL display default index"
24fce8
 ziplDisplayTest zipl.1 defaultindex/0 --default-index
24fce8
 testing="Z/IPL display default title"
24fce8
diff --git a/test/results/default/z2.1 b/test/results/default/z2.1
24fce8
new file mode 100644
24fce8
index 00000000000..93e7491e00a
24fce8
--- /dev/null
24fce8
+++ b/test/results/default/z2.1
24fce8
@@ -0,0 +1,22 @@
24fce8
+[defaultboot]
24fce8
+defaultauto
24fce8
+prompt=1
24fce8
+timeout=5
24fce8
+default=3.10.0-514.6.2.el7.s390x
24fce8
+target=/boot
24fce8
+[3.10.0-514.6.2.el7.s390x]
24fce8
+	image=/boot/vmlinuz-3.10.0-514.6.2.el7.s390x
24fce8
+	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"
24fce8
+	ramdisk=/boot/initramfs-3.10.0-514.6.2.el7.s390x.img
24fce8
+[3.10.0-514.6.2.el7.s390x_with_debugging]
24fce8
+	image=/boot/vmlinuz-3.10.0-514.6.2.el7.s390x
24fce8
+	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"
24fce8
+	ramdisk=/boot/initramfs-3.10.0-514.6.2.el7.s390x.img
24fce8
+[linux]
24fce8
+	image=/boot/vmlinuz-3.10.0-514.el7.s390x
24fce8
+	ramdisk=/boot/initramfs-3.10.0-514.el7.s390x.img
24fce8
+	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"
24fce8
+[linux-0-rescue-196fd0394b7442a6838686745f03fd04]
24fce8
+	image=/boot/vmlinuz-0-rescue-196fd0394b7442a6838686745f03fd04
24fce8
+	ramdisk=/boot/initramfs-0-rescue-196fd0394b7442a6838686745f03fd04.img
24fce8
+	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"
24fce8
-- 
24fce8
2.17.1
24fce8