Merge lp:~charlesk/keeper/fix-coverage-report-for-helpers-and-service into lp:keeper

Proposed by Charles Kerr
Status: Merged
Merge reported by: Charles Kerr
Merged at revision: not available
Proposed branch: lp:~charlesk/keeper/fix-coverage-report-for-helpers-and-service
Merge into: lp:keeper
Diff against target: 202 lines (+45/-23)
11 files modified
CMakeLists.txt (+1/-1)
src/helper/CMakeLists.txt (+15/-3)
src/service/CMakeLists.txt (+1/-7)
tests/CMakeLists.txt (+2/-2)
tests/dbusmock/CMakeLists.txt (+10/-0)
tests/integration/CMakeLists.txt (+6/-0)
tests/integration/helpers/CMakeLists.txt (+2/-2)
tests/unit/CMakeLists.txt (+2/-2)
tests/unit/helper/CMakeLists.txt (+2/-2)
tests/unit/metadata-providers/CMakeLists.txt (+2/-2)
tests/unit/tar/CMakeLists.txt (+2/-2)
To merge this branch: bzr merge lp:~charlesk/keeper/fix-coverage-report-for-helpers-and-service
Reviewer Review Type Date Requested Status
Xavi Garcia (community) Approve
Review via email: mp+301594@code.launchpad.net

Commit message

Include all of src/helper/ and of src/service/ are included in the coverage reports

Description of the change

Include all of src/helper/ and src/service/ are included in the coverage reports

To post a comment you must log in.
Revision history for this message
Xavi Garcia (xavi-garcia-mena) wrote :

