Magellan Linux

Diff of /tags/grubby-8_40_20170627/test.sh

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

revision 2693 by niro, Wed Jul 16 10:47:33 2014 UTC revision 3030 by niro, Tue Jun 27 14:47:23 2017 UTC
# Line 269  grubTest grub.13 setdefaultindex/g.13.0 Line 269  grubTest grub.13 setdefaultindex/g.13.0
269  grubTest grub.13 setdefaultindex/g.13.1 --set-default-index=1  grubTest grub.13 setdefaultindex/g.13.1 --set-default-index=1
270  grubTest grub.13 setdefaultindex/g.13.9 --set-default-index=9  grubTest grub.13 setdefaultindex/g.13.9 --set-default-index=9
271    
272    testing="GRUB add initrd"
273    grubTest grub.14 add/g1.7 --boot-filesystem=/ --update-kernel=/vmlinuz-4.0.0-0.rc4.git1.4.fc23.x86_64 --initrd /initramfs-4.0.0-0.rc4.git1.4.fc23.x86_64.img '--args= LANG=en_US.UTF-8' '--title=Fedora (4.0.0-0.rc4.git1.4.fc23.x86_64) 23 (Rawhide)'
274    
275  testing="GRUB display default index"  testing="GRUB display default index"
276  grubDisplayTest grub.1 defaultindex/0 --default-index  grubDisplayTest grub.1 defaultindex/0 --default-index
277  grubDisplayTest grub.2 defaultindex/0 --default-index  grubDisplayTest grub.2 defaultindex/0 --default-index
# Line 295  grubDisplayTest grub.9 defaulttitle/g.9 Line 298  grubDisplayTest grub.9 defaulttitle/g.9
298  grubDisplayTest grub.10 defaulttitle/g.10 --default-title  grubDisplayTest grub.10 defaulttitle/g.10 --default-title
299  grubDisplayTest grub.11 defaulttitle/g.11 --default-title  grubDisplayTest grub.11 defaulttitle/g.11 --default-title
300    
301    testing="GRUB display default kernel"
302    grubDisplayTest grub.1 defaultkernel/g.1 --boot-filesystem=/boot --default-kernel
303    grubDisplayTest grub.1 defaultkernel/g.2 --boot-filesystem=/ --default-kernel
304    
305  testing="LILO default directive"  testing="LILO default directive"
306  liloTest lilo.1 default/l1.1 --set-default=/boot/vmlinuz-2.4.18-4  liloTest lilo.1 default/l1.1 --set-default=/boot/vmlinuz-2.4.18-4
307  liloTest lilo.1 default/l1.2 --remove-kernel=/boot/vmlinuz-2.4.18-4smp  liloTest lilo.1 default/l1.2 --remove-kernel=/boot/vmlinuz-2.4.18-4smp
# Line 302  liloTest lilo.1 default/l1.3 --add-kerne Line 309  liloTest lilo.1 default/l1.3 --add-kerne
309      --copy-default      --copy-default
310  liloTest lilo.1 default/l1.4 --add-kernel /boot/kernel --title label \  liloTest lilo.1 default/l1.4 --add-kernel /boot/kernel --title label \
311      --copy-default --make-default      --copy-default --make-default
312    liloDisplayTest lilo.1 defaultkernel/l1.1 --default-kernel
313    
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"
320    ziplDisplayTest zipl.1 defaultindex/0 --default-index
321    testing="Z/IPL display default title"
322    ziplDisplayTest zipl.1 defaulttitle/z.1 --default-title
323    testing="Z/IPL display default kernel"
324    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 373  grubTest grub.3 updargs/g3.7 --update-ke Line 391  grubTest grub.3 updargs/g3.7 --update-ke
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=/    \
393      --update-kernel=ALL --args "hde=ide-scsi"      --update-kernel=ALL --args "hde=ide-scsi"
 grubTest grub.7 updargs/g7.2 --boot-filesystem=/    \  
     --update-kernel=ALL --args "hde=ide-scsi"  
