From 26d7cfc736224403c4cb9f6f0a91aaa78020f80c Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Mon, 4 Jun 2012 22:18:31 +0200 Subject: Link test against a static lib to clean up lcov reporting If specifying the sources in src/ directly for each test, lcov generates reports for tests itself. That's fairly useless, as the ASSERT_* branches in the tests should (hopefully) never be taken. --- test/Makefile.am | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/test/Makefile.am b/test/Makefile.am index a790ba2..26dd867 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -18,12 +18,16 @@ libgtest_a_CXXFLAGS = \ test_gactionmuxer_SOURCES = \ - test-gactionmuxer.cpp \ - $(top_srcdir)/src/gactionmuxer.c \ - $(top_srcdir)/src/gactionmuxer.h + test-gactionmuxer.cpp -test_gactionmuxer_CPPFLAGS = $(APPLET_CFLAGS) $(AM_CPPFLAGS) -test_gactionmuxer_LDADD = $(APPLET_LIBS) libgtest.a +test_gactionmuxer_CPPFLAGS = \ + $(APPLET_CFLAGS) \ + $(AM_CPPFLAGS) + +test_gactionmuxer_LDADD = \ + $(APPLET_LIBS) \ + libindicator-messages-service.la \ + libgtest.a ###################################### @@ -41,7 +45,6 @@ libindicator_messages_service_la_HEADERS = \ $(top_srcdir)/src/gactionmuxer.h libindicator_messages_service_la_SOURCES = \ - $(top_srcdir)/src/messages-service.c \ $(top_srcdir)/src/messages-service-dbus.c \ $(top_srcdir)/src/gen-messages-service.xml.c \ $(top_srcdir)/src/app-section.c \ -- cgit v1.2.3