Merge lp:~dobey/pay-service/use-cmake-extras into lp:pay-service
- use-cmake-extras
- Merge into trunk.15.10
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | dobey | ||||
Approved revision: | 54 | ||||
Merged at revision: | 54 | ||||
Proposed branch: | lp:~dobey/pay-service/use-cmake-extras | ||||
Merge into: | lp:pay-service | ||||
Diff against target: |
377 lines (+17/-279) 7 files modified
CMakeLists.txt (+12/-32) cmake/EnableCoverageReport.cmake (+0/-158) cmake/FindLcov.cmake (+0/-35) cmake/Findgcovr.cmake (+0/-43) debian/control (+3/-4) debian/rules (+1/-6) libpay/CMakeLists.txt (+1/-1) |
||||
To merge this branch: | bzr merge lp:~dobey/pay-service/use-cmake-extras | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Charles Kerr (community) | Approve | ||
Review via email: mp+259851@code.launchpad.net |
Commit message
Remove the explicit gcc 4.9 requirement.
Remove the locally included coverage cmake modules.
Use cmake-extras to enable coverage.
Add dependencies for cmake-extras, gcovr, and lcov.
Description of the change
PS Jenkins bot (ps-jenkins) wrote : | # |
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:51
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:53
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://
Charles Kerr (charlesk) wrote : | # |
LGTM.
We should do this with all of our packages.
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:54
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://
Preview Diff
1 | === modified file 'CMakeLists.txt' | |||
2 | --- CMakeLists.txt 2015-05-13 14:17:31 +0000 | |||
3 | +++ CMakeLists.txt 2015-06-16 17:54:00 +0000 | |||
4 | @@ -7,7 +7,6 @@ | |||
5 | 7 | set (PACKAGE ${CMAKE_PROJECT_NAME}) | 7 | set (PACKAGE ${CMAKE_PROJECT_NAME}) |
6 | 8 | 8 | ||
7 | 9 | option (enable_tests "Build the package's automatic tests." ON) | 9 | option (enable_tests "Build the package's automatic tests." ON) |
8 | 10 | option (enable_lcov "Generate lcov code coverage reports." OFF) | ||
9 | 11 | 10 | ||
10 | 12 | if (${enable_tests}) | 11 | if (${enable_tests}) |
11 | 13 | enable_testing () | 12 | enable_testing () |
12 | @@ -63,9 +62,6 @@ | |||
13 | 63 | COMMAND bzr export --root=${ARCHIVE_NAME} ${CMAKE_BINARY_DIR}/${ARCHIVE_NAME}.tar.gz | 62 | COMMAND bzr export --root=${ARCHIVE_NAME} ${CMAKE_BINARY_DIR}/${ARCHIVE_NAME}.tar.gz |
14 | 64 | WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) | 63 | WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) |
15 | 65 | 64 | ||
16 | 66 | add_custom_target (clean-coverage | ||
17 | 67 | COMMAND find ${CMAKE_BINARY_DIR} -name '*.gcda' | xargs rm -f) | ||
18 | 68 | |||
19 | 69 | add_custom_target (cppcheck COMMAND cppcheck --enable=all -q --error-exitcode=2 --inline-suppr | 65 | add_custom_target (cppcheck COMMAND cppcheck --enable=all -q --error-exitcode=2 --inline-suppr |
20 | 70 | ${CMAKE_SOURCE_DIR}/src | 66 | ${CMAKE_SOURCE_DIR}/src |
21 | 71 | ${CMAKE_SOURCE_DIR}/tests) | 67 | ${CMAKE_SOURCE_DIR}/tests) |
22 | @@ -78,20 +74,6 @@ | |||
23 | 78 | set (CXX_WARNING_ARGS " -Wall -Wextra -pedantic -Wno-missing-field-initializers") | 74 | set (CXX_WARNING_ARGS " -Wall -Wextra -pedantic -Wno-missing-field-initializers") |
24 | 79 | 75 | ||
25 | 80 | ## | 76 | ## |
26 | 81 | ## Coverage Flags | ||
27 | 82 | ## | ||
28 | 83 | |||
29 | 84 | if (${enable_tests}) | ||
30 | 85 | if (${enable_lcov}) | ||
31 | 86 | include(EnableCoverageReport) # Using gcov CMake modules from https://code.cor-lab.org/projects/rsc | ||
32 | 87 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage" ) | ||
33 | 88 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --coverage" ) | ||
34 | 89 | set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} --coverage" ) | ||
35 | 90 | set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} --coverage" ) | ||
36 | 91 | endif () | ||
37 | 92 | endif () | ||
38 | 93 | |||
39 | 94 | ## | ||
40 | 95 | ## Subdirectories | 77 | ## Subdirectories |
41 | 96 | ## | 78 | ## |
42 | 97 | 79 | ||
43 | @@ -108,17 +90,15 @@ | |||
44 | 108 | ## | 90 | ## |
45 | 109 | ## Coverage Reports | 91 | ## Coverage Reports |
46 | 110 | ## | 92 | ## |
61 | 111 | 93 | include(EnableCoverageReport) | |
62 | 112 | if (${enable_tests}) | 94 | set(filter-list) |
63 | 113 | if (${enable_lcov}) | 95 | list(APPEND filter-list "/usr/include") |
64 | 114 | set(filter-list) | 96 | list(APPEND filter-list "${CMAKE_SOURCE_DIR}/tests/*") |
65 | 115 | list(APPEND filter-list "/usr/include") | 97 | if (NOT ${CMAKE_BINARY_DIR} STREQUAL ${CMAKE_SOURCE_DIR}) |
66 | 116 | list(APPEND filter-list "${CMAKE_SOURCE_DIR}/tests/*") | 98 | list(APPEND filter-list "${CMAKE_BINARY_DIR}/*") |
67 | 117 | if (NOT ${CMAKE_BINARY_DIR} STREQUAL ${CMAKE_SOURCE_DIR}) | 99 | endif() |
68 | 118 | list(APPEND filter-list "${CMAKE_BINARY_DIR}/*") | 100 | ENABLE_COVERAGE_REPORT( |
69 | 119 | endif() | 101 | TARGETS libpay pay-service-lib pay-service |
70 | 120 | ENABLE_COVERAGE_REPORT(TARGETS pay-service FILTER ${filter-list}) | 102 | TESTS dbus-interface-tests item-memory-tests webclient-curl-tests verification-http-tests purchase-ual-tests libpay-tests |
71 | 121 | endif () | 103 | FILTER ${filter-list} |
72 | 122 | endif () | 104 | ) |
59 | 123 | |||
60 | 124 | |||
73 | 125 | 105 | ||
74 | === removed file 'cmake/EnableCoverageReport.cmake' | |||
75 | --- cmake/EnableCoverageReport.cmake 2014-05-06 14:22:33 +0000 | |||
76 | +++ cmake/EnableCoverageReport.cmake 1970-01-01 00:00:00 +0000 | |||
77 | @@ -1,158 +0,0 @@ | |||
78 | 1 | # - Creates a special coverage build type and target on GCC. | ||
79 | 2 | # | ||
80 | 3 | # Defines a function ENABLE_COVERAGE_REPORT which generates the coverage target | ||
81 | 4 | # for selected targets. Optional arguments to this function are used to filter | ||
82 | 5 | # unwanted results using globbing expressions. Moreover targets with tests for | ||
83 | 6 | # the source code can be specified to trigger regenerating the report if the | ||
84 | 7 | # test has changed | ||
85 | 8 | # | ||
86 | 9 | # ENABLE_COVERAGE_REPORT(TARGETS target... [FILTER filter...] [TESTS test targets...]) | ||
87 | 10 | # | ||
88 | 11 | # To generate a coverage report first build the project with | ||
89 | 12 | # CMAKE_BUILD_TYPE=coverage, then call make test and afterwards make coverage. | ||
90 | 13 | # | ||
91 | 14 | # The coverage report is based on gcov. Depending on the availability of lcov | ||
92 | 15 | # a HTML report will be generated and/or an XML report of gcovr is found. | ||
93 | 16 | # The generated coverage target executes all found solutions. Special targets | ||
94 | 17 | # exist to create e.g. only the xml report: coverage-xml. | ||
95 | 18 | # | ||
96 | 19 | # Copyright (C) 2010 by Johannes Wienke <jwienke at techfak dot uni-bielefeld dot de> | ||
97 | 20 | # | ||
98 | 21 | # This file may be licensed under the terms of the | ||
99 | 22 | # GNU Lesser General Public License Version 3 (the ``LGPL''), | ||
100 | 23 | # or (at your option) any later version. | ||
101 | 24 | # | ||
102 | 25 | # Software distributed under the License is distributed | ||
103 | 26 | # on an ``AS IS'' basis, WITHOUT WARRANTY OF ANY KIND, either | ||
104 | 27 | # express or implied. See the LGPL for the specific language | ||
105 | 28 | # governing rights and limitations. | ||
106 | 29 | # | ||
107 | 30 | # You should have received a copy of the LGPL along with this | ||
108 | 31 | # program. If not, go to http://www.gnu.org/licenses/lgpl.html | ||
109 | 32 | # or write to the Free Software Foundation, Inc., | ||
110 | 33 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
111 | 34 | # | ||
112 | 35 | # The development of this software was supported by: | ||
113 | 36 | # CoR-Lab, Research Institute for Cognition and Robotics | ||
114 | 37 | # Bielefeld University | ||
115 | 38 | |||
116 | 39 | FIND_PACKAGE(Lcov) | ||
117 | 40 | FIND_PACKAGE(gcovr) | ||
118 | 41 | |||
119 | 42 | FUNCTION(ENABLE_COVERAGE_REPORT) | ||
120 | 43 | |||
121 | 44 | # argument parsing | ||
122 | 45 | SET(MULTI_VALUE_ARGS FILTER TARGETS TESTS) | ||
123 | 46 | CMAKE_PARSE_ARGUMENTS(ENABLE_COVERAGE_REPORT "" "" "${MULTI_VALUE_ARGS}" ${ARGN}) | ||
124 | 47 | |||
125 | 48 | SET(COVERAGE_RAW_FILE "${CMAKE_BINARY_DIR}/coverage.raw.info") | ||
126 | 49 | SET(COVERAGE_FILTERED_FILE "${CMAKE_BINARY_DIR}/coverage.info") | ||
127 | 50 | SET(COVERAGE_REPORT_DIR "${CMAKE_BINARY_DIR}/coveragereport") | ||
128 | 51 | SET(COVERAGE_XML_FILE "${CMAKE_BINARY_DIR}/coverage.xml") | ||
129 | 52 | SET(COVERAGE_XML_COMMAND_FILE "${CMAKE_BINARY_DIR}/coverage-xml.cmake") | ||
130 | 53 | |||
131 | 54 | # decide if there is any tool to create coverage data | ||
132 | 55 | SET(TOOL_FOUND FALSE) | ||
133 | 56 | IF(LCOV_FOUND OR GCOVR_FOUND) | ||
134 | 57 | SET(TOOL_FOUND TRUE) | ||
135 | 58 | ENDIF() | ||
136 | 59 | IF(NOT TOOL_FOUND) | ||
137 | 60 | MESSAGE(STATUS "Cannot enable coverage targets because neither lcov nor gcovr are found.") | ||
138 | 61 | ENDIF() | ||
139 | 62 | |||
140 | 63 | STRING(TOLOWER "${CMAKE_BUILD_TYPE}" COVERAGE_BUILD_TYPE) | ||
141 | 64 | IF(CMAKE_COMPILER_IS_GNUCXX AND TOOL_FOUND AND "${COVERAGE_BUILD_TYPE}" MATCHES "coverage") | ||
142 | 65 | |||
143 | 66 | MESSAGE(STATUS "Coverage support enabled for targets: ${ENABLE_COVERAGE_REPORT_TARGETS}") | ||
144 | 67 | |||
145 | 68 | # create coverage build type | ||
146 | 69 | SET(CMAKE_CXX_FLAGS_COVERAGE ${CMAKE_CXX_FLAGS_DEBUG} PARENT_SCOPE) | ||
147 | 70 | SET(CMAKE_C_FLAGS_COVERAGE ${CMAKE_C_FLAGS_DEBUG} PARENT_SCOPE) | ||
148 | 71 | SET(CMAKE_CONFIGURATION_TYPES ${CMAKE_CONFIGURATION_TYPES} coverage PARENT_SCOPE) | ||
149 | 72 | |||
150 | 73 | # instrument targets | ||
151 | 74 | SET_TARGET_PROPERTIES(${ENABLE_COVERAGE_REPORT_TARGETS} PROPERTIES COMPILE_FLAGS --coverage | ||
152 | 75 | LINK_FLAGS --coverage) | ||
153 | 76 | |||
154 | 77 | # html report | ||
155 | 78 | IF (LCOV_FOUND) | ||
156 | 79 | |||
157 | 80 | MESSAGE(STATUS "Enabling HTML coverage report") | ||
158 | 81 | |||
159 | 82 | # set up coverage target | ||
160 | 83 | |||
161 | 84 | ADD_CUSTOM_COMMAND(OUTPUT ${COVERAGE_RAW_FILE} | ||
162 | 85 | COMMAND ${LCOV_EXECUTABLE} -c -d ${CMAKE_BINARY_DIR} -o ${COVERAGE_RAW_FILE} | ||
163 | 86 | WORKING_DIRECTORY ${CMAKE_BINARY_DIR} | ||
164 | 87 | COMMENT "Collecting coverage data" | ||
165 | 88 | DEPENDS ${ENABLE_COVERAGE_REPORT_TARGETS} ${ENABLE_COVERAGE_REPORT_TESTS} | ||
166 | 89 | VERBATIM) | ||
167 | 90 | |||
168 | 91 | # filter unwanted stuff | ||
169 | 92 | LIST(LENGTH ENABLE_COVERAGE_REPORT_FILTER FILTER_LENGTH) | ||
170 | 93 | IF(${FILTER_LENGTH} GREATER 0) | ||
171 | 94 | SET(FILTER COMMAND ${LCOV_EXECUTABLE}) | ||
172 | 95 | FOREACH(F ${ENABLE_COVERAGE_REPORT_FILTER}) | ||
173 | 96 | SET(FILTER ${FILTER} -r ${COVERAGE_FILTERED_FILE} ${F}) | ||
174 | 97 | ENDFOREACH() | ||
175 | 98 | SET(FILTER ${FILTER} -o ${COVERAGE_FILTERED_FILE}) | ||
176 | 99 | ELSE() | ||
177 | 100 | SET(FILTER "") | ||
178 | 101 | ENDIF() | ||
179 | 102 | |||
180 | 103 | ADD_CUSTOM_COMMAND(OUTPUT ${COVERAGE_FILTERED_FILE} | ||
181 | 104 | COMMAND ${LCOV_EXECUTABLE} -e ${COVERAGE_RAW_FILE} "${CMAKE_SOURCE_DIR}*" -o ${COVERAGE_FILTERED_FILE} | ||
182 | 105 | ${FILTER} | ||
183 | 106 | DEPENDS ${COVERAGE_RAW_FILE} | ||
184 | 107 | COMMENT "Filtering recorded coverage data for project-relevant entries" | ||
185 | 108 | VERBATIM) | ||
186 | 109 | ADD_CUSTOM_COMMAND(OUTPUT ${COVERAGE_REPORT_DIR} | ||
187 | 110 | COMMAND ${CMAKE_COMMAND} -E make_directory ${COVERAGE_REPORT_DIR} | ||
188 | 111 | COMMAND ${GENHTML_EXECUTABLE} --legend --show-details -t "${PROJECT_NAME} test coverage" -o ${COVERAGE_REPORT_DIR} ${COVERAGE_FILTERED_FILE} | ||
189 | 112 | DEPENDS ${COVERAGE_FILTERED_FILE} | ||
190 | 113 | COMMENT "Generating HTML coverage report in ${COVERAGE_REPORT_DIR}" | ||
191 | 114 | VERBATIM) | ||
192 | 115 | |||
193 | 116 | ADD_CUSTOM_TARGET(coverage-html | ||
194 | 117 | DEPENDS ${COVERAGE_REPORT_DIR}) | ||
195 | 118 | |||
196 | 119 | ENDIF() | ||
197 | 120 | |||
198 | 121 | # xml coverage report | ||
199 | 122 | IF(GCOVR_FOUND) | ||
200 | 123 | |||
201 | 124 | MESSAGE(STATUS "Enabling XML coverage report") | ||
202 | 125 | |||
203 | 126 | # gcovr cannot write directly to a file so the execution needs to | ||
204 | 127 | # be wrapped in a cmake file that generates the file output | ||
205 | 128 | FILE(WRITE ${COVERAGE_XML_COMMAND_FILE} | ||
206 | 129 | "SET(ENV{LANG} en)\n") | ||
207 | 130 | FILE(APPEND ${COVERAGE_XML_COMMAND_FILE} | ||
208 | 131 | "EXECUTE_PROCESS(COMMAND \"${GCOVR_EXECUTABLE}\" -x -r \"${CMAKE_SOURCE_DIR}\" OUTPUT_FILE \"${COVERAGE_XML_FILE}\" WORKING_DIRECTORY \"${CMAKE_BINARY_DIR}\")\n") | ||
209 | 132 | |||
210 | 133 | ADD_CUSTOM_COMMAND(OUTPUT ${COVERAGE_XML_FILE} | ||
211 | 134 | COMMAND ${CMAKE_COMMAND} ARGS -P ${COVERAGE_XML_COMMAND_FILE} | ||
212 | 135 | COMMENT "Generating coverage XML report" | ||
213 | 136 | VERBATIM) | ||
214 | 137 | |||
215 | 138 | ADD_CUSTOM_TARGET(coverage-xml | ||
216 | 139 | DEPENDS ${COVERAGE_XML_FILE}) | ||
217 | 140 | |||
218 | 141 | ENDIF() | ||
219 | 142 | |||
220 | 143 | # provide a global coverage target executing both steps if available | ||
221 | 144 | SET(GLOBAL_DEPENDS "") | ||
222 | 145 | IF(LCOV_FOUND) | ||
223 | 146 | LIST(APPEND GLOBAL_DEPENDS ${COVERAGE_REPORT_DIR}) | ||
224 | 147 | ENDIF() | ||
225 | 148 | IF(GCOVR_FOUND) | ||
226 | 149 | LIST(APPEND GLOBAL_DEPENDS ${COVERAGE_XML_FILE}) | ||
227 | 150 | ENDIF() | ||
228 | 151 | IF(LCOV_FOUND OR GCOVR_FOUND) | ||
229 | 152 | ADD_CUSTOM_TARGET(coverage | ||
230 | 153 | DEPENDS ${GLOBAL_DEPENDS}) | ||
231 | 154 | ENDIF() | ||
232 | 155 | |||
233 | 156 | ENDIF() | ||
234 | 157 | |||
235 | 158 | ENDFUNCTION() | ||
236 | 159 | 0 | ||
237 | === removed file 'cmake/FindLcov.cmake' | |||
238 | --- cmake/FindLcov.cmake 2014-05-06 14:22:33 +0000 | |||
239 | +++ cmake/FindLcov.cmake 1970-01-01 00:00:00 +0000 | |||
240 | @@ -1,35 +0,0 @@ | |||
241 | 1 | # - Find lcov | ||
242 | 2 | # Will define: | ||
243 | 3 | # | ||
244 | 4 | # LCOV_EXECUTABLE - the lcov binary | ||
245 | 5 | # GENHTML_EXECUTABLE - the genhtml executable | ||
246 | 6 | # | ||
247 | 7 | # Copyright (C) 2010 by Johannes Wienke <jwienke at techfak dot uni-bielefeld dot de> | ||
248 | 8 | # | ||
249 | 9 | # This file may be licensed under the terms of the | ||
250 | 10 | # GNU Lesser General Public License Version 3 (the ``LGPL''), | ||
251 | 11 | # or (at your option) any later version. | ||
252 | 12 | # | ||
253 | 13 | # Software distributed under the License is distributed | ||
254 | 14 | # on an ``AS IS'' basis, WITHOUT WARRANTY OF ANY KIND, either | ||
255 | 15 | # express or implied. See the LGPL for the specific language | ||
256 | 16 | # governing rights and limitations. | ||
257 | 17 | # | ||
258 | 18 | # You should have received a copy of the LGPL along with this | ||
259 | 19 | # program. If not, go to http://www.gnu.org/licenses/lgpl.html | ||
260 | 20 | # or write to the Free Software Foundation, Inc., | ||
261 | 21 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
262 | 22 | # | ||
263 | 23 | # The development of this software was supported by: | ||
264 | 24 | # CoR-Lab, Research Institute for Cognition and Robotics | ||
265 | 25 | # Bielefeld University | ||
266 | 26 | |||
267 | 27 | INCLUDE(FindPackageHandleStandardArgs) | ||
268 | 28 | |||
269 | 29 | FIND_PROGRAM(LCOV_EXECUTABLE lcov) | ||
270 | 30 | FIND_PROGRAM(GENHTML_EXECUTABLE genhtml) | ||
271 | 31 | |||
272 | 32 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(Lcov DEFAULT_MSG LCOV_EXECUTABLE GENHTML_EXECUTABLE) | ||
273 | 33 | |||
274 | 34 | # only visible in advanced view | ||
275 | 35 | MARK_AS_ADVANCED(LCOV_EXECUTABLE GENHTML_EXECUTABLE) | ||
276 | 36 | 0 | ||
277 | === removed file 'cmake/Findgcovr.cmake' | |||
278 | --- cmake/Findgcovr.cmake 2014-05-06 14:22:33 +0000 | |||
279 | +++ cmake/Findgcovr.cmake 1970-01-01 00:00:00 +0000 | |||
280 | @@ -1,43 +0,0 @@ | |||
281 | 1 | # - Find gcovr scrip | ||
282 | 2 | # Will define: | ||
283 | 3 | # | ||
284 | 4 | # GCOVR_EXECUTABLE - the gcovr script | ||
285 | 5 | # | ||
286 | 6 | # Uses: | ||
287 | 7 | # | ||
288 | 8 | # GCOVR_ROOT - root to search for the script | ||
289 | 9 | # | ||
290 | 10 | # Copyright (C) 2011 by Johannes Wienke <jwienke at techfak dot uni-bielefeld dot de> | ||
291 | 11 | # | ||
292 | 12 | # This file may be licensed under the terms of the | ||
293 | 13 | # GNU Lesser General Public License Version 3 (the ``LGPL''), | ||
294 | 14 | # or (at your option) any later version. | ||
295 | 15 | # | ||
296 | 16 | # Software distributed under the License is distributed | ||
297 | 17 | # on an ``AS IS'' basis, WITHOUT WARRANTY OF ANY KIND, either | ||
298 | 18 | # express or implied. See the LGPL for the specific language | ||
299 | 19 | # governing rights and limitations. | ||
300 | 20 | # | ||
301 | 21 | # You should have received a copy of the LGPL along with this | ||
302 | 22 | # program. If not, go to http://www.gnu.org/licenses/lgpl.html | ||
303 | 23 | # or write to the Free Software Foundation, Inc., | ||
304 | 24 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
305 | 25 | # | ||
306 | 26 | # The development of this software was supported by: | ||
307 | 27 | # CoR-Lab, Research Institute for Cognition and Robotics | ||
308 | 28 | # Bielefeld University | ||
309 | 29 | |||
310 | 30 | INCLUDE(FindPackageHandleStandardArgs) | ||
311 | 31 | |||
312 | 32 | FIND_PROGRAM(GCOVR_EXECUTABLE gcovr | ||
313 | 33 | HINTS ${GCOVR_ROOT} | ||
314 | 34 | "${GCOVR_ROOT}/bin" | ||
315 | 35 | "${GCOVR_ROOT}/share/python" | ||
316 | 36 | "/usr/share/python" | ||
317 | 37 | "/usr/local/share/python" | ||
318 | 38 | "${CMAKE_INSTALL_PREFIX}/share/python") | ||
319 | 39 | |||
320 | 40 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(gcovr DEFAULT_MSG GCOVR_EXECUTABLE) | ||
321 | 41 | |||
322 | 42 | # only visible in advanced view | ||
323 | 43 | MARK_AS_ADVANCED(GCOVR_EXECUTABLE) | ||
324 | 44 | 0 | ||
325 | === modified file 'debian/control' | |||
326 | --- debian/control 2015-05-13 14:17:31 +0000 | |||
327 | +++ debian/control 2015-06-16 17:54:00 +0000 | |||
328 | @@ -5,14 +5,13 @@ | |||
329 | 5 | Build-Depends: astyle, | 5 | Build-Depends: astyle, |
330 | 6 | click-dev, | 6 | click-dev, |
331 | 7 | cmake, | 7 | cmake, |
332 | 8 | cmake-extras, | ||
333 | 8 | dbus, | 9 | dbus, |
334 | 9 | dbus-test-runner, | 10 | dbus-test-runner, |
335 | 10 | debhelper (>= 9), | 11 | debhelper (>= 9), |
336 | 12 | gcovr, | ||
337 | 11 | google-mock, | 13 | google-mock, |
342 | 12 | # We rely on C++11 features, and to prevent from ABI breaks | 14 | lcov, |
339 | 13 | # in libstdc++ causing us issues, we explicitly select a G++ | ||
340 | 14 | # version. | ||
341 | 15 | g++-4.9, | ||
343 | 16 | libaccounts-qt5-dev, | 15 | libaccounts-qt5-dev, |
344 | 17 | libclick-0.4-dev, | 16 | libclick-0.4-dev, |
345 | 18 | libcurl4-gnutls-dev, | 17 | libcurl4-gnutls-dev, |
346 | 19 | 18 | ||
347 | === modified file 'debian/rules' | |||
348 | --- debian/rules 2014-07-21 16:23:40 +0000 | |||
349 | +++ debian/rules 2015-06-16 17:54:00 +0000 | |||
350 | @@ -6,13 +6,8 @@ | |||
351 | 6 | 6 | ||
352 | 7 | include /usr/share/dpkg/default.mk | 7 | include /usr/share/dpkg/default.mk |
353 | 8 | 8 | ||
354 | 9 | # Explicitly selecting a G{CC,++}-version here to avoid accidental | ||
355 | 10 | # ABI breaks introduced by toolchain updates. | ||
356 | 11 | export CC=$(DEB_HOST_GNU_TYPE)-gcc-4.9 | ||
357 | 12 | export CXX=$(DEB_HOST_GNU_TYPE)-g++-4.9 | ||
358 | 13 | |||
359 | 14 | override_dh_auto_configure: | 9 | override_dh_auto_configure: |
361 | 15 | dh_auto_configure -- -DCMAKE_INSTALL_LIBEXECDIR=/usr/lib/$(DEB_HOST_MULTIARCH)/pay-service -DCMAKE_INSTALL_INCLUDEDIR=/usr/include/$(DEB_HOST_MULTIARCH)/ -DCMAKE_C_COMPILER=$(CC) -DCMAKE_CXX_COMPILER=$(CXX) | 10 | dh_auto_configure -- -DCMAKE_INSTALL_LIBEXECDIR=/usr/lib/$(DEB_HOST_MULTIARCH)/pay-service -DCMAKE_INSTALL_INCLUDEDIR=/usr/include/$(DEB_HOST_MULTIARCH)/ |
362 | 16 | 11 | ||
363 | 17 | %: | 12 | %: |
364 | 18 | dh $@ --fail-missing --with click | 13 | dh $@ --fail-missing --with click |
365 | 19 | 14 | ||
366 | === modified file 'libpay/CMakeLists.txt' | |||
367 | --- libpay/CMakeLists.txt 2015-03-27 17:06:05 +0000 | |||
368 | +++ libpay/CMakeLists.txt 2015-06-16 17:54:00 +0000 | |||
369 | @@ -30,7 +30,7 @@ | |||
370 | 30 | ) | 30 | ) |
371 | 31 | 31 | ||
372 | 32 | target_link_libraries(libpay ${SERVICE_DEPS_LIBRARIES} common-lib) | 32 | target_link_libraries(libpay ${SERVICE_DEPS_LIBRARIES} common-lib) |
374 | 33 | set_target_properties(libpay PROPERTIES LINK_FLAGS "${ldflags} -Wl,--version-script,${CMAKE_CURRENT_SOURCE_DIR}/libpay.map") | 33 | set_target_properties(libpay PROPERTIES LINK_FLAGS "${ldflags} -Wl,--version-script,${CMAKE_CURRENT_SOURCE_DIR}/libpay.map ") |
375 | 34 | set_target_properties(libpay PROPERTIES LINK_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/libpay.map") | 34 | set_target_properties(libpay PROPERTIES LINK_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/libpay.map") |
376 | 35 | 35 | ||
377 | 36 | ###################### | 36 | ###################### |
FAILED: Continuous integration, rev:50 jenkins. qa.ubuntu. com/job/ pay-service- ci/74/ jenkins. qa.ubuntu. com/job/ pay-service- wily-amd64- ci/4/console jenkins. qa.ubuntu. com/job/ pay-service- wily-armhf- ci/4/console
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/pay- service- ci/74/rebuild
http://