* tests/test_sha512sum.in: Make it work on emu.

This commit is contained in:
Vladimir Serbinenko 2013-11-07 02:41:09 +01:00
parent c03995d297
commit 87a04a2df6
2 changed files with 14 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
* tests/test_sha512sum.in: Make it work on emu.
2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested

View file

@ -6,9 +6,18 @@ cat >$file <<EOF
hello world!
EOF
. "@builddir@/grub-core/modinfo.sh"
if [ x"${grub_modinfo_platform}" = xemu ]; then
grub_file="(host)$file"
else
grub_file="/boot/grub/file"
fi
outfile1=`mktemp`
@builddir@/grub-shell --files=/boot/grub/file=$file >$outfile1 <<EOF
sha512sum /boot/grub/file
sha512sum $grub_file
EOF
outfile2=`mktemp`