| empty="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 1 |
| non_empty="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 1 |
| . "@builddir@/grub-core/modinfo.sh" |
| if [ x"${grub_modinfo_platform}" = xemu ]; then |
| grub_empty="(host)$empty" |
| grub_non_empty="(host)$non_empty" |
| grub_dir="(host)${TMPDIR:-/tmp}" |
| grub_non_empty="/boot/non_empty" |
| outfile="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 1 |
| @builddir@/grub-shell --files=$grub_empty=$empty --files=$grub_non_empty=$non_empty>$outfile <<EOF |
| if ! test -f $grub_empty; then |
| if ! test -e $grub_empty; then |
| if test -d $grub_empty; then |
| if ! test -d $grub_dir; then |
| if test -s $grub_empty; then |
| if ! test -s $grub_non_empty; then |
| if test -f $grub_empty -a foo = bar; then |
| if test -e $grub_empty -a foo = bar; then |
| if test -s $grub_non_empty -a foo = bar; then |
| if test -d $grub_dir -a foo = bar; then |
| rm -f "$empty" "$non_empty" |
| if grep FAIL "$outfile" > /dev/null 2>&1; then |
| echo "GRUB test command file tests failed." |