394  grubTest grub.7 updargs/g7.3 --boot-filesystem=/    \  grubTest grub.7 updargs/g7.3 --boot-filesystem=/    \
395      --update-kernel=DEFAULT --args "hde=ide-scsi"      --update-kernel=DEFAULT --args "hde=ide-scsi"
396  grubTest grub.7 updargs/g7.4 --boot-filesystem=/    \  grubTest grub.7 updargs/g7.4 --boot-filesystem=/    \
# Line 473  grubTest grub.8 add/g8.2 --add-kernel=/b Line 489  grubTest grub.8 add/g8.2 --add-kernel=/b
489  grubTest grub.11 add/g11.1 --add-kernel=/boot/new-kernel.img --title='title' \  grubTest grub.11 add/g11.1 --add-kernel=/boot/new-kernel.img --title='title' \
490      --initrd=/boot/new-initrd --boot-filesystem=/boot --copy-default \      --initrd=/boot/new-initrd --boot-filesystem=/boot --copy-default \
491      --args='console=tty0 console=ttyS1,9600n81 single'      --args='console=tty0 console=ttyS1,9600n81 single'
492    grubTest grub.1 add/g1.1 --add-kernel=/boot/new-kernel.img --title='title' \
493        --initrd=/boot/new-initrd --boot-filesystem=/ --set-index 0
494    grubTest grub.1 add/g1.17 --add-kernel=/boot/new-kernel.img --title='title' \
495        --initrd=/boot/new-initrd --boot-filesystem=/ --set-index 1
496    grubTest grub.1 add/g1.17 --add-kernel=/boot/new-kernel.img --title='title' \
497        --initrd=/boot/new-initrd --boot-filesystem=/ --set-index 2
498    grubTest grub.15 add/g1.10 --add-kernel=/boot/new-kernel.img --title='title' \
499        --initrd=/boot/new-initrd --boot-filesystem=/ --set-index 0
500    grubTest grub.15 add/g1.8 --add-kernel=/boot/new-kernel.img --title='title' \
501        --initrd=/boot/new-initrd --boot-filesystem=/ --set-index 1
502    grubTest grub.15 add/g1.9 --add-kernel=/boot/new-kernel.img --title='title' \
503        --initrd=/boot/new-initrd --boot-filesystem=/ --set-index 2
504    grubTest grub.15 add/g1.9 --add-kernel=/boot/new-kernel.img --title='title' \
505        --initrd=/boot/new-initrd --boot-filesystem=/ --set-index 5
506    
507  testgrub2=n  testgrub2=n
508  ARCH=$(uname -m | sed s,i[3456789]86,ia32,)  ARCH=$(uname -m | sed s,i[3456789]86,ia32,)
# Line 525  if [ "$testgrub2" == "y" ]; then Line 555  if [ "$testgrub2" == "y" ]; then
555          --devtree='/boot/dtb-2.6.38.8-32.fc15.x86_64/foobarbaz.dtb' \          --devtree='/boot/dtb-2.6.38.8-32.fc15.x86_64/foobarbaz.dtb' \
556          --initrd=/boot/initramfs-2.6.38.8-32.fc15.x86_64.img \          --initrd=/boot/initramfs-2.6.38.8-32.fc15.x86_64.img \
557          --boot-filesystem=/boot/ --copy-default --efi          --boot-filesystem=/boot/ --copy-default --efi
558        grub2Test grub2.15 add/g2-1.15 \
559            --add-kernel=/boot/vmlinuz-0-rescue-5a94251776a14678911d4ae0949500f5 \
560            --initrd /boot/initramfs-0-rescue-5a94251776a14678911d4ae0949500f5.img \
561            --copy-default --title "Fedora 21 Rescue" --args=root=/fooooo \
562            --remove-kernel=wtf --boot-filesystem=/boot/ --efi
563    
564        # a grub2 add with a "set" of the form: set foo="bar=1,2".  bz#1152550
565        # has this being emitted as: set foo="bar=1,2"=1,2"
566        # which is wrong.
567        grub2Test grub2.16 add/g2-1.16 \
568            --add-kernel=/boot/vmlinuz-foo \
569            --copy-default --title 'Red Hat Enterprise Linux Server' \
570            --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=
580        testing="GRUB2 add stanza and new args with --set-index="
581        grub2Test grub2.18 add/g2-1.18  --env grubenv.3 \
582            --add-kernel=/boot/vmlinuz-3.10.0-327.22.2.el7.x86_64.debug \
583            --boot-filesystem=/boot --copy-default \
584            --title "Red Hat Enterprise Linux Server (3.10.0-327.22.2.el7.x86_64.debug) 7.2 (Maipo) with debugging" \
585            --args="root=/dev/mapper/rhel_team--area--222-root systemd.log_level=debug systemd.log_target=kmsg" \
586            --set-index=1
587    
588      testing="GRUB2 add initrd"      testing="GRUB2 add initrd"
589      grub2Test grub2.2 add/g2-1.4 --update-kernel=/boot/new-kernel.img \      grub2Test grub2.2 add/g2-1.4 --update-kernel=/boot/new-kernel.img \
# Line 616  if [ "$testgrub2" == "y" ]; then Line 675  if [ "$testgrub2" == "y" ]; then
675          testing="GRUB2 add initrd with linux16"          testing="GRUB2 add initrd with linux16"
676          grub2Test grub2.11 add/g2-1.11 --update-kernel=/boot/new-kernel.img \          grub2Test grub2.11 add/g2-1.11 --update-kernel=/boot/new-kernel.img \
677              --initrd=/boot/new-initrd --boot-filesystem=/boot/              --initrd=/boot/new-initrd --boot-filesystem=/boot/
678    
679            testing="GRUB2 add rescue with linux16"
680            grub2Test grub2.14 add/g2-1.14 \
681                --add-kernel=/boot/vmlinuz-0-rescue-5a94251776a14678911d4ae0949500f5 \
682                --initrd /boot/initramfs-0-rescue-5a94251776a14678911d4ae0949500f5.img \
683                --copy-default --title "Fedora 21 Rescue" --args=root=/fooooo \
684                --remove-kernel=wtf --boot-filesystem=/boot/
685      fi      fi
686  fi  fi
687    
# Line 632  ziplTest zipl.1 add/z1.1 --add-kernel=/b Line 698  ziplTest zipl.1 add/z1.1 --add-kernel=/b
698  ziplTest zipl.1 add/z1.2 --add-kernel=/boot/new-kernel.img --title test --copy-default  ziplTest zipl.1 add/z1.2 --add-kernel=/boot/new-kernel.img --title test --copy-default
699    
700  testing="Extlinux add kernel"  testing="Extlinux add kernel"
701  extlinuxTest extlinux.1 add/extlinux1.1 --add-kernel=/boot/new-kernel.img --title='title' \  extlinuxTest extlinux.1 add/extlinux1.1 --add-kernel=/boot/new-kernel.img \
702      --initrd=/boot/new-initrd --boot-filesystem=/      --title='title' --initrd=/boot/new-initrd --boot-filesystem=/
703  extlinuxTest extlinux.1 add/extlinux1.2 --add-kernel=/boot/new-kernel.img --title='title' \  extlinuxTest extlinux.1 add/extlinux1.2 --add-kernel=/boot/new-kernel.img \
704      --initrd=/boot/new-initrd --boot-filesystem=/boot      --title='title' --initrd=/boot/new-initrd --boot-filesystem=/boot
705  extlinuxTest extlinux.1 add/extlinux1.3 --add-kernel=/boot/new-kernel.img --title='title' \  extlinuxTest extlinux.1 add/extlinux1.3 --add-kernel=/boot/new-kernel.img \
706      --initrd=/boot/new-initrd --boot-filesystem=/ --copy-default      --title='title' --initrd=/boot/new-initrd --boot-filesystem=/ \
707  extlinuxTest extlinux.1 add/extlinux1.4 --add-kernel=/boot/new-kernel.img --title='title' \      --copy-default
708      --initrd=/boot/new-initrd --boot-filesystem=/boot --copy-default  extlinuxTest extlinux.1 add/extlinux1.4 --add-kernel=/boot/new-kernel.img \
709  extlinuxTest extlinux.2 add/extlinux2.1 --add-kernel=/boot/vmlinuz-3.12.0-2.fc21.i686    \      --title='title' --initrd=/boot/new-initrd --boot-filesystem=/boot \
710      --initrd=/boot/initrd-3.12.0-2.fc21.i686-new.img --boot-filesystem=/boot --copy-default \      --copy-default
711      --title="Fedora (3.12.0-2.fc21.i686) 20 (Heisenbug)"    \  extlinuxTest extlinux.2 add/extlinux2.1 \
712        --add-kernel=/boot/vmlinuz-3.12.0-2.fc21.i686 \
713        --initrd=/boot/initrd-3.12.0-2.fc21.i686-new.img \
714        --boot-filesystem=/boot --copy-default \
715        --title="Fedora (3.12.0-2.fc21.i686) 20 (Heisenbug)" \
716      --remove-kernel="TITLE=Fedora (3.12.0-2.fc21.i686) 20 (Heisenbug)"      --remove-kernel="TITLE=Fedora (3.12.0-2.fc21.i686) 20 (Heisenbug)"
717    extlinuxTest extlinux.5 add/extlinux5.1 \
718        --add-kernel=/boot/vmlinuz-3.15.0-0.rc1.git4.1.fc21.armv7hl \
719        --devtree='/boot/dtb-3.15.0-0.rc1.git4.1.fc21.armv7hl/imx6q-cubox-i.dtb' \
720        --initrd=/boot/initramfs-3.15.0-0.rc1.git4.1.fc21.armv7hl.img \
721        --boot-filesystem=/boot --copy-default \
722        --title="Fedora (3.15.0-0.rc1.git4.1.fc21.armv7hl) 21 (Rawhide)" \
723        --remove-kernel="TITLE=Fedora (3.12.0-0.fc21.armv7hl) 21 (Rawhide)"
724    extlinuxTest extlinux.6 add/extlinux6.1 \
725        --add-kernel=/boot/vmlinuz-3.15.0-0.rc1.git4.1.fc21.armv7hl \
726        --devtreedir='/boot/dtb-3.15.0-0.rc1.git4.1.fc21.armv7hl/' \
727        --initrd=/boot/initramfs-3.15.0-0.rc1.git4.1.fc21.armv7hl.img \
728        --boot-filesystem=/boot --copy-default \
729        --title="Fedora (3.15.0-0.rc1.git4.1.fc21.armv7hl) 21 (Rawhide)" \
730        --remove-kernel="TITLE=Fedora (3.12.0-0.fc21.armv7hl) 21 (Rawhide)"
731    
732  testing="LILO long titles"  testing="LILO long titles"
733  liloTest lilo.1 longtitle/l1.1 --add-kernel=/boot/new-kernel.img \  liloTest lilo.1 longtitle/l1.1 --add-kernel=/boot/new-kernel.img \

Legend:
Removed from v.2693  
changed lines
  Added in v.3030