Magellan Linux

Diff of /trunk/grubby/test.sh

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

revision 2254 by niro, Mon Oct 21 14:00:03 2013 UTC revision 2685 by niro, Wed Jul 16 10:38:09 2014 UTC
# Line 460  if [ "$testgrub2" == "y" ]; then Line 460  if [ "$testgrub2" == "y" ]; then
460      grub2Test grub2.5 add/g2-1.5 --add-kernel=/boot/new-kernel.img \      grub2Test grub2.5 add/g2-1.5 --add-kernel=/boot/new-kernel.img \
461          --title='title' --initrd=/boot/new-initrd --boot-filesystem=/boot/ \          --title='title' --initrd=/boot/new-initrd --boot-filesystem=/boot/ \
462          --copy-default          --copy-default
463        grub2Test grub2.12 add/g2-1.12 \
464            --add-kernel=/boot/vmlinuz-2.6.38.8-32.fc15.x86_64 \
465            --title='Linux, with Fedora 2.6.38.8-32.fc15.x86_64' \
466            --devtree='/boot/dtb-2.6.38.8-32.fc15.x86_64/foobarbaz.dtb' \
467            --initrd=/boot/initramfs-2.6.38.8-32.fc15.x86_64.img \
468            --boot-filesystem=/boot/ --copy-default --efi
469        grub2Test grub2.13 add/g2-1.13 \
470            --add-kernel=/boot/vmlinuz-2.6.38.8-32.fc15.x86_64 \
471            --title='Linux, with Fedora 2.6.38.8-32.fc15.x86_64' \
472            --devtree='/boot/dtb-2.6.38.8-32.fc15.x86_64/foobarbaz.dtb' \
473            --initrd=/boot/initramfs-2.6.38.8-32.fc15.x86_64.img \
474            --boot-filesystem=/boot/ --copy-default --efi
475    
476      testing="GRUB2 add initrd"      testing="GRUB2 add initrd"
477      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 506  if [ "$testgrub2" == "y" ]; then Line 518  if [ "$testgrub2" == "y" ]; then
518          "grub2-editenv test/grub2-support_files/env_temp list" \          "grub2-editenv test/grub2-support_files/env_temp list" \
519          "saved_entry=Linux, with Fedora 2.6.38.8-32.fc15.x86_64"          "saved_entry=Linux, with Fedora 2.6.38.8-32.fc15.x86_64"
520    
521        testing="GRUB2 add kernel with default=saved_entry and a terrible title"
522        grub2Test grub2.7 add/g2-1.9 --env grubenv.1 \
523            --add-kernel=/boot/new-kernel.img \
524            --title='Fedora (3.10.3-300.fc19.x86_64) 19 (Schrödinger’s Cat)' \
525            --initrd=/boot/new-initrd --boot-filesystem=/boot/ \
526            --copy-default
527    
528        testing="GRUB2 set default with default=saved_entry and a terrible name"
529        grub2Test grub2.9 add/g2-1.9 --env grubenv.1 --set-default-index=0
530        commandTest "saved_default output" \
531            "grub2-editenv test/grub2-support_files/env_temp list" \
532            'saved_entry=Fedora (3.10.3-300.fc19.x86_64) 19 (Schrödinger’s Cat)'
533    
534      testing="GRUB2 set default with default=saved_entry"      testing="GRUB2 set default with default=saved_entry"
535      grub2Test grub2.8 add/g2-1.8 --env grubenv.1 --set-default-index=0      grub2Test grub2.8 add/g2-1.8 --env grubenv.1 --set-default-index=0
536      commandTest "saved_default output" \      commandTest "saved_default output" \
# Line 520  if [ "$testgrub2" == "y" ]; then Line 545  if [ "$testgrub2" == "y" ]; then
545    
546      testing="GRUB2 --default-title with default=saved_entry"      testing="GRUB2 --default-title with default=saved_entry"
547      grub2DisplayTest grub2.8 defaulttitle/g2.1 --env grubenv.1 --default-title      grub2DisplayTest grub2.8 defaulttitle/g2.1 --env grubenv.1 --default-title
548    
549        testing="GRUB2 --default-index with default=saved_entry and empty grubenv"
550        grub2DisplayTest grub2.8 defaultindex/0 --env grubenv.0 --default-index
551    
552        testlinux16=n
553        case $ARCH in
554            ia32|x86_64) testlinux16=y ;;
555        esac
556    
557        if [ "$testlinux16" == "y" ]; then
558            testing="GRUB2 add kernel with linux16"
559            grub2Test grub2.10 add/g2-1.10 --add-kernel=/boot/new-kernel.img \
560                --title='title' --initrd=/boot/new-initrd --boot-filesystem=/boot/ \
561                --copy-default
562    
563            testing="GRUB2 add initrd with linux16"
564            grub2Test grub2.11 add/g2-1.11 --update-kernel=/boot/new-kernel.img \
565                --initrd=/boot/new-initrd --boot-filesystem=/boot/
566        fi
567  fi  fi
568    
569  testing="YABOOT add kernel"  testing="YABOOT add kernel"

Legend:
Removed from v.2254  
changed lines
  Added in v.2685