]> git.proxmox.com Git - grub2.git/commit
syslinux_test: Fix out-of-tree build handling
authorColin Watson <cjwatson@ubuntu.com>
Sun, 18 Sep 2016 16:26:00 +0000 (17:26 +0100)
committerColin Watson <cjwatson@debian.org>
Mon, 19 Sep 2016 11:15:52 +0000 (12:15 +0100)
commit7dbeb99d027511c2cdf6d607b891424a05174a66
tree35472950a5715492196ba5e6e9658700d4decce4
parent1b43743bae6627577e44e4bd562a97026391a234
syslinux_test: Fix out-of-tree build handling

When doing out-of-tree builds, abs_top_srcdir may well contain ".."
segments, and grub-syslinux2cfg canonicalises its --root argument.  As a
result, the expansion of @abs_top_srcdir@ may not match what
grub-syslinux2cfg produces.

It's somewhat difficult to portably canonicalize a path in shell, and
autoconf/automake don't offer any support for this.  But there's a much
simpler option: copy the test data to a temporary directory and make
substitutions in the expected output file based on that.

Forwarded: http://lists.gnu.org/archive/html/grub-devel/2016-09/msg00013.html
Last-Update: 2016-09-19

Patch-Name: syslinux-test-out-of-tree.patch
Makefile.am
tests/syslinux/ubuntu10.04_grub.cfg.in
tests/syslinux_test.in