Magellan Linux

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

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

revision 3003 by niro, Tue Jun 27 14:14:00 2017 UTC revision 3028 by niro, Tue Jun 27 14:46:21 2017 UTC
# Line 320  testing="Z/IPL display default title" Line 320  testing="Z/IPL display default title"
320  ziplDisplayTest zipl.1 defaulttitle/z.1 --default-title  ziplDisplayTest zipl.1 defaulttitle/z.1 --default-title
321  testing="Z/IPL display default kernel"  testing="Z/IPL display default kernel"
322  ziplDisplayTest zipl.1 defaultkernel/z.1 --default-kernel  ziplDisplayTest zipl.1 defaultkernel/z.1 --default-kernel
323    testing="Z/IPL display entry information"
324    ziplDisplayTest zipl.2 info/z2.1 --info=1
325    
326  testing="GRUB fallback directive"  testing="GRUB fallback directive"
327  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 485  grubTest grub.8 add/g8.2 --add-kernel=/b Line 487  grubTest grub.8 add/g8.2 --add-kernel=/b
487  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' \
488      --initrd=/boot/new-initrd --boot-filesystem=/boot --copy-default \      --initrd=/boot/new-initrd --boot-filesystem=/boot --copy-default \
489      --args='console=tty0 console=ttyS1,9600n81 single'      --args='console=tty0 console=ttyS1,9600n81 single'
490    grubTest grub.1 add/g1.1 --add-kernel=/boot/new-kernel.img --title='title' \
491        --initrd=/boot/new-initrd --boot-filesystem=/ --set-index 0
492    grubTest grub.1 add/g1.17 --add-kernel=/boot/new-kernel.img --title='title' \
493        --initrd=/boot/new-initrd --boot-filesystem=/ --set-index 1
494    grubTest grub.1 add/g1.17 --add-kernel=/boot/new-kernel.img --title='title' \
495        --initrd=/boot/new-initrd --boot-filesystem=/ --set-index 2
496    grubTest grub.15 add/g1.10 --add-kernel=/boot/new-kernel.img --title='title' \
497        --initrd=/boot/new-initrd --boot-filesystem=/ --set-index 0
498    grubTest grub.15 add/g1.8 --add-kernel=/boot/new-kernel.img --title='title' \
499        --initrd=/boot/new-initrd --boot-filesystem=/ --set-index 1
500    grubTest grub.15 add/g1.9 --add-kernel=/boot/new-kernel.img --title='title' \
501        --initrd=/boot/new-initrd --boot-filesystem=/ --set-index 2
502    grubTest grub.15 add/g1.9 --add-kernel=/boot/new-kernel.img --title='title' \
503        --initrd=/boot/new-initrd --boot-filesystem=/ --set-index 5
504    
505  testgrub2=n  testgrub2=n
506  ARCH=$(uname -m | sed s,i[3456789]86,ia32,)  ARCH=$(uname -m | sed s,i[3456789]86,ia32,)
# Line 551  if [ "$testgrub2" == "y" ]; then Line 567  if [ "$testgrub2" == "y" ]; then
567          --copy-default --title 'Red Hat Enterprise Linux Server' \          --copy-default --title 'Red Hat Enterprise Linux Server' \
568          --args=root=/dev/mapper/foo--          --args=root=/dev/mapper/foo--
569    
570        grub2Test grub2.19 remove/g2.19 --env grubenv.4 \
571            --remove-kernel=/boot/vmlinuz-2.6.38.2-9.fc15.x86_64 \
572            --boot-filesystem=/boot/
573        commandTest "saved_default output" \
574            "grub2-editenv test/grub2-support_files/env_temp list" \
575            "saved_entry=Linux, with Fedora 2.6.38.8-32.fc15.x86_64"
576    
577        # copy a stanza and add arguments as well, while using --set-index=
578        testing="GRUB2 add stanza and new args with --set-index="
579        grub2Test grub2.18 add/g2-1.18  --env grubenv.3 \
580            --add-kernel=/boot/vmlinuz-3.10.0-327.22.2.el7.x86_64.debug \
581            --boot-filesystem=/boot --copy-default \
582            --title "Red Hat Enterprise Linux Server (3.10.0-327.22.2.el7.x86_64.debug) 7.2 (Maipo) with debugging" \
583            --args="root=/dev/mapper/rhel_team--area--222-root systemd.log_level=debug systemd.log_target=kmsg" \
584            --set-index=1
585    
586      testing="GRUB2 add initrd"      testing="GRUB2 add initrd"
587      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 \
588          --initrd=/boot/new-initrd --boot-filesystem=/boot/          --initrd=/boot/new-initrd --boot-filesystem=/boot/

Legend:
Removed from v.3003  
changed lines
  Added in v.3028