Magellan Linux

Diff of /trunk/grubby/test.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3009 by niro, Tue Jun 27 14:29:55 2017 UTC revision 3140 by niro, Tue Jul 7 11:13:24 2020 UTC
# Line 314  liloDisplayTest lilo.1 defaultkernel/l1. Line 314  liloDisplayTest lilo.1 defaultkernel/l1.
314  testing="Z/IPL default directive"  testing="Z/IPL default directive"
315  ziplTest zipl.1 default/z1.1 --add-kernel /boot/new-kernel --title test  ziplTest zipl.1 default/z1.1 --add-kernel /boot/new-kernel --title test
316  ziplTest zipl.1 default/z1.2 --add-kernel /boot/new-kernel --title test --make-default  ziplTest zipl.1 default/z1.2 --add-kernel /boot/new-kernel --title test --make-default
317    testing="Z/IPL default index directive"
318    ziplTest zipl.2 default/z2.1 --set-default-index=0
319  testing="Z/IPL display default index"  testing="Z/IPL display default index"
320  ziplDisplayTest zipl.1 defaultindex/0 --default-index  ziplDisplayTest zipl.1 defaultindex/0 --default-index
321  testing="Z/IPL display default title"  testing="Z/IPL display default title"
322  ziplDisplayTest zipl.1 defaulttitle/z.1 --default-title  ziplDisplayTest zipl.1 defaulttitle/z.1 --default-title
323  testing="Z/IPL display default kernel"  testing="Z/IPL display default kernel"
324  ziplDisplayTest zipl.1 defaultkernel/z.1 --default-kernel  ziplDisplayTest zipl.1 defaultkernel/z.1 --default-kernel
325    testing="Z/IPL display entry information"
326    ziplDisplayTest zipl.2 info/z2.1 --info=1
327    
328  testing="GRUB fallback directive"  testing="GRUB fallback directive"
329  grubTest grub.5 fallback/g5.1 --remove-kernel=/boot/vmlinuz-2.4.7-ac3 \  grubTest grub.5 fallback/g5.1 --remove-kernel=/boot/vmlinuz-2.4.7-ac3 \
# Line 382  grubTest grub.3 updargs/g3.2 --update-ke Line 386  grubTest grub.3 updargs/g3.2 --update-ke
386      --args "root=/dev/hdd1 hdd=notide-scsi"      --args "root=/dev/hdd1 hdd=notide-scsi"
387  grubTest grub.3 updargs/g3.4 --update-kernel=ALL --remove-args="hdd"  grubTest grub.3 updargs/g3.4 --update-kernel=ALL --remove-args="hdd"
388  grubTest grub.3 updargs/g3.4 --update-kernel=ALL --remove-args="hdd=ide-scsi"  grubTest grub.3 updargs/g3.4 --update-kernel=ALL --remove-args="hdd=ide-scsi"
389  grubTest grub.3 updargs/g3.4 --update-kernel=ALL --remove-args="hdd=foobar"  grubTest grub.3 updargs/g3.5 --update-kernel=ALL --remove-args="hdd=foobar"
390  grubTest grub.3 updargs/g3.7 --update-kernel=ALL \  grubTest grub.3 updargs/g3.7 --update-kernel=ALL \
391      --remove-args="hdd root ro"      --remove-args="hdd root ro"
392  grubTest grub.7 updargs/g7.2 --boot-filesystem=/    \  grubTest grub.7 updargs/g7.2 --boot-filesystem=/    \
# Line 565  if [ "$testgrub2" == "y" ]; then Line 569  if [ "$testgrub2" == "y" ]; then
569          --copy-default --title 'Red Hat Enterprise Linux Server' \          --copy-default --title 'Red Hat Enterprise Linux Server' \
570          --args=root=/dev/mapper/foo--          --args=root=/dev/mapper/foo--
571    
572        grub2Test grub2.19 remove/g2.19 --env grubenv.4 \
573            --remove-kernel=/boot/vmlinuz-2.6.38.2-9.fc15.x86_64 \
574            --boot-filesystem=/boot/
575        commandTest "saved_default output" \
576            "grub2-editenv test/grub2-support_files/env_temp list" \
577            "saved_entry=Linux, with Fedora 2.6.38.8-32.fc15.x86_64"
578    
579      # copy a stanza and add arguments as well, while using --set-index=      # copy a stanza and add arguments as well, while using --set-index=
580      testing="GRUB2 add stanza and new args with --set-index="      testing="GRUB2 add stanza and new args with --set-index="
581      grub2Test grub2.18 add/g2-1.18  --env grubenv.3 \      grub2Test grub2.18 add/g2-1.18  --env grubenv.3 \
# Line 671  if [ "$testgrub2" == "y" ]; then Line 682  if [ "$testgrub2" == "y" ]; then
682              --initrd /boot/initramfs-0-rescue-5a94251776a14678911d4ae0949500f5.img \              --initrd /boot/initramfs-0-rescue-5a94251776a14678911d4ae0949500f5.img \
683              --copy-default --title "Fedora 21 Rescue" --args=root=/fooooo \              --copy-default --title "Fedora 21 Rescue" --args=root=/fooooo \
684              --remove-kernel=wtf --boot-filesystem=/boot/              --remove-kernel=wtf --boot-filesystem=/boot/
685    
686            testing="GRUB2 add kernel with boot on btrfs subvol"
687            grub2Test grub2.20 add/g2-1.20 --add-kernel=/boot/new-kernel.img \
688                --title='title' \
689                --boot-filesystem=/boot/ \
690                --copy-default \
691                --mounts='test/grub2-support_files/g2.20-mounts'
692    
693            testing="GRUB2 add initrd with boot on btrfs subvol"
694            grub2Test grub2.21 add/g2-1.21 --update-kernel=/boot/new-kernel.img \
695                --initrd=/boot/new-initrd --boot-filesystem=/boot/ \
696                --mounts='test/grub2-support_files/g2.21-mounts'
697    
698            testing="GRUB2 add kernel with rootfs on btrfs subvol and boot directory"
699            grub2Test grub2.22 add/g2-1.22 --add-kernel=/boot/new-kernel.img \
700                --title='title' \
701                --boot-filesystem= \
702                --copy-default \
703                --mounts='test/grub2-support_files/g2.22-mounts'
704    
705            testing="GRUB2 add initrd with rootfs on btrfs subvol and boot directory"
706            grub2Test grub2.23 add/g2-1.23 --update-kernel=/boot/new-kernel.img \
707                --initrd=/boot/new-initrd --boot-filesystem= \
708                --mounts='test/grub2-support_files/g2.23-mounts'
709    
710            testing="GRUB2 add kernel and initrd with boot on btrfs subvol"
711            grub2Test grub2.24 add/g2-1.24 --add-kernel=/boot/new-kernel.img \
712                --title='title' \
713                --initrd=/boot/new-initrd \
714                --boot-filesystem=/boot/ \
715                --copy-default \
716                --mounts='test/grub2-support_files/g2.24-mounts'
717    
718            testing="GRUB2 add kernel and initrd with rootfs on btrfs subvol and boot directory"
719            grub2Test grub2.25 add/g2-1.25 --add-kernel=/boot/new-kernel.img \
720                --title='title' \
721                --initrd=/boot/new-initrd \
722                --boot-filesystem= \
723                --copy-default \
724                --mounts='test/grub2-support_files/g2.25-mounts'
725      fi      fi
726  fi  fi
727    

Legend:
Removed from v.3009  
changed lines
  Added in v.3140