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
diff --git a/tests/db_sms/Makefile.am b/tests/db_sms/Makefile.am
index 946d6a2..9dabfe7 100644
--- a/tests/db_sms/Makefile.am
+++ b/tests/db_sms/Makefile.am
@@ -19,6 +19,11 @@
 	$(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 b836fe3..a4c2960 100644
--- a/tests/mncc/Makefile.am
+++ b/tests/mncc/Makefile.am
@@ -9,6 +9,11 @@
 	$(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 2ba7180..cbdd6a4 100644
--- a/tests/msc_vlr/Makefile.am
+++ b/tests/msc_vlr/Makefile.am
@@ -26,6 +26,8 @@
 	-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 a2e5fbc..f86e5f7 100644
--- a/tests/sdp_msg/Makefile.am
+++ b/tests/sdp_msg/Makefile.am
@@ -9,6 +9,11 @@
 	$(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 fabfd2d..ff19d3d 100644
--- a/tests/smpp/Makefile.am
+++ b/tests/smpp/Makefile.am
@@ -19,6 +19,7 @@
 
 AM_LDFLAGS = \
 	$(COVERAGE_LDFLAGS) \
+	-no-install \
 	$(NULL)
 
 EXTRA_DIST = \
diff --git a/tests/sms_queue/Makefile.am b/tests/sms_queue/Makefile.am
index d50a8d6..055a229 100644
--- a/tests/sms_queue/Makefile.am
+++ b/tests/sms_queue/Makefile.am
@@ -19,6 +19,11 @@
 	$(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_LDFLAGS = \
 	-Wl,--wrap=db_sms_get_next_unsent_rr_msisdn \
+	$(AM_LDFLAGS) \
 	$(NULL)