mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-24 11:44:48 +00: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).
This commit is contained in:
parent
640fbec855
commit
680b3d1037
|
@ -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…
Reference in a new issue