Magellan Linux

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

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

trunk/grubby/test.sh revision 2994 by niro, Thu Jun 30 10:37:25 2016 UTC tags/grubby-8_40_20170627/test.sh revision 3032 by niro, Tue Jun 27 14:52:25 2017 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 485  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 543  if [ "$testgrub2" == "y" ]; then Line 561  if [ "$testgrub2" == "y" ]; then
561          --copy-default --title "Fedora 21 Rescue" --args=root=/fooooo \          --copy-default --title "Fedora 21 Rescue" --args=root=/fooooo \
562          --remove-kernel=wtf --boot-filesystem=/boot/ --efi          --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 \
590          --initrd=/boot/new-initrd --boot-filesystem=/boot/          --initrd=/boot/new-initrd --boot-filesystem=/boot/

Legend:
Removed from v.2994  
changed lines
  Added in v.3032