LGTM, thanks.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CMakeLists.txt'
2--- CMakeLists.txt 2016-07-28 13:52:30 +0000
3+++ CMakeLists.txt 2016-07-31 17:26:28 +0000
4@@ -262,5 +262,5 @@
5 ${CMAKE_SOURCE_DIR}/tests/*
6 ${CMAKE_BINARY_DIR}/*
7 TESTS
8- ${UNIT_TEST_TARGETS}
9+ ${COVERAGE_TEST_TARGETS}
10 )
11
12=== modified file 'src/helper/CMakeLists.txt'
13--- src/helper/CMakeLists.txt 2016-07-22 03:59:19 +0000
14+++ src/helper/CMakeLists.txt 2016-07-31 17:26:28 +0000
15@@ -9,8 +9,13 @@
16 ${BACKUP_HELPER_DEPENDENCIES_INCLUDE_DIRS}
17 )
18
19+set(
20+ HELPER_LIB
21+ backup-helper
22+)
23+
24 add_library(
25- backup-helper
26+ ${HELPER_LIB}
27 STATIC
28 helper.cpp
29 backup-helper.cpp
30@@ -19,13 +24,13 @@
31 )
32
33 set_target_properties(
34- backup-helper
35+ ${HELPER_LIB}
36 PROPERTIES
37 AUTOMOC TRUE
38 )
39
40 target_link_libraries(
41- backup-helper
42+ ${HELPER_LIB}
43 ${BACKUP_HELPER_DEPENDENCIES_LIBRARIES}
44 Qt5::Core
45 Qt5::DBus
46@@ -36,3 +41,10 @@
47 FILES ${CMAKE_SOURCE_DIR}/src/helper/exec-tool
48 DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/ubuntu-app-launch/backup-helper
49 )
50+
51+set(
52+ COVERAGE_REPORT_TARGETS
53+ ${COVERAGE_REPORT_TARGETS}
54+ ${HELPER_LIB}
55+ PARENT_SCOPE
56+)
57
58=== modified file 'src/service/CMakeLists.txt'
59--- src/service/CMakeLists.txt 2016-07-22 04:01:28 +0000
60+++ src/service/CMakeLists.txt 2016-07-31 17:26:28 +0000
61@@ -19,13 +19,6 @@
62 ${SERVICE_LIB_SOURCES}
63 )
64
65-set(
66- COVERAGE_REPORT_TARGETS
67- ${COVERAGE_REPORT_TARGETS}
68- ${SERVICE_LIB}
69- PARENT_SCOPE
70-)
71-
72 set(SERVICE_EXEC_SOURCES
73 main.cpp
74 )
75@@ -60,6 +53,7 @@
76 set(
77 COVERAGE_REPORT_TARGETS
78 ${COVERAGE_REPORT_TARGETS}
79+ ${SERVICE_LIB}
80 ${SERVICE_EXEC}
81 PARENT_SCOPE
82 )
83
84=== modified file 'tests/CMakeLists.txt'
85--- tests/CMakeLists.txt 2016-07-28 14:21:55 +0000
86+++ tests/CMakeLists.txt 2016-07-31 17:26:28 +0000
87@@ -72,7 +72,7 @@
88 add_subdirectory(integration)
89
90 set(
91- UNIT_TEST_TARGETS
92- ${UNIT_TEST_TARGETS}
93+ COVERAGE_TEST_TARGETS
94+ ${COVERAGE_TEST_TARGETS}
95 PARENT_SCOPE
96 )
97
98=== modified file 'tests/dbusmock/CMakeLists.txt'
99--- tests/dbusmock/CMakeLists.txt 2016-07-27 10:13:02 +0000
100+++ tests/dbusmock/CMakeLists.txt 2016-07-31 17:26:28 +0000
101@@ -43,3 +43,13 @@
102 ${TEST_NAME}
103 ${TEST_NAME}
104 )
105+
106+#
107+#
108+#
109+set(
110+ COVERAGE_TEST_TARGETS
111+ ${COVERAGE_TEST_TARGETS}
112+ ${TEST_NAME}
113+ PARENT_SCOPE
114+)
115
116=== modified file 'tests/integration/CMakeLists.txt'
117--- tests/integration/CMakeLists.txt 2016-07-27 10:13:02 +0000
118+++ tests/integration/CMakeLists.txt 2016-07-31 17:26:28 +0000
119@@ -13,3 +13,9 @@
120 )
121
122 add_subdirectory(helpers)
123+
124+set(
125+ COVERAGE_TEST_TARGETS
126+ ${COVERAGE_TEST_TARGETS}
127+ PARENT_SCOPE
128+)
129
130=== modified file 'tests/integration/helpers/CMakeLists.txt'
131--- tests/integration/helpers/CMakeLists.txt 2016-07-27 10:13:02 +0000
132+++ tests/integration/helpers/CMakeLists.txt 2016-07-31 17:26:28 +0000
133@@ -52,8 +52,8 @@
134 )
135
136 set(
137- UNIT_TEST_TARGETS
138- ${UNIT_TEST_TARGETS}
139+ COVERAGE_TEST_TARGETS
140+ ${COVERAGE_TEST_TARGETS}
141 ${HELPERS_TEST}
142 PARENT_SCOPE
143 )
144
145=== modified file 'tests/unit/CMakeLists.txt'
146--- tests/unit/CMakeLists.txt 2016-07-27 10:13:02 +0000
147+++ tests/unit/CMakeLists.txt 2016-07-31 17:26:28 +0000
148@@ -32,7 +32,7 @@
149 add_subdirectory(tar)
150
151 set(
152- UNIT_TEST_TARGETS
153- ${UNIT_TEST_TARGETS}
154+ COVERAGE_TEST_TARGETS
155+ ${COVERAGE_TEST_TARGETS}
156 PARENT_SCOPE
157 )
158
159=== modified file 'tests/unit/helper/CMakeLists.txt'
160--- tests/unit/helper/CMakeLists.txt 2016-07-28 13:52:30 +0000
161+++ tests/unit/helper/CMakeLists.txt 2016-07-31 17:26:28 +0000
162@@ -43,8 +43,8 @@
163 #
164
165 set(
166- UNIT_TEST_TARGETS
167- ${UNIT_TEST_TARGETS}
168+ COVERAGE_TEST_TARGETS
169+ ${COVERAGE_TEST_TARGETS}
170 ${SPEED_TEST}
171 PARENT_SCOPE
172 )
173
174=== modified file 'tests/unit/metadata-providers/CMakeLists.txt'
175--- tests/unit/metadata-providers/CMakeLists.txt 2016-07-22 13:13:05 +0000
176+++ tests/unit/metadata-providers/CMakeLists.txt 2016-07-31 17:26:28 +0000
177@@ -22,8 +22,8 @@
178 )
179
180 set(
181- UNIT_TEST_TARGETS
182- ${UNIT_TEST_TARGETS}
183+ COVERAGE_TEST_TARGETS
184+ ${COVERAGE_TEST_TARGETS}
185 ${TEST_NAME}
186 PARENT_SCOPE
187 )
188
189=== modified file 'tests/unit/tar/CMakeLists.txt'
190--- tests/unit/tar/CMakeLists.txt 2016-07-22 22:45:59 +0000
191+++ tests/unit/tar/CMakeLists.txt 2016-07-31 17:26:28 +0000
192@@ -56,8 +56,8 @@
193 #
194 #
195 set(
196- UNIT_TEST_TARGETS
197- ${UNIT_TEST_TARGETS}
198+ COVERAGE_TEST_TARGETS
199+ ${COVERAGE_TEST_TARGETS}
200 ${TAR_CREATOR_TEST}
201 ${KEEPER_TAR_CREATE_TEST}
202 PARENT_SCOPE

Subscribers

People subscribed via source and target branches

to all changes: