]> www.infradead.org Git - mtd-utils.git/commit
Fix unit-test header and file paths for out of tree builds
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Mon, 16 Apr 2018 15:41:52 +0000 (17:41 +0200)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Mon, 16 Apr 2018 15:50:37 +0000 (17:50 +0200)
commit4b315cd9a63e78737d3d856b3bb7ca340b8dec41
treee4ad5dac68672b143a00b9634ba7affbe3efcc21
parent9ea54375c3ed1ba1c4ec8f6ddf80615fcb7fb073
Fix unit-test header and file paths for out of tree builds

If we build mtd-utils outside the source path, we cannot use relative
paths to refere to headers in the source tree. We have to specify
absoulte paths using the top_srcdir variable.

This was done right for the utility binaries, but overlooked for the
unit test porgrams.

This patch fixes the header paths and SYSROOT variable for the unit
tests, so they build and run propperly outside the source tree.

Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
tests/unittests/Makemodule.am