diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-06-04 22:18:31 +0200 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-06-04 22:18:31 +0200 |
commit | 26d7cfc736224403c4cb9f6f0a91aaa78020f80c (patch) | |
tree | fef0468a9031445f3d3cc3134f995256fa794fdd | |
parent | a804cc56b3632fca85887f588746196950259aa8 (diff) | |
download | ayatana-indicator-messages-26d7cfc736224403c4cb9f6f0a91aaa78020f80c.tar.gz ayatana-indicator-messages-26d7cfc736224403c4cb9f6f0a91aaa78020f80c.tar.bz2 ayatana-indicator-messages-26d7cfc736224403c4cb9f6f0a91aaa78020f80c.zip |
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.
-rw-r--r-- | test/Makefile.am | 15 |
1 files 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 \ |