Symlink libreaddir-rand.so into tests directory

This means it can be LD_PRELOADed during build-time testing.

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

Closes: #232
Approved by: cgwalters
This commit is contained in:
Simon McVittie 2016-03-28 13:46:23 +01:00 committed by Colin Walters (automation)
parent 3e3755c497
commit f8bef792cb
3 changed files with 8 additions and 0 deletions

1
.gitignore vendored
View File

@ -70,6 +70,7 @@ _build
/test-remote-add.test
/test-setuid.test
/test-xattrs.test
/tests/libreaddir-rand.so
test-varint
test*.test
*.trs

View File

@ -49,3 +49,6 @@ GITIGNOREFILES =
# This is a special facility to chain together hooks easily
INSTALL_DATA_HOOKS =
install-data-hook: $(INSTALL_DATA_HOOKS)
ALL_LOCAL_RULES =
all-local: $(ALL_LOCAL_RULES)

View File

@ -216,6 +216,10 @@ EXTRA_DIST += \
tests/gpg-verify-data/trustdb.gpg \
tests/gpg-verify-data/gpg.conf
tests-libreaddir-rand-so-symlink:
ln -fns ../.libs/libreaddir-rand.so tests
ALL_LOCAL_RULES += tests-libreaddir-rand-so-symlink
# Unfortunately the glib test data APIs don't actually handle
# non-recursive Automake, so we change our code to canonically look
# for tests/ which is just a symlink when installed.