Merge lp:~dobey/indicator-location/fix-gtest into lp:indicator-location

Proposed by dobey
Status: Merged
Approved by: dobey
Approved revision: 162
Merged at revision: 163
Proposed branch: lp:~dobey/indicator-location/fix-gtest
Merge into: lp:indicator-location
Diff against target: 87 lines (+11/-27)
4 files modified
CMakeLists.txt (+0/-3)
INSTALL (+1/-1)
debian/control (+2/-1)
tests/CMakeLists.txt (+8/-22)
To merge this branch: bzr merge lp:~dobey/indicator-location/fix-gtest
Reviewer Review Type Date Requested Status
Charles Kerr (community) Approve
Ted Gould (community) Approve
unity-api-1-bot continuous-integration Approve
Review via email: mp+316602@code.launchpad.net

Commit message

Use gmock module from cmake-extras.

To post a comment you must log in.
Revision history for this message
unity-api-1-bot (unity-api-1-bot) wrote :

PASSED: Continuous integration, rev:162
https://jenkins.canonical.com/unity-api-1/job/lp-indicator-location-ci/4/
Executed test runs:
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build/1618
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-0-fetch/1625
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1403
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1403/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=amd64,release=zesty/1403
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=amd64,release=zesty/1403/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1403
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1403/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=armhf,release=zesty/1403
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=armhf,release=zesty/1403/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=i386,release=xenial+overlay/1403
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=i386,release=xenial+overlay/1403/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=i386,release=zesty/1403
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=i386,release=zesty/1403/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://jenkins.canonical.com/unity-api-1/job/lp-indicator-location-ci/4/rebuild

review: Approve (continuous-integration)
Revision history for this message
Ted Gould (ted) :
review: Approve
Revision history for this message
Charles Kerr (charlesk) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'CMakeLists.txt'
--- CMakeLists.txt 2016-05-24 11:22:19 +0000
+++ CMakeLists.txt 2017-02-07 19:04:44 +0000
@@ -81,9 +81,6 @@
8181
82# testing & coverage82# testing & coverage
83if (${enable_tests})83if (${enable_tests})
84 set (GTEST_SOURCE_DIR /usr/src/gtest/src)
85 set (GTEST_INCLUDE_DIR ${GTEST_SOURCE_DIR}/..)
86 set (GTEST_LIBS -lpthread)
87 enable_testing ()84 enable_testing ()
88 if (${enable_lcov})85 if (${enable_lcov})
89 include(GCov)86 include(GCov)
9087
=== modified file 'INSTALL'
--- INSTALL 2013-08-25 20:31:26 +0000
+++ INSTALL 2017-02-07 19:04:44 +0000
@@ -21,7 +21,7 @@
21 - cmake (cmake, 2.8.9 or later)21 - cmake (cmake, 2.8.9 or later)
22 - gcovr (gcovr, 2.4 or later)22 - gcovr (gcovr, 2.4 or later)
23 - lcov (lcov, 1.9 or later)23 - lcov (lcov, 1.9 or later)
24 - google test (libgtest-dev, 1.6.0 or later)24 - google test (googletest or google-mock, 1.6.0 or later)
25 - ubuntu-platform-api (libubuntu-platform-api1)25 - ubuntu-platform-api (libubuntu-platform-api1)
2626
27Building the code27Building the code
2828
=== modified file 'debian/control'
--- debian/control 2016-07-19 08:47:36 +0000
+++ debian/control 2017-02-07 19:04:44 +0000
@@ -3,12 +3,13 @@
3Priority: optional3Priority: optional
4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
5Build-Depends: cmake,5Build-Depends: cmake,
6 cmake-extras (>= 0.10),
6 dbus,7 dbus,
7 debhelper (>= 9),8 debhelper (>= 9),
8 dh-translations,9 dh-translations,
10 googletest | google-mock,
9 intltool (>= 0.35.0), 11 intltool (>= 0.35.0),
10 libglib2.0-dev (>= 2.36),12 libglib2.0-dev (>= 2.36),
11 libgtest-dev,
12 libubuntu-app-launch2-dev,13 libubuntu-app-launch2-dev,
13 liburl-dispatcher1-dev,14 liburl-dispatcher1-dev,
14 python,15 python,
1516
=== modified file 'tests/CMakeLists.txt'
--- tests/CMakeLists.txt 2016-01-22 17:49:24 +0000
+++ tests/CMakeLists.txt 2017-02-07 19:04:44 +0000
@@ -1,13 +1,5 @@
11find_package (GMock)
2###2include_directories (${GMOCK_INCLUDE_DIRS})
3### Google Test Framework
4###
5
6add_library (gtest STATIC
7 ${GTEST_SOURCE_DIR}/gtest-all.cc
8 ${GTEST_SOURCE_DIR}/gtest_main.cc)
9set_target_properties (gtest PROPERTIES INCLUDE_DIRECTORIES ${INCLUDE_DIRECTORIES} ${GTEST_INCLUDE_DIR})
10set_target_properties (gtest PROPERTIES COMPILE_FLAGS ${COMPILE_FLAGS} -w)
113
12###4###
13### General setup5### General setup
@@ -30,15 +22,9 @@
30add_executable (${TEST_NAME} ${TEST_NAME}.cc)22add_executable (${TEST_NAME} ${TEST_NAME}.cc)
31add_test (${TEST_NAME} ${TEST_NAME})23add_test (${TEST_NAME} ${TEST_NAME})
32add_dependencies (${TEST_NAME} ${SERVICE_LIB})24add_dependencies (${TEST_NAME} ${SERVICE_LIB})
33target_link_libraries (${TEST_NAME} ${SERVICE_LIB} gtest ${SERVICE_DEPS_LIBRARIES} ${GTEST_LIBS})25target_link_libraries (${TEST_NAME}
3426 ${SERVICE_LIB}
35###27 ${SERVICE_DEPS_LIBRARIES}
36### globals28
37###29 ${GMOCK_LIBRARIES}
3830)
39#set_property (TARGET ${ALL_TESTS}
40# APPEND PROPERTY LINK_LIBRARIES libindicator-location-service gtest ${GTEST_LIBS} ${GCOV_LIBS})
41#
42#set_property (TARGET ${ALL_TESTS} gtest
43# APPEND PROPERTY INCLUDE_DIRECTORIES ${CMAKE_SOURCE_DIR} ${SERVICE_INCLUDE_DIRS} ${GTEST_INCLUDE_DIR})
44

Subscribers

People subscribed via source and target branches