]>
git.proxmox.com Git - grub2.git/blob - tests/test_sha512sum.in
3 # create a randome file
9 .
"@builddir@/grub-core/modinfo.sh"
11 if [ x
"${grub_modinfo_platform}" = xemu
]; then
12 grub_file
="(host)$file"
14 grub_file
="/boot/grub/file"
19 @builddir@
/grub-shell
--files=/boot
/grub
/file=$file >$outfile1 <<EOF
24 sha512sum
$file >$outfile2
26 SHA1
=`cat $outfile1 | tr -d '\n' | cut -f1 -d\ `
27 SHA2
=`cat $outfile2 | cut -f1 -d\ `
29 if test "$SHA1" = "$SHA2"; then
30 rm -f ${outfile1} ${outfile2}
33 echo "GRUB sha512sum output did not match sha512sum output."
34 echo "See diff -u ${outfile1} ${outfile2}"