mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 17:30:09 +01:00
tests: try to resolve the .so file symbols
At some point, linker on ppc64le would throw away useful symbols along with the
garbage: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1c9177d9a5c3e06d3344347c8068acfb7d8ecc8b
Add a post-build check so that the distributors running broken binutils
would catch this early and fix their toolchain (or disable the garbage
collecting at the expense of larger and slower binaries).
(cherry picked from commit 680b3d1037)
This commit is contained in:
parent
633344bf27
commit
aa0ebcc324
9 changed files with 18 additions and 0 deletions
|
|
@ -40,6 +40,7 @@ if ENABLE_TESTS
|
|||
|
||||
check-local:
|
||||
$(top_srcdir)/tools/check-exports.sh $(builddir)/.libs/libnm-device-plugin-adsl.so $(SYMBOL_VIS_FILE)
|
||||
LD_BIND_NOW=1 LD_PRELOAD=$(builddir)/.libs/libnm-device-plugin-adsl.so $(top_builddir)/src/NetworkManager --version >/dev/null
|
||||
|
||||
endif
|
||||
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@ if ENABLE_TESTS
|
|||
|
||||
check-local:
|
||||
$(top_srcdir)/tools/check-exports.sh $(builddir)/.libs/libnm-device-plugin-bluetooth.so $(SYMBOL_VIS_FILE)
|
||||
LD_BIND_NOW=1 LD_PRELOAD=$(builddir)/.libs/libnm-device-plugin-bluetooth.so $(top_builddir)/src/NetworkManager --version >/dev/null
|
||||
|
||||
endif
|
||||
|
||||
|
|
|
|||
|
|
@ -49,6 +49,7 @@ if ENABLE_TESTS
|
|||
|
||||
check-local:
|
||||
$(top_srcdir)/tools/check-exports.sh $(builddir)/.libs/libnm-device-plugin-team.so $(SYMBOL_VIS_FILE)
|
||||
LD_BIND_NOW=1 LD_PRELOAD=$(builddir)/.libs/libnm-device-plugin-team.so $(top_builddir)/src/NetworkManager --version >/dev/null
|
||||
|
||||
endif
|
||||
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ if ENABLE_TESTS
|
|||
|
||||
check-local:
|
||||
$(top_srcdir)/tools/check-exports.sh $(builddir)/.libs/libnm-device-plugin-wifi.so $(SYMBOL_VIS_FILE)
|
||||
LD_BIND_NOW=1 LD_PRELOAD=$(builddir)/.libs/libnm-device-plugin-wifi.so $(top_builddir)/src/NetworkManager --version >/dev/null
|
||||
|
||||
endif
|
||||
|
||||
|
|
|
|||
|
|
@ -88,7 +88,9 @@ if ENABLE_TESTS
|
|||
|
||||
check-local:
|
||||
$(top_srcdir)/tools/check-exports.sh $(builddir)/.libs/libnm-device-plugin-wwan.so $(SYMBOL_VIS_FILE)
|
||||
LD_BIND_NOW=1 LD_PRELOAD=$(builddir)/.libs/libnm-device-plugin-wwan.so $(top_builddir)/src/NetworkManager --version >/dev/null
|
||||
$(top_srcdir)/tools/check-exports.sh $(builddir)/.libs/libnm-wwan.so $(WWAN_SYMBOL_VIS_FILE)
|
||||
LD_BIND_NOW=1 LD_PRELOAD=$(builddir)/.libs/libnm-wwan.so $(top_builddir)/src/NetworkManager --version >/dev/null
|
||||
|
||||
endif
|
||||
|
||||
|
|
|
|||
|
|
@ -34,6 +34,9 @@ test_ibft_LDADD = \
|
|||
@VALGRIND_RULES@
|
||||
TESTS = test-ibft
|
||||
|
||||
check-local:
|
||||
LD_BIND_NOW=1 LD_PRELOAD=$(builddir)/../.libs/libnm-settings-plugin-ibft.so $(top_builddir)/src/NetworkManager --version >/dev/null
|
||||
|
||||
endif
|
||||
|
||||
EXTRA_DIST = \
|
||||
|
|
|
|||
|
|
@ -49,5 +49,8 @@ test_ifcfg_rh_utils_LDADD = \
|
|||
@VALGRIND_RULES@
|
||||
TESTS = test-ifcfg-rh-utils test-ifcfg-rh
|
||||
|
||||
check-local:
|
||||
LD_BIND_NOW=1 LD_PRELOAD=$(builddir)/../.libs/libnm-settings-plugin-ifcfg-rh.so $(top_builddir)/src/NetworkManager --version >/dev/null
|
||||
|
||||
endif
|
||||
|
||||
|
|
|
|||
|
|
@ -37,6 +37,9 @@ test_ifnet_LDADD = $(top_builddir)/src/libNetworkManager.la
|
|||
@VALGRIND_RULES@
|
||||
TESTS = test-ifnet
|
||||
|
||||
check-local:
|
||||
LD_BIND_NOW=1 LD_PRELOAD=$(builddir)/../.libs/libnm-settings-plugin-ifnet.so $(top_builddir)/src/NetworkManager --version >/dev/null
|
||||
|
||||
endif
|
||||
|
||||
EXTRA_DIST = \
|
||||
|
|
|
|||
|
|
@ -26,6 +26,9 @@ test_ifupdown_LDADD = \
|
|||
@VALGRIND_RULES@
|
||||
TESTS = test-ifupdown
|
||||
|
||||
check-local:
|
||||
LD_BIND_NOW=1 LD_PRELOAD=$(builddir)/../.libs/libnm-settings-plugin-ifupdown.so $(top_builddir)/src/NetworkManager --version >/dev/null
|
||||
|
||||
endif
|
||||
|
||||
EXTRA_DIST = \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue