summaryrefslogtreecommitdiffstats
path: root/tests/syslinux_test.in
blob: 4ea86390e0a320ed9afdf77ecc42e4d328e17e28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!@BUILD_SHEBANG@

set -e

outfile="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 1

"@builddir@/grub-syslinux2cfg" -r "@abs_top_srcdir@/tests/syslinux/ubuntu10.04" "@abs_top_srcdir@/tests/syslinux/ubuntu10.04/isolinux/isolinux.cfg" -o "$outfile"

echo "$outfile"

if ! diff -u "$outfile" "@builddir@/tests/syslinux/ubuntu10.04_grub.cfg"; then
  echo "Mismatch in ubuntu10.04"
  exit 1;
fi

exit 0