Magellan Linux

Diff of /trunk/grubby/test.sh

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

revision 1858 by niro, Mon Jul 2 13:14:43 2012 UTC revision 1861 by niro, Mon Jul 2 13:18:33 2012 UTC
# Line 134  fi Line 134  fi
134    
135  testing="Parse/write comparison"  testing="Parse/write comparison"
136  for n in test/*.[0-9]*; do  for n in test/*.[0-9]*; do
137        [ -d $n ] && continue
138      n=${n#*/} # remove test/      n=${n#*/} # remove test/
139      b=${n%.*} # remove suffix      b=${n%.*} # remove suffix
140      [[ $b == $opt_bootloader ]] || continue      [[ $b == $opt_bootloader ]] || continue
# Line 208  grubTest grub.4 default/g4.1 --boot-file Line 209  grubTest grub.4 default/g4.1 --boot-file
209  grubTest grub.4 default/g4.2 --boot-filesystem=/ --set-default=/boot/vmlinuz-2.4.7-ac3 --remove-kernel /boot/vmlinuz-2.4.7-2.5 --add-kernel=/boot/new-kernel --copy-default --title New_Title  grubTest grub.4 default/g4.2 --boot-filesystem=/ --set-default=/boot/vmlinuz-2.4.7-ac3 --remove-kernel /boot/vmlinuz-2.4.7-2.5 --add-kernel=/boot/new-kernel --copy-default --title New_Title
210  grubTest grub.6 default/g6.1 --remove-kernel=/boot/vmlinuz-2.4.7-2.9 --boot-filesystem=/  grubTest grub.6 default/g6.1 --remove-kernel=/boot/vmlinuz-2.4.7-2.9 --boot-filesystem=/
211    
212    testing="GRUB default index directive"
213    grubTest grub.13 setdefaultindex/g.13.0 --set-default-index=0
214    grubTest grub.13 setdefaultindex/g.13.1 --set-default-index=1
215    grubTest grub.13 setdefaultindex/g.13.9 --set-default-index=9
216    
217  testing="GRUB display default index"  testing="GRUB display default index"
218  grubDisplayTest grub.1 defaultindex/0 --default-index  grubDisplayTest grub.1 defaultindex/0 --default-index
219  grubDisplayTest grub.2 defaultindex/0 --default-index  grubDisplayTest grub.2 defaultindex/0 --default-index
# Line 310  grubTest grub.11 updargs/g11.2 --boot-fi Line 316  grubTest grub.11 updargs/g11.2 --boot-fi
316      --update-kernel=/vmlinuz-2.4.7-2smp \      --update-kernel=/vmlinuz-2.4.7-2smp \
317      --args "ro root=LABEL=/ single"      --args "ro root=LABEL=/ single"
318    
319    testing="GRUB lba and root information on SuSE systems"
320    GRUBBY_SUSE_RELEASE=test/grub.12-support_files/etc/SuSE-release \
321        GRUBBY_SUSE_GRUB_CONF=test/grub.12-support_files/etc/grub.conf \
322        GRUBBY_GRUB_DEVICE_MAP=test/grub.12-support_files/boot/grub/device.map \
323        grubTest grub.12 info/g12.1 --info=0
324    
325  testing="LILO update kernel argument handling"  testing="LILO update kernel argument handling"
326  liloTest lilo.1 updargs/l1.1 --update-kernel=/boot/vmlinuz-2.4.18-4 \  liloTest lilo.1 updargs/l1.1 --update-kernel=/boot/vmlinuz-2.4.18-4 \
327      --args="root=/dev/md1"      --args="root=/dev/md1"
# Line 407  grub2Test grub2.4 remove/g2-1.2 --remove Line 419  grub2Test grub2.4 remove/g2-1.2 --remove
419  testing="GRUB2 (submenu) remove kernel via title"  testing="GRUB2 (submenu) remove kernel via title"
420  grub2Test grub2.4 remove/g2-1.2 --remove-kernel="TITLE=title2"  grub2Test grub2.4 remove/g2-1.2 --remove-kernel="TITLE=title2"
421    
422    testing="GRUB2 default index directive"
423    grub2Test grub2.1 setdefaultindex/g2.1.0 --set-default-index=0
424    grub2Test grub2.1 setdefaultindex/g2.1.1 --set-default-index=1
425    grub2Test grub2.1 setdefaultindex/g2.1.9 --set-default-index=9
426    
427  testing="YABOOT add kernel"  testing="YABOOT add kernel"
428  yabootTest yaboot.1 add/y1.1 --copy-default --boot-filesystem=/ --add-kernel=/boot/new-kernel  \  yabootTest yaboot.1 add/y1.1 --copy-default --boot-filesystem=/ --add-kernel=/boot/new-kernel  \
429      --title=newtitle      --title=newtitle

Legend:
Removed from v.1858  
changed lines
  Added in v.1861