diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2023-03-11 04:54:07 +0700 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2023-03-11 04:54:09 +0700 |
commit | fe90aff55447f1df60910ae2f713d60489814243 (patch) | |
tree | d605e276c521f80565043cce5952344bc80d9791 | |
parent | 1866cd93aaf49090adae5d01b0af24d212603218 (diff) |
tests: use -no-install libtool flag to avoid ./lt-* scripts
This option should be used for any executables which are used only
for testing, or for generating other files and are consequently never
installed. By specifying this option, we are telling Libtool that
the executable it links will only ever be executed from where it is
built in the build tree. Libtool is usually able to considerably
speed up the link process for such executables.
Also take a chance to add the missing $(COVERAGE_LDFLAGS).
Change-Id: I664a9d5abed2777deee302f9d3afd1bbfde7a844
-rw-r--r-- | tests/db_sms/Makefile.am | 5 | ||||
-rw-r--r-- | tests/mncc/Makefile.am | 5 | ||||
-rw-r--r-- | tests/msc_vlr/Makefile.am | 2 | ||||
-rw-r--r-- | tests/sdp_msg/Makefile.am | 5 | ||||
-rw-r--r-- | tests/smpp/Makefile.am | 1 | ||||
-rw-r--r-- | tests/sms_queue/Makefile.am | 6 |
6 files changed, 24 insertions, 0 deletions
diff --git a/tests/db_sms/Makefile.am b/tests/db_sms/Makefile.am index 946d6a280..9dabfe719 100644 --- a/tests/db_sms/Makefile.am +++ b/tests/db_sms/Makefile.am @@ -19,6 +19,11 @@ AM_CFLAGS = \ $(LIBSQLITE3_CFLAGS) \ $(NULL) +AM_LDFLAGS = \ + $(COVERAGE_LDFLAGS) \ + -no-install \ + $(NULL) + EXTRA_DIST = \ db_sms_test.ok \ db_sms_test.err \ diff --git a/tests/mncc/Makefile.am b/tests/mncc/Makefile.am index b836fe37b..a4c296008 100644 --- a/tests/mncc/Makefile.am +++ b/tests/mncc/Makefile.am @@ -9,6 +9,11 @@ AM_CFLAGS = \ $(LIBOSMOCORE_CFLAGS) \ $(NULL) +AM_LDFLAGS = \ + $(COVERAGE_LDFLAGS) \ + -no-install \ + $(NULL) + LDADD = \ $(top_builddir)/src/libmsc/libmsc.a \ $(LIBOSMOCORE_LIBS) \ diff --git a/tests/msc_vlr/Makefile.am b/tests/msc_vlr/Makefile.am index 2ba718085..cbdd6a409 100644 --- a/tests/msc_vlr/Makefile.am +++ b/tests/msc_vlr/Makefile.am @@ -26,6 +26,8 @@ AM_LDFLAGS = \ -Wl,--wrap=osmo_get_rand_id \ -Wl,--wrap=ran_peers_down_paging \ -Wl,--wrap=call_leg_ensure_ci \ + $(COVERAGE_LDFLAGS) \ + -no-install \ $(NULL) LDADD = \ diff --git a/tests/sdp_msg/Makefile.am b/tests/sdp_msg/Makefile.am index a2e5fbc00..f86e5f7a3 100644 --- a/tests/sdp_msg/Makefile.am +++ b/tests/sdp_msg/Makefile.am @@ -9,6 +9,11 @@ AM_CFLAGS = \ $(LIBOSMOCORE_CFLAGS) \ $(NULL) +AM_LDFLAGS = \ + $(COVERAGE_LDFLAGS) \ + -no-install \ + $(NULL) + LDADD = \ $(top_builddir)/src/libmsc/libmsc.a \ $(LIBOSMOCORE_LIBS) \ diff --git a/tests/smpp/Makefile.am b/tests/smpp/Makefile.am index fabfd2da3..ff19d3d7c 100644 --- a/tests/smpp/Makefile.am +++ b/tests/smpp/Makefile.am @@ -19,6 +19,7 @@ AM_CFLAGS = \ AM_LDFLAGS = \ $(COVERAGE_LDFLAGS) \ + -no-install \ $(NULL) EXTRA_DIST = \ diff --git a/tests/sms_queue/Makefile.am b/tests/sms_queue/Makefile.am index d50a8d6db..055a22902 100644 --- a/tests/sms_queue/Makefile.am +++ b/tests/sms_queue/Makefile.am @@ -19,6 +19,11 @@ AM_CFLAGS = \ $(LIBSQLITE3_CFLAGS) \ $(NULL) +AM_LDFLAGS = \ + $(COVERAGE_LDFLAGS) \ + -no-install \ + $(NULL) + EXTRA_DIST = \ sms_queue_test.ok \ sms_queue_test.err \ @@ -51,4 +56,5 @@ sms_queue_test_LDADD = \ sms_queue_test_LDFLAGS = \ -Wl,--wrap=db_sms_get_next_unsent_rr_msisdn \ + $(AM_LDFLAGS) \ $(NULL) |