tests: fail the build if symlinking tests/ostree fails

Signed-off-by: Simon McVittie <smcv@debian.org>

Closes: #367
Approved by: cgwalters
This commit is contained in:
Simon McVittie 2016-06-26 13:57:13 +01:00 committed by Atomic Bot
parent ca899ccfd3
commit 0ed9f520da
1 changed files with 2 additions and 1 deletions

View File

@ -245,7 +245,8 @@ ALL_LOCAL_RULES += tests/libreaddir-rand.so
CLEANFILES += tests/libreaddir-rand.so tests/ostree-symlink-stamp tests/ostree
tests/ostree-symlink-stamp: Makefile
@real_bin=`cd $(top_builddir) && ./libtool --mode=execute echo ostree`; \
@set -e; \
real_bin=`cd $(top_builddir) && ./libtool --mode=execute echo ostree`; \
ln -sf "$${real_bin}" tests/ostree; \
touch $@