diff options
author | Evgeny Vereshchagin <evvers@ya.ru> | 2016-07-04 03:45:58 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-04 03:45:58 +0300 |
commit | 92d5a606ea20905aed84f71ab6d76799138dc06b (patch) | |
tree | 1621eceec3935d7f31ccd69579f94fb97e573287 | |
parent | b1e67dfe31c6911820eac753f6461e1c9a00f26c (diff) | |
parent | 11ea3431265f4b20e18997e5b27187ab4db77e87 (diff) |
Merge pull request #3650 from fsateler/shared-basic-fallout
fix fallout from libsystemd-shared
-rw-r--r-- | Makefile.am | 4 | ||||
-rw-r--r-- | test/test-functions | 9 |
2 files changed, 9 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am index 0ec407520b..f71ce848ee 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4861,7 +4861,7 @@ test_keymap_util_SOURCES = \ src/locale/keymap-util.h test_keymap_util_LDADD = \ - libshared.la \ + libsystemd-shared.la \ -ldl tests += \ @@ -6417,7 +6417,7 @@ install-tree: all .PHONY: valgrind-tests valgrind-tests: $(TESTS) $(AM_V_GEN)for f in $(filter-out %.pl %.py, $^); do \ - if file $$f | grep -q shell; then \ + if $(LIBTOOL) --mode=execute file $$f | grep -q shell; then \ echo -e "$${x}Skipping non-binary $$f"; else \ echo -e "$${x}Running $$f"; \ $(LIBTOOL) --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \ diff --git a/test/test-functions b/test/test-functions index 4583c02f97..567a000b8d 100644 --- a/test/test-functions +++ b/test/test-functions @@ -275,10 +275,15 @@ install_systemd() { echo LogLevel=debug >> $initdir/etc/systemd/system.conf } +get_ldpath() { + local _bin="$1" + objdump -p "$_bin" 2>/dev/null | awk "/R(UN)?PATH/ { print \"$initdir\" \$2 }" | paste -sd : +} + install_missing_libraries() { # install possible missing libraries - for i in $initdir/{sbin,bin}/* $initdir/lib/systemd/*; do - inst_libs $i + for i in $initdir{,/usr}/{sbin,bin}/* $initdir{,/usr}/lib/systemd/*; do + LD_LIBRARY_PATH=$(get_ldpath $i) inst_libs $i done } |