From: Geoff Levand Date: Wed, 25 Mar 2009 12:36:00 +0000 (+0000) Subject: Add more yaboot parser tests X-Git-Tag: v1.0.0~887 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=094d0fdd3a62dd8c5f5e79a856385466d93ddc3a Add more yaboot parser tests Add yaboot.conf files from fedora, OpenSUSE, and a yaboot whitespace and comment test. Signed-off-by: Geoff Levand Signed-off-by: Jeremy Kerr --- diff --git a/test/parser/201/ps3da1/etc/yaboot.conf b/test/parser/201/ps3da1/etc/yaboot.conf new file mode 100644 index 0000000..8f44792 --- /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 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" + diff --git a/test/parser/202/ps3da1/etc/yaboot.conf b/test/parser/202/ps3da1/etc/yaboot.conf new file mode 100644 index 0000000..56d7062 --- /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 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" + diff --git a/test/parser/203/ps3da1/etc/yaboot.conf b/test/parser/203/ps3da1/etc/yaboot.conf new file mode 100644 index 0000000..57a2f0d --- /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 " + diff --git a/test/parser/204/ps3da1/etc/yaboot.conf b/test/parser/204/ps3da1/etc/yaboot.conf new file mode 100644 index 0000000..7537646 --- /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