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[@]}" |& 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[@]}" |& diff -U30 "$cfg" - |
92 |
echo |
echo |
93 |
fi |
fi |
94 |
else |
else |
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[@]}" |& diff -U30 "$correct" - |
100 |
echo |
echo |
101 |
fi |
fi |
102 |
} |
} |
384 |
grub2DisplayTest grub2.2 defaulttitle/g2.2 --default-title |
grub2DisplayTest grub2.2 defaulttitle/g2.2 --default-title |
385 |
|
|
386 |
testing="GRUB2 display debug failure" |
testing="GRUB2 display debug failure" |
387 |
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 |
388 |
testing="GRUB2 display debug success" |
testing="GRUB2 display debug success" |
389 |
grub2DisplayTest grub2.1 debug/g2.1.2 --default-kernel --debug |
grub2DisplayTest grub2.1 debug/g2.1.2 --boot-filesystem=/boot --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 \ |