74 |
oneDisplayTest() { |
oneDisplayTest() { |
75 |
typeset mode=$1 cfg=test/$2 correct=test/results/$3 |
typeset mode=$1 cfg=test/$2 correct=test/results/$3 |
76 |
shift 3 |
shift 3 |
77 |
|
local BIO="--bad-image-okay" |
78 |
|
if [ "$1" == "--bad-image-bad" ]; then |
79 |
|
BIO="" |
80 |
|
shift |
81 |
|
fi |
82 |
|
|
83 |
echo "$testing ... $mode $cfg $correct" |
echo "$testing ... $mode $cfg $correct" |
84 |
runme=( ./grubby "$mode" --bad-image-okay -c "$cfg" "$@" ) |
runme=( ./grubby "$mode" $BIO -c "$cfg" "$@") |
85 |
if "${runme[@]}" | 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 ------------------------------------------------------------- |
379 |
grub2DisplayTest grub2.1 defaultindex/0 --default-index |
grub2DisplayTest grub2.1 defaultindex/0 --default-index |
380 |
grub2DisplayTest grub2.2 defaultindex/0 --default-index |
grub2DisplayTest grub2.2 defaultindex/0 --default-index |
381 |
|
|
382 |
testing="GRUB display default title" |
testing="GRUB2 display default title" |
383 |
grub2DisplayTest grub2.1 defaulttitle/g2.1 --default-title |
grub2DisplayTest grub2.1 defaulttitle/g2.1 --default-title |
384 |
grub2DisplayTest grub2.2 defaulttitle/g2.2 --default-title |
grub2DisplayTest grub2.2 defaulttitle/g2.2 --default-title |
385 |
|
|
386 |
|
testing="GRUB2 display debug failure" |
387 |
|
grub2DisplayTest grub2.1 debug/g2.1 --bad-image-bad --default-kernel --debug |
388 |
|
testing="GRUB2 display debug success" |
389 |
|
grub2DisplayTest grub2.1 debug/g2.1.2 --default-kernel --debug |
390 |
|
|
391 |
testing="YABOOT add kernel" |
testing="YABOOT add kernel" |
392 |
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 \ |
393 |
--title=newtitle |
--title=newtitle |