diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-05-15 15:28:57 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-05-16 11:53:25 +0800 |
commit | 5d16719922866622fc0f42c570b9934f595e3c33 (patch) | |
tree | 5ab9638936aff0aec14d150cf0bef9cb244cbe82 /test/parser/data | |
parent | aed58c439015f7f7372d9ee70c767ed9dd366dd7 (diff) | |
download | petitboot-5d16719922866622fc0f42c570b9934f595e3c33.zip petitboot-5d16719922866622fc0f42c570b9934f595e3c33.tar.gz |
test: Replace parser tests with empty framework
This change is a major rework of the parser tests. Currently, the parser
tests just run the parsers on each subdir of data/, but we don't
actually check the results.
Rather than just running parsers and expecting a certain fixed output,
the new tests are arbitraty (short!) C programs. This allows us to set
up the device configuration / discover context etc in whatever manner
necessary, and check that the boot options that the parsers emit are
correct.
This change removes all of the old tests, and adds a new "null" test.
Actual tests will be added in subsequent changes.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'test/parser/data')
22 files changed, 0 insertions, 597 deletions
diff --git a/test/parser/data/grub-01/grub.cfg b/test/parser/data/grub-01/grub.cfg deleted file mode 100644 index 57d6a8b..0000000 --- a/test/parser/data/grub-01/grub.cfg +++ /dev/null @@ -1,300 +0,0 @@ -# -# DO NOT EDIT THIS FILE -# -# It is automatically generated by grub-mkconfig using templates -# from /etc/grub.d and settings from /etc/default/grub -# - -### BEGIN /etc/grub.d/00_header ### -if [ -s $prefix/grubenv ]; then - set have_grubenv=true - load_env -fi -set default="0" -if [ "${prev_saved_entry}" ]; then - set saved_entry="${prev_saved_entry}" - save_env saved_entry - set prev_saved_entry= - save_env prev_saved_entry - set boot_once=true -fi - -function savedefault { - if [ -z "${boot_once}" ]; then - saved_entry="${chosen}" - save_env saved_entry - fi -} - -function recordfail { - set recordfail=1 - if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi -} - -function load_video { - insmod vbe - insmod vga - insmod video_bochs - insmod video_cirrus -} - -terminal_input console -terminal_output console -if [ "${recordfail}" = 1 ]; then - set timeout=-1 -else - set timeout=30 -fi -play 480 440 1 -### END /etc/grub.d/00_header ### - -### BEGIN /etc/grub.d/05_debian_theme ### -set menu_color_normal=white/black -set menu_color_highlight=black/light-gray -if background_color 0,71,115; then - clear -fi -### END /etc/grub.d/05_debian_theme ### - -### BEGIN /etc/grub.d/10_linux ### -if [ ${recordfail} != 1 ]; then - if [ -e ${prefix}/gfxblacklist.txt ]; then - if hwmatch ${prefix}/gfxblacklist.txt 3; then - if [ ${match} = 0 ]; then - set linux_gfx_mode=keep - else - set linux_gfx_mode=text - fi - else - set linux_gfx_mode=text - fi - else - set linux_gfx_mode=keep - fi -else - set linux_gfx_mode=text -fi -export linux_gfx_mode -if [ "$linux_gfx_mode" != "text" ]; then load_video; fi -menuentry 'Ubuntu, with Linux 3.2.0-18-generic' --class ubuntu --class gnu-linux --class gnu --class os { - recordfail - set gfxpayload=$linux_gfx_mode - insmod gzio - insmod part_gpt - insmod ext2 - set root='(hd0,gpt2)' - search --no-floppy --fs-uuid --set=root 2ceaeb4b-f75d-431c-bcde-210f83d7c1e1 - linux /boot/vmlinuz-3.2.0-18-generic root=UUID=2ceaeb4b-f75d-431c-bcde-210f83d7c1e1 ro - initrd /boot/initrd.img-3.2.0-18-generic -} -menuentry 'Ubuntu, with Linux 3.2.0-18-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os { - recordfail - insmod gzio - insmod part_gpt - insmod ext2 - set root='(hd0,gpt2)' - search --no-floppy --fs-uuid --set=root 2ceaeb4b-f75d-431c-bcde-210f83d7c1e1 - echo 'Loading Linux 3.2.0-18-generic ...' - linux /boot/vmlinuz-3.2.0-18-generic root=UUID=2ceaeb4b-f75d-431c-bcde-210f83d7c1e1 ro recovery nomodeset - echo 'Loading initial ramdisk ...' - initrd /boot/initrd.img-3.2.0-18-generic -} -submenu "Previous Linux versions" { -menuentry 'Ubuntu, with Linux 3.2.0-17-generic' --class ubuntu --class gnu-linux --class gnu --class os { - recordfail - set gfxpayload=$linux_gfx_mode - insmod gzio - insmod part_gpt - insmod ext2 - set root='(hd0,gpt2)' - search --no-floppy --fs-uuid --set=root 2ceaeb4b-f75d-431c-bcde-210f83d7c1e1 - linux /boot/vmlinuz-3.2.0-17-generic root=UUID=2ceaeb4b-f75d-431c-bcde-210f83d7c1e1 ro - initrd /boot/initrd.img-3.2.0-17-generic -} -menuentry 'Ubuntu, with Linux 3.2.0-17-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os { - recordfail - insmod gzio - insmod part_gpt - insmod ext2 - set root='(hd0,gpt2)' - search --no-floppy --fs-uuid --set=root 2ceaeb4b-f75d-431c-bcde-210f83d7c1e1 - echo 'Loading Linux 3.2.0-17-generic ...' - linux /boot/vmlinuz-3.2.0-17-generic root=UUID=2ceaeb4b-f75d-431c-bcde-210f83d7c1e1 ro recovery nomodeset - echo 'Loading initial ramdisk ...' - initrd /boot/initrd.img-3.2.0-17-generic -} -menuentry 'Ubuntu, with Linux 3.2.0-16-generic' --class ubuntu --class gnu-linux --class gnu --class os { - recordfail - set gfxpayload=$linux_gfx_mode - insmod gzio - insmod part_gpt - insmod ext2 - set root='(hd0,gpt2)' - search --no-floppy --fs-uuid --set=root 2ceaeb4b-f75d-431c-bcde-210f83d7c1e1 - linux /boot/vmlinuz-3.2.0-16-generic root=UUID=2ceaeb4b-f75d-431c-bcde-210f83d7c1e1 ro - initrd /boot/initrd.img-3.2.0-16-generic -} -menuentry 'Ubuntu, with Linux 3.2.0-16-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os { - recordfail - insmod gzio - insmod part_gpt - insmod ext2 - set root='(hd0,gpt2)' - search --no-floppy --fs-uuid --set=root 2ceaeb4b-f75d-431c-bcde-210f83d7c1e1 - echo 'Loading Linux 3.2.0-16-generic ...' - linux /boot/vmlinuz-3.2.0-16-generic root=UUID=2ceaeb4b-f75d-431c-bcde-210f83d7c1e1 ro recovery nomodeset - echo 'Loading initial ramdisk ...' - initrd /boot/initrd.img-3.2.0-16-generic -} -menuentry 'Ubuntu, with Linux 3.2.0-15-generic' --class ubuntu --class gnu-linux --class gnu --class os { - recordfail - set gfxpayload=$linux_gfx_mode - insmod gzio - insmod part_gpt - insmod ext2 - set root='(hd0,gpt2)' - search --no-floppy --fs-uuid --set=root 2ceaeb4b-f75d-431c-bcde-210f83d7c1e1 - linux /boot/vmlinuz-3.2.0-15-generic root=UUID=2ceaeb4b-f75d-431c-bcde-210f83d7c1e1 ro - initrd /boot/initrd.img-3.2.0-15-generic -} -menuentry 'Ubuntu, with Linux 3.2.0-15-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os { - recordfail - insmod gzio - insmod part_gpt - insmod ext2 - set root='(hd0,gpt2)' - search --no-floppy --fs-uuid --set=root 2ceaeb4b-f75d-431c-bcde-210f83d7c1e1 - echo 'Loading Linux 3.2.0-15-generic ...' - linux /boot/vmlinuz-3.2.0-15-generic root=UUID=2ceaeb4b-f75d-431c-bcde-210f83d7c1e1 ro recovery nomodeset - echo 'Loading initial ramdisk ...' - initrd /boot/initrd.img-3.2.0-15-generic -} -menuentry 'Ubuntu, with Linux 3.2.0-12-generic' --class ubuntu --class gnu-linux --class gnu --class os { - recordfail - set gfxpayload=$linux_gfx_mode - insmod gzio - insmod part_gpt - insmod ext2 - set root='(hd0,gpt2)' - search --no-floppy --fs-uuid --set=root 2ceaeb4b-f75d-431c-bcde-210f83d7c1e1 - linux /boot/vmlinuz-3.2.0-12-generic root=UUID=2ceaeb4b-f75d-431c-bcde-210f83d7c1e1 ro - initrd /boot/initrd.img-3.2.0-12-generic -} -menuentry 'Ubuntu, with Linux 3.2.0-12-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os { - recordfail - insmod gzio - insmod part_gpt - insmod ext2 - set root='(hd0,gpt2)' - search --no-floppy --fs-uuid --set=root 2ceaeb4b-f75d-431c-bcde-210f83d7c1e1 - echo 'Loading Linux 3.2.0-12-generic ...' - linux /boot/vmlinuz-3.2.0-12-generic root=UUID=2ceaeb4b-f75d-431c-bcde-210f83d7c1e1 ro recovery nomodeset - echo 'Loading initial ramdisk ...' - initrd /boot/initrd.img-3.2.0-12-generic -} -menuentry 'Ubuntu, with Linux 3.2.0-11-generic' --class ubuntu --class gnu-linux --class gnu --class os { - recordfail - set gfxpayload=$linux_gfx_mode - insmod gzio - insmod part_gpt - insmod ext2 - set root='(hd0,gpt2)' - search --no-floppy --fs-uuid --set=root 2ceaeb4b-f75d-431c-bcde-210f83d7c1e1 - linux /boot/vmlinuz-3.2.0-11-generic root=UUID=2ceaeb4b-f75d-431c-bcde-210f83d7c1e1 ro - initrd /boot/initrd.img-3.2.0-11-generic -} -menuentry 'Ubuntu, with Linux 3.2.0-11-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os { - recordfail - insmod gzio - insmod part_gpt - insmod ext2 - set root='(hd0,gpt2)' - search --no-floppy --fs-uuid --set=root 2ceaeb4b-f75d-431c-bcde-210f83d7c1e1 - echo 'Loading Linux 3.2.0-11-generic ...' - linux /boot/vmlinuz-3.2.0-11-generic root=UUID=2ceaeb4b-f75d-431c-bcde-210f83d7c1e1 ro recovery nomodeset - echo 'Loading initial ramdisk ...' - initrd /boot/initrd.img-3.2.0-11-generic -} -menuentry 'Ubuntu, with Linux 3.2.0-10-generic' --class ubuntu --class gnu-linux --class gnu --class os { - recordfail - set gfxpayload=$linux_gfx_mode - insmod gzio - insmod part_gpt - insmod ext2 - set root='(hd0,gpt2)' - search --no-floppy --fs-uuid --set=root 2ceaeb4b-f75d-431c-bcde-210f83d7c1e1 - linux /boot/vmlinuz-3.2.0-10-generic root=UUID=2ceaeb4b-f75d-431c-bcde-210f83d7c1e1 ro - initrd /boot/initrd.img-3.2.0-10-generic -} -menuentry 'Ubuntu, with Linux 3.2.0-10-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os { - recordfail - insmod gzio - insmod part_gpt - insmod ext2 - set root='(hd0,gpt2)' - search --no-floppy --fs-uuid --set=root 2ceaeb4b-f75d-431c-bcde-210f83d7c1e1 - echo 'Loading Linux 3.2.0-10-generic ...' - linux /boot/vmlinuz-3.2.0-10-generic root=UUID=2ceaeb4b-f75d-431c-bcde-210f83d7c1e1 ro recovery nomodeset - echo 'Loading initial ramdisk ...' - initrd /boot/initrd.img-3.2.0-10-generic -} -menuentry 'Ubuntu, with Linux 3.2.0-9-generic' --class ubuntu --class gnu-linux --class gnu --class os { - recordfail - set gfxpayload=$linux_gfx_mode - insmod gzio - insmod part_gpt - insmod ext2 - set root='(hd0,gpt2)' - search --no-floppy --fs-uuid --set=root 2ceaeb4b-f75d-431c-bcde-210f83d7c1e1 - linux /boot/vmlinuz-3.2.0-9-generic root=UUID=2ceaeb4b-f75d-431c-bcde-210f83d7c1e1 ro - initrd /boot/initrd.img-3.2.0-9-generic -} -menuentry 'Ubuntu, with Linux 3.2.0-9-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os { - recordfail - insmod gzio - insmod part_gpt - insmod ext2 - set root='(hd0,gpt2)' - search --no-floppy --fs-uuid --set=root 2ceaeb4b-f75d-431c-bcde-210f83d7c1e1 - echo 'Loading Linux 3.2.0-9-generic ...' - linux /boot/vmlinuz-3.2.0-9-generic root=UUID=2ceaeb4b-f75d-431c-bcde-210f83d7c1e1 ro recovery nomodeset - echo 'Loading initial ramdisk ...' - initrd /boot/initrd.img-3.2.0-9-generic -} -} -### END /etc/grub.d/10_linux ### - -### BEGIN /etc/grub.d/20_linux_xen ### -### END /etc/grub.d/20_linux_xen ### - -### BEGIN /etc/grub.d/20_memtest86+ ### -menuentry "Memory test (memtest86+)" { - insmod part_gpt - insmod ext2 - set root='(hd0,gpt2)' - search --no-floppy --fs-uuid --set=root 2ceaeb4b-f75d-431c-bcde-210f83d7c1e1 - linux16 /boot/memtest86+.bin -} -menuentry "Memory test (memtest86+, serial console 115200)" { - insmod part_gpt - insmod ext2 - set root='(hd0,gpt2)' - search --no-floppy --fs-uuid --set=root 2ceaeb4b-f75d-431c-bcde-210f83d7c1e1 - linux16 /boot/memtest86+.bin console=ttyS0,115200n8 -} -### END /etc/grub.d/20_memtest86+ ### - -### BEGIN /etc/grub.d/30_os-prober ### -### END /etc/grub.d/30_os-prober ### - -### BEGIN /etc/grub.d/40_custom ### -# This file provides an easy way to add custom menu entries. Simply type the -# menu entries you want to add after this comment. Be careful not to change -# the 'exec tail' line above. -### END /etc/grub.d/40_custom ### - -### BEGIN /etc/grub.d/41_custom ### -if [ -f $prefix/custom.cfg ]; then - source $prefix/custom.cfg; -fi -### END /etc/grub.d/41_custom ### diff --git a/test/parser/data/grub-02/grub.cfg b/test/parser/data/grub-02/grub.cfg deleted file mode 100644 index 85b5cf2..0000000 --- a/test/parser/data/grub-02/grub.cfg +++ /dev/null @@ -1,35 +0,0 @@ -# Modified by YaST2. Last modification on Fri Mar 9 11:38:54 PST 2012 -# THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader -# For the new kernel it try to figure out old parameters. In case we are not able to recognize it (e.g. change of flavor or strange install order ) it it use as fallback installation parameters from /etc/sysconfig/bootloader - -default 2 -timeout 8 -##YaST - generic_mbr -#gfxmenu (hd0,1)/boot/message -serial --unit=0 --speed=115200 -terminal --timeout=10 serial console -##YaST - activate - -###Don't change this comment - YaST2 identifier: Original name: linux### -title G2f9b620 -- openSUSE 12.1 - 3.2.0-rc3-11771 - root (hd0,1) - kernel /boot/vmlinuz-3.2.0-rc3 root=/dev/disk/by-id/ata-GB1000EAMYC_WMATV7016365-part2 resume=/dev/disk/by-id/ata-GB1000EAMYC_WMATV7016365-part1 splash=silent console=ttyS0,115200 showopts maxcpus=4 vga=0x31d - initrd /boot/initrd-3.2.0-rc3 - -###Don't change this comment - YaST2 identifier: Original name: linux### -title Gf91961f -- openSUSE 12.1 - 3.2.0-11770 - root (hd0,1) - kernel /boot/vmlinuz-3.2. root=/dev/disk/by-id/ata-GB1000EAMYC_WMATV7016365-part2 resume=/dev/disk/by-id/ata-GB1000EAMYC_WMATV7016365-part1 splash=silent console=ttyS0,115200 showopts maxcpus=4 vga=0x31d - initrd /boot/initrd-3.2. - -###Don't change this comment - YaST2 identifier: Original name: linux### -title Desktop -- openSUSE 12.1 - 3.1.9-1.4 - root (hd0,1) - kernel /boot/vmlinuz-3.1.9-1.4-desktop root=/dev/disk/by-id/ata-GB1000EAMYC_WMATV7016365-part2 resume=/dev/disk/by-id/ata-GB1000EAMYC_WMATV7016365-part1 splash=silent quiet clocksource=jiffies showopts vga=0x31a console=ttyS0,115200 - initrd /boot/initrd-3.1.9-1.4-desktop - -###Don't change this comment - YaST2 identifier: Original name: failsafe### -title Failsafe -- openSUSE 12.1 - 3.1.9-1.4 - root (hd0,1) - kernel /boot/vmlinuz-3.1.9-1.4-desktop root=/dev/disk/by-id/ata-GB1000EAMYC_WMATV7016365-part2 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=0x31a - initrd /boot/initrd-3.1.9-1.4-desktop diff --git a/test/parser/data/kboot-01/etc/kboot.conf b/test/parser/data/kboot-01/etc/kboot.conf deleted file mode 100644 index 591c51b..0000000 --- a/test/parser/data/kboot-01/etc/kboot.conf +++ /dev/null @@ -1,9 +0,0 @@ -# Ubuntu feisty kboot.conf -message=/etc/kboot.msg -timeout=300 -default=live -live='/casper/vmlinux initrd=/casper/initrd.gz file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash --' -live_nosplash='/casper/vmlinux initrd=/casper/initrd.gz file=/cdrom/preseed/ubuntu.seed boot=casper quiet --' -driverupdates='/casper/vmlinux initrd=/casper/initrd.gz file=/cdrom/preseed/ubuntu.seed boot=casper debian-installer/driver-update=true quiet splash --' -check='/casper/vmlinux initrd=/casper/initrd.gz boot=casper integrity-check quiet splash --' - diff --git a/test/parser/data/kboot-01/expected-output b/test/parser/data/kboot-01/expected-output deleted file mode 100644 index bace9f7..0000000 --- a/test/parser/data/kboot-01/expected-output +++ /dev/null @@ -1,24 +0,0 @@ -[dev 0] id: /dev/ps3da1 -[dev 0] name: (null) -[dev 0] description: (null) -[dev 0] boot_image: /usr/share/petitboot/artwork/hdd.png -[opt 0] name: live -[opt 0] description: /casper/vmlinux root=/dev/ram0 initrd=/casper/initrd.gz file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash -- -[opt 0] boot_image: devices/parser-tests/001/ps3da1/casper/vmlinux -[opt 0] initrd: devices/parser-tests/001/ps3da1/casper/initrd.gz -[opt 0] boot_args: root=/dev/ram0 initrd=/casper/initrd.gz file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash -- -[opt 1] name: live_nosplash -[opt 1] description: /casper/vmlinux root=/dev/ram0 initrd=/casper/initrd.gz file=/cdrom/preseed/ubuntu.seed boot=casper quiet -- -[opt 1] boot_image: devices/parser-tests/001/ps3da1/casper/vmlinux -[opt 1] initrd: devices/parser-tests/001/ps3da1/casper/initrd.gz -[opt 1] boot_args: root=/dev/ram0 initrd=/casper/initrd.gz file=/cdrom/preseed/ubuntu.seed boot=casper quiet -- -[opt 2] name: driverupdates -[opt 2] description: /casper/vmlinux root=/dev/ram0 initrd=/casper/initrd.gz file=/cdrom/preseed/ubuntu.seed boot=casper debian-installer/driver-update=true quiet splash -- -[opt 2] boot_image: devices/parser-tests/001/ps3da1/casper/vmlinux -[opt 2] initrd: devices/parser-tests/001/ps3da1/casper/initrd.gz -[opt 2] boot_args: root=/dev/ram0 initrd=/casper/initrd.gz file=/cdrom/preseed/ubuntu.seed boot=casper debian-installer/driver-update=true quiet splash -- -[opt 3] name: check -[opt 3] description: /casper/vmlinux root=/dev/ram0 initrd=/casper/initrd.gz boot=casper integrity-check quiet splash -- -[opt 3] boot_image: devices/parser-tests/001/ps3da1/casper/vmlinux -[opt 3] initrd: devices/parser-tests/001/ps3da1/casper/initrd.gz -[opt 3] boot_args: root=/dev/ram0 initrd=/casper/initrd.gz boot=casper integrity-check quiet splash -- diff --git a/test/parser/data/kboot-02/etc/kboot.conf b/test/parser/data/kboot-02/etc/kboot.conf deleted file mode 100644 index a7bb199..0000000 --- a/test/parser/data/kboot-02/etc/kboot.conf +++ /dev/null @@ -1,4 +0,0 @@ -# test remapping sda to ps3da, when mounted from a ps3da device - -test='/dev/sda1:/vmlinux' - diff --git a/test/parser/data/kboot-02/expected-output b/test/parser/data/kboot-02/expected-output deleted file mode 100644 index 4f60310..0000000 --- a/test/parser/data/kboot-02/expected-output +++ /dev/null @@ -1,9 +0,0 @@ -[dev 0] id: /dev/ps3da1 -[dev 0] name: (null) -[dev 0] description: (null) -[dev 0] boot_image: /usr/share/petitboot/artwork/hdd.png -[opt 0] name: test -[opt 0] description: /dev/sda1:/vmlinux -[opt 0] boot_image: devices/parser-tests/003/ps3da1/vmlinux -[opt 0] initrd: (null) -[opt 0] boot_args: (null) diff --git a/test/parser/data/kboot-03/etc/kboot.conf b/test/parser/data/kboot-03/etc/kboot.conf deleted file mode 100644 index 9755f77..0000000 --- a/test/parser/data/kboot-03/etc/kboot.conf +++ /dev/null @@ -1,4 +0,0 @@ -# test remapping sda to ps3da, when mounted from a plain sd device - -test='/dev/sda1:/vmlinux' - diff --git a/test/parser/data/kboot-03/expected-output b/test/parser/data/kboot-03/expected-output deleted file mode 100644 index 76a90a2..0000000 --- a/test/parser/data/kboot-03/expected-output +++ /dev/null @@ -1,9 +0,0 @@ -[dev 0] id: /dev/sda1 -[dev 0] name: (null) -[dev 0] description: (null) -[dev 0] boot_image: /usr/share/petitboot/artwork/hdd.png -[opt 0] name: test -[opt 0] description: /dev/sda1:/vmlinux -[opt 0] boot_image: devices/parser-tests/004/sda1/vmlinux -[opt 0] initrd: (null) -[opt 0] boot_args: (null) diff --git a/test/parser/data/kboot-04/etc/kboot.conf b/test/parser/data/kboot-04/etc/kboot.conf deleted file mode 100644 index 72b7db8..0000000 --- a/test/parser/data/kboot-04/etc/kboot.conf +++ /dev/null @@ -1,6 +0,0 @@ - -# test for LABEL= and UUID= lookups - -test_uuid='UUID=meep:/vmlinux' -test_label='LABEL=meep:/vmlinux' - diff --git a/test/parser/data/kboot-04/expected-output b/test/parser/data/kboot-04/expected-output deleted file mode 100644 index bfaccc8..0000000 --- a/test/parser/data/kboot-04/expected-output +++ /dev/null @@ -1,14 +0,0 @@ -[dev 0] id: /dev/ps3da1 -[dev 0] name: (null) -[dev 0] description: (null) -[dev 0] boot_image: /usr/share/petitboot/artwork/hdd.png -[opt 0] name: test_uuid -[opt 0] description: UUID=meep:/vmlinux -[opt 0] boot_image: devices/parser-tests/005/disk/by-uuid/meep/vmlinux -[opt 0] initrd: (null) -[opt 0] boot_args: (null) -[opt 1] name: test_label -[opt 1] description: LABEL=meep:/vmlinux -[opt 1] boot_image: devices/parser-tests/005/disk/by-label/meep/vmlinux -[opt 1] initrd: (null) -[opt 1] boot_args: (null) diff --git a/test/parser/data/kboot-05/etc/kboot.conf b/test/parser/data/kboot-05/etc/kboot.conf deleted file mode 100644 index 4a986c0..0000000 --- a/test/parser/data/kboot-05/etc/kboot.conf +++ /dev/null @@ -1,12 +0,0 @@ -# kboot.conf for ydl - -default=ydl -timeout=10 -root=/dev/sda1 -ydl='/dev/sda1:/vmlinux-2.6.22-0.ydl.rc4 initrd=/dev/sda1:/initrd-2.6.22-0.ydl.rc4.img root=LABEL=/ init=/sbin/init video=ps3fb:mode:3 rhgb' -ydl480i='/dev/sda1:/vmlinux-2.6.22-0.ydl.rc4 initrd=/dev/sda1:/initrd-2.6.22-0.ydl.rc4.img root=LABEL=/ init=/sbin/init video=ps3fb:mode:1 rhgb' -ydl1080i='/dev/sda1:/vmlinux-2.6.22-0.ydl.rc4 initrd=/dev/sda1:/initrd-2.6.22-0.ydl.rc4.img root=LABEL=/ init=/sbin/init video=ps3fb:mode:4 rhgb' -ydltext='/dev/sda1:/vmlinux-2.6.22-0.ydl.rc4 initrd=/dev/sda1:/initrd-2.6.22-0.ydl.rc4.img root=LABEL=/ init=/sbin/init 3' - - - diff --git a/test/parser/data/kboot-05/expected-output b/test/parser/data/kboot-05/expected-output deleted file mode 100644 index 45d99a1..0000000 --- a/test/parser/data/kboot-05/expected-output +++ /dev/null @@ -1,24 +0,0 @@ -[dev 0] id: /dev/ps3da1 -[dev 0] name: (null) -[dev 0] description: (null) -[dev 0] boot_image: /usr/share/petitboot/artwork/hdd.png -[opt 0] name: ydl -[opt 0] description: /dev/sda1:/vmlinux-2.6.22-0.ydl.rc4 root=LABEL=/ initrd=/dev/sda1:/initrd-2.6.22-0.ydl.rc4.img init=/sbin/init video=ps3fb:mode:3 rhgb -[opt 0] boot_image: devices/parser-tests/101/ps3da1/vmlinux-2.6.22-0.ydl.rc4 -[opt 0] initrd: devices/parser-tests/101/ps3da1/initrd-2.6.22-0.ydl.rc4.img -[opt 0] boot_args: root=LABEL=/ initrd=/dev/sda1:/initrd-2.6.22-0.ydl.rc4.img init=/sbin/init video=ps3fb:mode:3 rhgb -[opt 1] name: ydl480i -[opt 1] description: /dev/sda1:/vmlinux-2.6.22-0.ydl.rc4 root=LABEL=/ initrd=/dev/sda1:/initrd-2.6.22-0.ydl.rc4.img init=/sbin/init video=ps3fb:mode:1 rhgb -[opt 1] boot_image: devices/parser-tests/101/ps3da1/vmlinux-2.6.22-0.ydl.rc4 -[opt 1] initrd: devices/parser-tests/101/ps3da1/initrd-2.6.22-0.ydl.rc4.img -[opt 1] boot_args: root=LABEL=/ initrd=/dev/sda1:/initrd-2.6.22-0.ydl.rc4.img init=/sbin/init video=ps3fb:mode:1 rhgb -[opt 2] name: ydl1080i -[opt 2] description: /dev/sda1:/vmlinux-2.6.22-0.ydl.rc4 root=LABEL=/ initrd=/dev/sda1:/initrd-2.6.22-0.ydl.rc4.img init=/sbin/init video=ps3fb:mode:4 rhgb -[opt 2] boot_image: devices/parser-tests/101/ps3da1/vmlinux-2.6.22-0.ydl.rc4 -[opt 2] initrd: devices/parser-tests/101/ps3da1/initrd-2.6.22-0.ydl.rc4.img -[opt 2] boot_args: root=LABEL=/ initrd=/dev/sda1:/initrd-2.6.22-0.ydl.rc4.img init=/sbin/init video=ps3fb:mode:4 rhgb -[opt 3] name: ydltext -[opt 3] description: /dev/sda1:/vmlinux-2.6.22-0.ydl.rc4 root=LABEL=/ initrd=/dev/sda1:/initrd-2.6.22-0.ydl.rc4.img init=/sbin/init 3 -[opt 3] boot_image: devices/parser-tests/101/ps3da1/vmlinux-2.6.22-0.ydl.rc4 -[opt 3] initrd: devices/parser-tests/101/ps3da1/initrd-2.6.22-0.ydl.rc4.img -[opt 3] boot_args: root=LABEL=/ initrd=/dev/sda1:/initrd-2.6.22-0.ydl.rc4.img init=/sbin/init 3 diff --git a/test/parser/data/kboot-06/etc/kboot.conf b/test/parser/data/kboot-06/etc/kboot.conf deleted file mode 100644 index 591c51b..0000000 --- a/test/parser/data/kboot-06/etc/kboot.conf +++ /dev/null @@ -1,9 +0,0 @@ -# Ubuntu feisty kboot.conf -message=/etc/kboot.msg -timeout=300 -default=live -live='/casper/vmlinux initrd=/casper/initrd.gz file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash --' -live_nosplash='/casper/vmlinux initrd=/casper/initrd.gz file=/cdrom/preseed/ubuntu.seed boot=casper quiet --' -driverupdates='/casper/vmlinux initrd=/casper/initrd.gz file=/cdrom/preseed/ubuntu.seed boot=casper debian-installer/driver-update=true quiet splash --' -check='/casper/vmlinux initrd=/casper/initrd.gz boot=casper integrity-check quiet splash --' - diff --git a/test/parser/data/kboot-06/expected-output b/test/parser/data/kboot-06/expected-output deleted file mode 100644 index cc0d096..0000000 --- a/test/parser/data/kboot-06/expected-output +++ /dev/null @@ -1,24 +0,0 @@ -[dev 0] id: /dev/ps3da1 -[dev 0] name: (null) -[dev 0] description: (null) -[dev 0] boot_image: /usr/share/petitboot/artwork/hdd.png -[opt 0] name: live -[opt 0] description: /casper/vmlinux root=/dev/ram0 initrd=/casper/initrd.gz file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash -- -[opt 0] boot_image: devices/parser-tests/102/ps3da1/casper/vmlinux -[opt 0] initrd: devices/parser-tests/102/ps3da1/casper/initrd.gz -[opt 0] boot_args: root=/dev/ram0 initrd=/casper/initrd.gz file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash -- -[opt 1] name: live_nosplash -[opt 1] description: /casper/vmlinux root=/dev/ram0 initrd=/casper/initrd.gz file=/cdrom/preseed/ubuntu.seed boot=casper quiet -- -[opt 1] boot_image: devices/parser-tests/102/ps3da1/casper/vmlinux -[opt 1] initrd: devices/parser-tests/102/ps3da1/casper/initrd.gz -[opt 1] boot_args: root=/dev/ram0 initrd=/casper/initrd.gz file=/cdrom/preseed/ubuntu.seed boot=casper quiet -- -[opt 2] name: driverupdates -[opt 2] description: /casper/vmlinux root=/dev/ram0 initrd=/casper/initrd.gz file=/cdrom/preseed/ubuntu.seed boot=casper debian-installer/driver-update=true quiet splash -- -[opt 2] boot_image: devices/parser-tests/102/ps3da1/casper/vmlinux -[opt 2] initrd: devices/parser-tests/102/ps3da1/casper/initrd.gz -[opt 2] boot_args: root=/dev/ram0 initrd=/casper/initrd.gz file=/cdrom/preseed/ubuntu.seed boot=casper debian-installer/driver-update=true quiet splash -- -[opt 3] name: check -[opt 3] description: /casper/vmlinux root=/dev/ram0 initrd=/casper/initrd.gz boot=casper integrity-check quiet splash -- -[opt 3] boot_image: devices/parser-tests/102/ps3da1/casper/vmlinux -[opt 3] initrd: devices/parser-tests/102/ps3da1/casper/initrd.gz -[opt 3] boot_args: root=/dev/ram0 initrd=/casper/initrd.gz boot=casper integrity-check quiet splash -- diff --git a/test/parser/data/kboot-07/etc/kboot.conf b/test/parser/data/kboot-07/etc/kboot.conf deleted file mode 100644 index 3f8f15c..0000000 --- a/test/parser/data/kboot-07/etc/kboot.conf +++ /dev/null @@ -1,7 +0,0 @@ -default=tftp_nfs_1080p -timeout=120 - -tftp='tftp://192.168.0.5/fire/boot/vmlinux.strip root=/dev/nfs rw ip=dhcp video=1080p' -nfs='nfs://192.168.0.5/fire/boot/vmlinux.strip root=/dev/nfs rw ip=dhcp video=1080p fbcon=rotate:3' -http_nfs='http://192.168.0.5/ice/boot/vmlinux.strip nfs://192.168.0.5/ice/boot/initrd root=/dev/nfs' - diff --git a/test/parser/data/yaboot-01/etc/yaboot.conf b/test/parser/data/yaboot-01/etc/yaboot.conf deleted file mode 100644 index f13b1b3..0000000 --- a/test/parser/data/yaboot-01/etc/yaboot.conf +++ /dev/null @@ -1,8 +0,0 @@ -init-message = "\nWelcome to the 64-bit Yellow Dog Linux 5.0 installer!\nHit <TAB> for boot options.\n\n" -timeout=6000 -default=linux - -image=/ppc/ppc64/vmlinux - label=linux - initrd=/ppc/ppc64/ramdisk.image.gz - read-only diff --git a/test/parser/data/yaboot-01/expected-output b/test/parser/data/yaboot-01/expected-output deleted file mode 100644 index 304f15c..0000000 --- a/test/parser/data/yaboot-01/expected-output +++ /dev/null @@ -1,9 +0,0 @@ -[dev 0] id: /dev/ps3da1 -[dev 0] name: (null) -[dev 0] description: -[dev 0] boot_image: /usr/share/petitboot/artwork/hdd.png -[opt 0] name: linux -[opt 0] description: (null) -[opt 0] boot_image: devices/parser-tests/002/ps3da1/ppc/ppc64/vmlinux -[opt 0] initrd: devices/parser-tests/002/ps3da1/ppc/ppc64/ramdisk.image.gz -[opt 0] boot_args: ro diff --git a/test/parser/data/yaboot-02/etc/yaboot.conf b/test/parser/data/yaboot-02/etc/yaboot.conf deleted file mode 100644 index 8f44792..0000000 --- a/test/parser/data/yaboot-02/etc/yaboot.conf +++ /dev/null @@ -1,27 +0,0 @@ -# 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" - diff --git a/test/parser/data/yaboot-03/etc/yaboot.conf b/test/parser/data/yaboot-03/etc/yaboot.conf deleted file mode 100644 index 56d7062..0000000 --- a/test/parser/data/yaboot-03/etc/yaboot.conf +++ /dev/null @@ -1,22 +0,0 @@ -# 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" - diff --git a/test/parser/data/yaboot-04/etc/yaboot.conf b/test/parser/data/yaboot-04/etc/yaboot.conf deleted file mode 100644 index 7537646..0000000 --- a/test/parser/data/yaboot-04/etc/yaboot.conf +++ /dev/null @@ -1,10 +0,0 @@ - -image=111 - read-only - label=linux1 - label = linux2 - append="abc1" - append='abc2' - # read-only - # label=linux3 - # label = linux4 diff --git a/test/parser/data/yaboot-05/etc/yaboot.conf b/test/parser/data/yaboot-05/etc/yaboot.conf deleted file mode 100644 index fd46206..0000000 --- a/test/parser/data/yaboot-05/etc/yaboot.conf +++ /dev/null @@ -1,6 +0,0 @@ -# yaboot.conf generated by anaconda -# from a failed fedora install - -boot=/dev/sda2 -init-message="Welcome to Fedora!\nHit <TAB> for boot options" - diff --git a/test/parser/data/yaboot-06/etc/yaboot.conf b/test/parser/data/yaboot-06/etc/yaboot.conf deleted file mode 100644 index 57a2f0d..0000000 --- a/test/parser/data/yaboot-06/etc/yaboot.conf +++ /dev/null @@ -1,25 +0,0 @@ -# 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 " - |