Magellan Linux

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

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

revision 2255 by niro, Mon Oct 21 14:00:38 2013 UTC revision 2687 by niro, Wed Jul 16 10:41:38 2014 UTC
# Line 443  if [ "$testgrub2" == "y" ]; then Line 443  if [ "$testgrub2" == "y" ]; then
443      grub2Test grub2.1 add/g2-1.1 --add-kernel=/boot/new-kernel.img \      grub2Test grub2.1 add/g2-1.1 --add-kernel=/boot/new-kernel.img \
444          --title='title' --initrd=/boot/new-initrd --boot-filesystem=/boot/ \          --title='title' --initrd=/boot/new-initrd --boot-filesystem=/boot/ \
445          --copy-default          --copy-default
446      grub2Test grub2.1 add/g2-1.6 --add-kernel=/boot/new-kernel.img \      case $ARCH in
447          --title='title' --initrd=/boot/new-initrd --boot-filesystem=/boot/ \          aarch64)
448          --copy-default --efi              grub2Test grub2.1 add/g2-1.1 --add-kernel=/boot/new-kernel.img \
449                    --title='title' \
450                    --initrd=/boot/new-initrd --boot-filesystem=/boot/ \
451                    --copy-default --efi
452                ;;
453            *)
454                grub2Test grub2.1 add/g2-1.6 --add-kernel=/boot/new-kernel.img \
455                    --title='title' \
456                    --initrd=/boot/new-initrd --boot-filesystem=/boot/ \
457                    --copy-default --efi
458                ;;
459        esac
460      grub2Test grub2.6 add/g2-1.7 --add-kernel=/boot/new-kernel.img \      grub2Test grub2.6 add/g2-1.7 --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 --efi          --copy-default --efi
# Line 460  if [ "$testgrub2" == "y" ]; then Line 471  if [ "$testgrub2" == "y" ]; then
471      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 \
472          --title='title' --initrd=/boot/new-initrd --boot-filesystem=/boot/ \          --title='title' --initrd=/boot/new-initrd --boot-filesystem=/boot/ \
473          --copy-default          --copy-default
474        grub2Test grub2.12 add/g2-1.12 \
475            --add-kernel=/boot/vmlinuz-2.6.38.8-32.fc15.x86_64 \
476            --title='Linux, with Fedora 2.6.38.8-32.fc15.x86_64' \
477            --devtree='/boot/dtb-2.6.38.8-32.fc15.x86_64/foobarbaz.dtb' \
478            --initrd=/boot/initramfs-2.6.38.8-32.fc15.x86_64.img \
479            --boot-filesystem=/boot/ --copy-default --efi
480        grub2Test grub2.13 add/g2-1.13 \
481            --add-kernel=/boot/vmlinuz-2.6.38.8-32.fc15.x86_64 \
482            --title='Linux, with Fedora 2.6.38.8-32.fc15.x86_64' \
483            --devtree='/boot/dtb-2.6.38.8-32.fc15.x86_64/foobarbaz.dtb' \
484            --initrd=/boot/initramfs-2.6.38.8-32.fc15.x86_64.img \
485            --boot-filesystem=/boot/ --copy-default --efi
486    
487      testing="GRUB2 add initrd"      testing="GRUB2 add initrd"
488      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 529  if [ "$testgrub2" == "y" ]; then
529          "grub2-editenv test/grub2-support_files/env_temp list" \          "grub2-editenv test/grub2-support_files/env_temp list" \
530          "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"
531    
532        testing="GRUB2 add kernel with default=saved_entry and a terrible title"
533        grub2Test grub2.7 add/g2-1.9 --env grubenv.1 \
534            --add-kernel=/boot/new-kernel.img \
535            --title='Fedora (3.10.3-300.fc19.x86_64) 19 (Schrödinger’s Cat)' \
536            --initrd=/boot/new-initrd --boot-filesystem=/boot/ \
537            --copy-default
538    
539        testing="GRUB2 set default with default=saved_entry and a terrible name"
540        grub2Test grub2.9 add/g2-1.9 --env grubenv.1 --set-default-index=0
541        commandTest "saved_default output" \
542            "grub2-editenv test/grub2-support_files/env_temp list" \
543            'saved_entry=Fedora (3.10.3-300.fc19.x86_64) 19 (Schrödinger’s Cat)'
544    
545      testing="GRUB2 set default with default=saved_entry"      testing="GRUB2 set default with default=saved_entry"
546      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
547      commandTest "saved_default output" \      commandTest "saved_default output" \
# Line 523  if [ "$testgrub2" == "y" ]; then Line 559  if [ "$testgrub2" == "y" ]; then
559    
560      testing="GRUB2 --default-index with default=saved_entry and empty grubenv"      testing="GRUB2 --default-index with default=saved_entry and empty grubenv"
561      grub2DisplayTest grub2.8 defaultindex/0 --env grubenv.0 --default-index      grub2DisplayTest grub2.8 defaultindex/0 --env grubenv.0 --default-index
562    
563        testlinux16=n
564        case $ARCH in
565            ia32|x86_64) testlinux16=y ;;
566        esac
567    
568        if [ "$testlinux16" == "y" ]; then
569            testing="GRUB2 add kernel with linux16"
570            grub2Test grub2.10 add/g2-1.10 --add-kernel=/boot/new-kernel.img \
571                --title='title' --initrd=/boot/new-initrd --boot-filesystem=/boot/ \
572                --copy-default
573    
574            testing="GRUB2 add initrd with linux16"
575            grub2Test grub2.11 add/g2-1.11 --update-kernel=/boot/new-kernel.img \
576                --initrd=/boot/new-initrd --boot-filesystem=/boot/
577        fi
578  fi  fi
579    
580  testing="YABOOT add kernel"  testing="YABOOT add kernel"

Legend:
Removed from v.2255  
changed lines
  Added in v.2687