Patchwork [14/18] petitboot: Add more yaboot parser tests

login
register
mail settings
Submitter Geoff Levand
Date March 25, 2009, 10:36 p.m.
Message ID <20090325223547.734739792@am.sony.com>>
Download mbox | patch
Permalink /patch/25119/
State Accepted
Headers show

Comments

Geoff Levand - March 25, 2009, 10:36 p.m.
Add yaboot.conf files from fedora, OpenSUSE, and a yaboot whitespace
and comment test.

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
---
 test/parser/201/ps3da1/etc/yaboot.conf |   27 +++++++++++++++++++++++++++
 test/parser/202/ps3da1/etc/yaboot.conf |   22 ++++++++++++++++++++++
 test/parser/203/ps3da1/etc/yaboot.conf |   25 +++++++++++++++++++++++++
 test/parser/204/ps3da1/etc/yaboot.conf |   10 ++++++++++
 4 files changed, 84 insertions(+)

Patch

--- /dev/null
+++ b/test/parser/201/ps3da1/etc/yaboot.conf
@@ -0,0 +1,27 @@ 
+# yaboot.conf generated by anaconda
+
+boot=/dev/ps3da
+init-message="Welcome to Fedora!\nHit <TAB> for boot options"
+
+partition=1
+timeout=80
+install=/usr/lib/yaboot/yaboot
+enablecdboot
+enableofboot
+enablenetboot
+nonvram
+mntpoint=/boot/yaboot
+usemount
+
+image=/boot/vmlinuz-2.6.25-1.fc9.ppc64
+	label=2.6.25-1.fc9.pp
+	read-only
+	initrd=/boot/initrd-2.6.25-1.fc9.ppc64.img
+	append="root=UUID=0f1335f2-eaba-4495-8eee-29229bb8ba03"
+
+image=/boot/vmlinuz-2.6.25-0.234.rc9.git1.fc9.ppc64
+	label=linux
+	read-only
+	initrd=/boot/initrd-2.6.25-0.234.rc9.git1.fc9.ppc64.img
+	append="root=UUID=0f1335f2-eaba-4495-8eee-29229bb8ba03"
+
--- /dev/null
+++ b/test/parser/202/ps3da1/etc/yaboot.conf
@@ -0,0 +1,22 @@ 
+# yaboot.conf generated by anaconda
+
+boot=/dev/ps3da
+init-message="Welcome to Fedora!\nHit <TAB> for boot options"
+
+partition=1
+timeout=80
+install=/usr/lib/yaboot/yaboot
+delay=5
+enablecdboot
+enableofboot
+enablenetboot
+nonvram
+mntpoint=/boot/yaboot
+usemount
+
+image=/boot/vmlinuz-2.6.27.5-117.fc10.ppc64
+        label=linux
+        read-only
+        initrd=/boot/initrd-2.6.27.5-117.fc10.ppc64.img
+        append="rhgb quiet root=UUID=ebb54ca2-aa3e-4f67-b1d4-184cdc5d0638"
+
--- /dev/null
+++ b/test/parser/203/ps3da1/etc/yaboot.conf
@@ -0,0 +1,25 @@ 
+# from openSUSE
+
+message=yaboot.txt
+
+image[32bit]=inst32
+  label=install
+  append="quiet sysrq=1 insmod=sym53c8xx insmod=ipr            "
+image[32bit]=inst32
+  label=slp
+  append="quiet sysrq=1 install=slp           "
+image[32bit]=inst32
+  label=rescue
+  append="quiet sysrq=1 rescue=1              "
+
+
+image[64bit]=inst64
+  label=install
+  append="quiet sysrq=1 insmod=sym53c8xx insmod=ipr            "
+image[64bit]=inst64
+  label=slp
+  append="quiet sysrq=1 install=slp           "
+image[64bit]=inst64
+  label=rescue
+  append="quiet sysrq=1 rescue=1              "
+
--- /dev/null
+++ b/test/parser/204/ps3da1/etc/yaboot.conf
@@ -0,0 +1,10 @@ 
+
+image=111
+ read-only
+ label=linux1
+ label = linux2
+ append="abc1"
+ append='abc2'
+ # read-only
+ # label=linux3
+ # label = linux4