Magellan Linux

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

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

revision 1737 by niro, Sat Feb 18 01:02:56 2012 UTC revision 1857 by niro, Mon Jul 2 13:14:11 2012 UTC
# Line 81  oneDisplayTest() { Line 81  oneDisplayTest() {
81      fi      fi
82    
83      echo "$testing ... $mode $cfg $correct"      echo "$testing ... $mode $cfg $correct"
84      runme=( ./grubby "$mode" $BIO -c "$cfg" "$@")      runme=( ./grubby "$mode" $BIO -c "$cfg" "$@" )
85      if "${runme[@]}" 2>&1 | cmp "$correct" > /dev/null; then      if "${runme[@]}" 2>&1 | cmp "$correct" > /dev/null; then
86   (( pass++ ))   (( pass++ ))
87   if $opt_verbose; then   if $opt_verbose; then
88      echo -------------------------------------------------------------      echo -------------------------------------------------------------
89      echo -n "PASS: "      echo -n "PASS: "
90      printf "%q " "${runme[@]}"; echo      printf "%q " "${runme[@]}"; echo
91      "${runme[@]}" | diff -U30 "$cfg" -      "${runme[@]}" 2>&1 | diff -U30 "$cfg" -
92      echo      echo
93   fi   fi
94      else      else
# Line 96  oneDisplayTest() { Line 96  oneDisplayTest() {
96   echo -------------------------------------------------------------   echo -------------------------------------------------------------
97   echo -n "FAIL: "   echo -n "FAIL: "
98   printf "%q " "${runme[@]}"; echo   printf "%q " "${runme[@]}"; echo
99   "${runme[@]}" | diff -U30 "$correct" -   "${runme[@]}" 2>&1 | diff -U30 "$correct" -
100   echo   echo
101      fi      fi
102  }  }
# Line 126  while true; do Line 126  while true; do
126  done  done
127    
128  export MALLOC_CHECK_=2  export MALLOC_CHECK_=2
129    export MALLOC_PERTURB_=1
130    
131  testing="Parse/write comparison"  testing="Parse/write comparison"
132  for n in test/*.[0-9]*; do  for n in test/*.[0-9]*; do
# Line 370  grub2Test grub2.1 add/g2-1.3 --add-kerne Line 371  grub2Test grub2.1 add/g2-1.3 --add-kerne
371      --boot-filesystem=/boot/ --copy-default --make-default      --boot-filesystem=/boot/ --copy-default --make-default
372  grub2Test grub2.1 remove/g2-1.4 --remove-kernel=/boot/vmlinuz-2.6.38.2-9.fc15.x86_64 \  grub2Test grub2.1 remove/g2-1.4 --remove-kernel=/boot/vmlinuz-2.6.38.2-9.fc15.x86_64 \
373      --boot-filesystem=/boot/      --boot-filesystem=/boot/
374    grub2Test grub2.5 add/g2-1.5 --add-kernel=/boot/new-kernel.img --title='title' \
375        --initrd=/boot/new-initrd --boot-filesystem=/boot/ --copy-default
376    
377  testing="GRUB2 add initrd"  testing="GRUB2 add initrd"
378  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 384  grub2DisplayTest grub2.1 defaulttitle/g2 Line 387  grub2DisplayTest grub2.1 defaulttitle/g2
387  grub2DisplayTest grub2.2 defaulttitle/g2.2 --default-title  grub2DisplayTest grub2.2 defaulttitle/g2.2 --default-title
388    
389  testing="GRUB2 display debug failure"  testing="GRUB2 display debug failure"
390  grub2DisplayTest grub2.1 debug/g2.1 --bad-image-bad --default-kernel --debug  grub2DisplayTest grub2.1 debug/g2.1 --bad-image-bad --boot-filesystem=/boot --default-kernel --debug
391  testing="GRUB2 display debug success"  testing="GRUB2 display debug success"
392  grub2DisplayTest grub2.1 debug/g2.1.2 --default-kernel --debug  grub2DisplayTest grub2.1 debug/g2.1.2 --boot-filesystem=/boot --default-kernel --debug
393    
394    testing="GRUB2 remove kernel via index"
395    grub2Test grub2.3 remove/g2-1.1 --remove-kernel=1
396    
397    testing="GRUB2 remove kernel via title"
398    grub2Test grub2.3 remove/g2-1.1 --remove-kernel="TITLE=title2"
399    
400    testing="GRUB2 (submenu) remove kernel via index"
401    grub2Test grub2.4 remove/g2-1.2 --remove-kernel=2
402    
403    testing="GRUB2 (submenu) remove kernel via title"
404    grub2Test grub2.4 remove/g2-1.2 --remove-kernel="TITLE=title2"
405    
406  testing="YABOOT add kernel"  testing="YABOOT add kernel"
407  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  \

Legend:
Removed from v.1737  
changed lines
  Added in v.1857