Merge lp:~phablet-team/messaging-framework/fix-lsb-release-dependency into lp:messaging-framework

Proposed by Tiago Salem Herrmann
Status: Merged
Approved by: Bill Filler
Approved revision: 78
Merged at revision: 73
Proposed branch: lp:~phablet-team/messaging-framework/fix-lsb-release-dependency
Merge into: lp:messaging-framework
Diff against target: 158 lines (+79/-13)
5 files modified
CMakeLists.txt (+3/-0)
cmake/FindGtest.cmake (+67/-0)
tests/CMakeLists.txt (+2/-8)
tests/unit/messaging/CMakeLists.txt (+4/-4)
tools/get_soversion.sh (+3/-1)
To merge this branch: bzr merge lp:~phablet-team/messaging-framework/fix-lsb-release-dependency
Reviewer Review Type Date Requested Status
system-apps-ci-bot continuous-integration Approve
Roberto Mier Escandon (community) Approve
Review via email: mp+312149@code.launchpad.net

Commit message

Add missing dependency.

Description of the change

Add missing dependency.

To post a comment you must log in.
Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:73
https://jenkins.canonical.com/system-apps/job/lp-messaging-framework-ci/102/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/2085/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/2088
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1918
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1918/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1918
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1918/artifact/output/*zip*/output.zip
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=zesty/1918/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1918
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1918/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1918
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1918/artifact/output/*zip*/output.zip
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=zesty/1918/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/1918
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/1918/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/1918
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/1918/artifact/output/*zip*/output.zip
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=zesty/1918/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-messaging-framework-ci/102/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Roberto Mier Escandon (rmescandon) wrote :

lgtm

review: Approve
Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Autolanding.
More details in the following jenkins job:
https://jenkins.canonical.com/system-apps/job/lp-messaging-framework-autoland/45/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/2087/console
    None: https://jenkins.canonical.com/system-apps/job/lp-generic-land-mp/62/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/2090
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1920
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1920/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1920
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1920/artifact/output/*zip*/output.zip
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=zesty/1920/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1920
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1920/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1920
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1920/artifact/output/*zip*/output.zip
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=zesty/1920/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/1920
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/1920/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/1920
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/1920/artifact/output/*zip*/output.zip
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=zesty/1920/console

review: Needs Fixing (continuous-integration)
Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:74
https://jenkins.canonical.com/system-apps/job/lp-messaging-framework-ci/103/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/2126/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/2129
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1957
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1957/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1957
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1957/artifact/output/*zip*/output.zip
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=zesty/1957/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1957
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1957/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1957
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1957/artifact/output/*zip*/output.zip
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=zesty/1957/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/1957
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/1957/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/1957
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/1957/artifact/output/*zip*/output.zip
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=zesty/1957/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-messaging-framework-ci/103/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:75
https://jenkins.canonical.com/system-apps/job/lp-messaging-framework-ci/104/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/2128/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/2131
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1959/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1959/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=zesty/1959/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1959/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1959/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=zesty/1959/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/1959/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/1959/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=zesty/1959/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-messaging-framework-ci/104/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:76
https://jenkins.canonical.com/system-apps/job/lp-messaging-framework-ci/105/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/2132/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/2135
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1963/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1963
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1963/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=zesty/1963
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=zesty/1963/artifact/output/*zip*/output.zip
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1963/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1963/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=zesty/1963
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=zesty/1963/artifact/output/*zip*/output.zip
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/1963/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/1963
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/1963/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=zesty/1963
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=zesty/1963/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-messaging-framework-ci/105/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

PASSED: Continuous integration, rev:77
https://jenkins.canonical.com/system-apps/job/lp-messaging-framework-ci/106/
Executed test runs:
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build/2146
    SUCCESS: https://jenkins.canonical.com/system-apps/job/test-0-autopkgtest/label=phone-armhf,release=vivid+overlay,testname=default/550
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/2149
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1977
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1977/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1977
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1977/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=zesty/1977
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=zesty/1977/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1977
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1977/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1977
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1977/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=zesty/1977
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=zesty/1977/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/1977
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/1977/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/1977
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/1977/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=zesty/1977
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=zesty/1977/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-messaging-framework-ci/106/rebuild

review: Approve (continuous-integration)
Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

PASSED: Continuous integration, rev:78
https://jenkins.canonical.com/system-apps/job/lp-messaging-framework-ci/107/
Executed test runs:
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build/2147
    SUCCESS: https://jenkins.canonical.com/system-apps/job/test-0-autopkgtest/label=phone-armhf,release=vivid+overlay,testname=default/551
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/2150
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1978
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1978/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1978
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1978/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=zesty/1978
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=zesty/1978/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1978
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1978/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1978
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1978/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=zesty/1978
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=zesty/1978/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/1978
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/1978/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/1978
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/1978/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=zesty/1978
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=zesty/1978/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-messaging-framework-ci/107/rebuild

review: Approve (continuous-integration)
Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Autolanding.
More details in the following jenkins job:
https://jenkins.canonical.com/system-apps/job/lp-messaging-framework-autoland/47/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/2149/console
    None: https://jenkins.canonical.com/system-apps/job/lp-generic-land-mp/64/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/2152
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1980
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1980/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1980
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1980/artifact/output/*zip*/output.zip
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=zesty/1980/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1980
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1980/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1980
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1980/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=zesty/1980
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=zesty/1980/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/1980
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/1980/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/1980
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/1980/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=zesty/1980
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=zesty/1980/artifact/output/*zip*/output.zip

review: Needs Fixing (continuous-integration)
Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'CMakeLists.txt'
--- CMakeLists.txt 2016-11-10 16:20:00 +0000
+++ CMakeLists.txt 2016-12-07 19:42:48 +0000
@@ -26,6 +26,9 @@
26pkg_check_modules(PROCESS_CPP process-cpp REQUIRED)26pkg_check_modules(PROCESS_CPP process-cpp REQUIRED)
27pkg_check_modules(TP_QT5 REQUIRED TelepathyQt5)27pkg_check_modules(TP_QT5 REQUIRED TelepathyQt5)
2828
29find_package(Gtest REQUIRED)
30include_directories(${GMOCK_INCLUDE_DIR} ${GTEST_INCLUDE_DIR})
31
29# Enable handy automoc functionality.32# Enable handy automoc functionality.
30add_definitions(-DQT_NO_KEYWORDS)33add_definitions(-DQT_NO_KEYWORDS)
31set(CMAKE_INCLUDE_CURRENT_DIR ON)34set(CMAKE_INCLUDE_CURRENT_DIR ON)
3235
=== added file 'cmake/FindGtest.cmake'
--- cmake/FindGtest.cmake 1970-01-01 00:00:00 +0000
+++ cmake/FindGtest.cmake 2016-12-07 19:42:48 +0000
@@ -0,0 +1,67 @@
1include(ExternalProject)
2include(FindPackageHandleStandardArgs)
3
4#gtest
5if (EXISTS /usr/src/googletest)
6 set (USING_GOOGLETEST_1_8 TRUE)
7 set (GTEST_INSTALL_DIR /usr/src/googletest/googletest/include)
8else()
9 set(GTEST_INSTALL_DIR /usr/src/gmock/gtest/include)
10endif()
11find_path(GTEST_INCLUDE_DIR gtest/gtest.h
12 HINTS ${GTEST_INSTALL_DIR})
13
14#gmock
15find_path(GMOCK_INSTALL_DIR CMakeLists.txt
16 HINTS /usr/src/googletest /usr/src/gmock)
17if(${GMOCK_INSTALL_DIR} STREQUAL "GMOCK_INSTALL_DIR-NOTFOUND")
18 message(FATAL_ERROR "google-mock package not found")
19endif()
20
21find_path(GMOCK_INCLUDE_DIR gmock/gmock.h)
22
23if (USING_GOOGLETEST_1_8)
24 set(GMOCK_BASE_BINARY_DIR ${CMAKE_BINARY_DIR}/gmock/libs)
25 set(GMOCK_BINARY_DIR ${GMOCK_BASE_BINARY_DIR}/googlemock)
26 set(GTEST_BINARY_DIR ${GMOCK_BINARY_DIR}/gtest)
27else()
28 set(GMOCK_BASE_BINARY_DIR ${CMAKE_BINARY_DIR}/gmock/libs)
29 set(GMOCK_BINARY_DIR ${GMOCK_BASE_BINARY_DIR})
30 set(GTEST_BINARY_DIR ${GMOCK_BINARY_DIR}/gtest)
31endif()
32
33set(GTEST_CMAKE_ARGS "")
34if (${MIR_IS_CROSS_COMPILING})
35 set(GTEST_CMAKE_ARGS
36 -DCMAKE_TOOLCHAIN_FILE=${CMAKE_MODULE_PATH}/LinuxCrossCompile.cmake)
37endif()
38
39if (USING_GOOGLETEST_1_8)
40 list(APPEND GTEST_CMAKE_ARGS -DBUILD_GTEST=ON)
41endif()
42
43ExternalProject_Add(
44 GMock
45 #where to build in source tree
46 PREFIX ${GMOCK_PREFIX}
47 #where the source is external to the project
48 SOURCE_DIR ${GMOCK_INSTALL_DIR}
49 #forward the compilers to the subproject so cross-arch builds work
50 CMAKE_ARGS ${GTEST_CMAKE_ARGS} -DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS} -DCMAKE_POSITION_INDEPENDENT_CODE=ON
51 BINARY_DIR ${GMOCK_BASE_BINARY_DIR}
52
53 #we don't need to install, so skip
54 INSTALL_COMMAND ""
55)
56
57set(GMOCK_LIBRARY ${GMOCK_BINARY_DIR}/libgmock.a)
58set(GMOCK_MAIN_LIBRARY ${GMOCK_BINARY_DIR}/libgmock_main.a)
59set(GMOCK_BOTH_LIBRARIES ${GMOCK_LIBRARY} ${GMOCK_MAIN_LIBRARY})
60set(GTEST_LIBRARY ${GTEST_BINARY_DIR}/libgtest.a)
61set(GTEST_MAIN_LIBRARY ${GTEST_BINARY_DIR}/libgtest_main.a)
62set(GTEST_BOTH_LIBRARIES ${GTEST_LIBRARY} ${GTEST_MAIN_LIBRARY})
63set(GTEST_ALL_LIBRARIES ${GTEST_BOTH_LIBRARIES} ${GMOCK_BOTH_LIBRARIES})
64
65find_package_handle_standard_args(GTest DEFAULT_MSG
66 GMOCK_INCLUDE_DIR
67 GTEST_INCLUDE_DIR)
068
=== modified file 'tests/CMakeLists.txt'
--- tests/CMakeLists.txt 2016-11-10 16:20:00 +0000
+++ tests/CMakeLists.txt 2016-12-07 19:42:48 +0000
@@ -12,13 +12,6 @@
12# Disable the respective warning selectively for tests only.12# Disable the respective warning selectively for tests only.
13set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-missing-field-initializers")13set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-missing-field-initializers")
1414
15# Build with system gmock and embedded gtest
16set (GMOCK_INCLUDE_DIR "/usr/include/gmock/include" CACHE PATH "gmock source include directory")
17set (GMOCK_SOURCE_DIR "/usr/src/gmock" CACHE PATH "gmock source directory")
18set (GTEST_INCLUDE_DIR "${GMOCK_SOURCE_DIR}/gtest/include" CACHE PATH "gtest source include directory")
19set (GMOCK_BOTH_LIBRARIES gmock gmock_main)
20add_subdirectory(${GMOCK_SOURCE_DIR} "${CMAKE_CURRENT_BINARY_DIR}/gmock")
21
22include_directories(15include_directories(
23 ${CMAKE_CURRENT_BINARY_DIR}16 ${CMAKE_CURRENT_BINARY_DIR}
24 ${CMAKE_CURRENT_SOURCE_DIR}17 ${CMAKE_CURRENT_SOURCE_DIR}
@@ -44,6 +37,7 @@
44file(GLOB_RECURSE TEST_H_FILES *.h)37file(GLOB_RECURSE TEST_H_FILES *.h)
45add_custom_target(test_dot_h_files ALL SOURCES ${TEST_H_FILES})38add_custom_target(test_dot_h_files ALL SOURCES ${TEST_H_FILES})
4639
47target_link_libraries(testing-mocks messaging-framework gmock gmock_main)40target_link_libraries(testing-mocks messaging-framework ${GMOCK_LIBRARY})
41set_target_properties(testing-mocks PROPERTIES POSITION_INDEPENDENT_CODE ON)
4842
49add_subdirectory(unit)43add_subdirectory(unit)
5044
=== modified file 'tests/unit/messaging/CMakeLists.txt'
--- tests/unit/messaging/CMakeLists.txt 2016-11-10 16:20:00 +0000
+++ tests/unit/messaging/CMakeLists.txt 2016-12-07 19:42:48 +0000
@@ -1,5 +1,5 @@
1# Make sure that we can easily bootstrap a private dbus instance.1# Make sure that we can easily bootstrap a private dbus instance.
2add_definitions(-DCORE_DBUS_ENABLE_GOOGLE_TEST_FIXTURE -DTP_QT_ENABLE_LOWLEVEL_API)2add_definitions(-DCORE_DBUS_ENABLE_GOOGLE_TEST_FIXTURE -DTP_QT_ENABLE_LOWLEVEL_API -fPIC)
33
4# Enable handy automock'ing and auto include of generated files.4# Enable handy automock'ing and auto include of generated files.
5set(CMAKE_INCLUDE_CURRENT_DIR ON)5set(CMAKE_INCLUDE_CURRENT_DIR ON)
@@ -48,8 +48,8 @@
48 testing-mocks48 testing-mocks
49 messaging-framework49 messaging-framework
5050
51 gmock 51 ${GMOCK_LIBRARY}
52 gmock_main 52 ${GTEST_BOTH_LIBRARIES}
5353
54 ${DBUS_CPP_LDFLAGS} 54 ${DBUS_CPP_LDFLAGS}
55 ${PROCESS_CPP_LDFLAGS} 55 ${PROCESS_CPP_LDFLAGS}
@@ -66,7 +66,7 @@
6666
67# Simple shared object that is used in unit-testing the messaging::DynamicLibrary.67# Simple shared object that is used in unit-testing the messaging::DynamicLibrary.
68add_library(test-library SHARED test_library.cpp)68add_library(test-library SHARED test_library.cpp)
69target_link_libraries(test-library testing-mocks gmock gmock_main)69target_link_libraries(test-library testing-mocks)
7070
71MSG_FW_ADD_TEST(associative-dictionary-test associative_dictionary_test.cpp)71MSG_FW_ADD_TEST(associative-dictionary-test associative_dictionary_test.cpp)
72MSG_FW_ADD_TEST(boost-variant-test boost_variant_test.cpp)72MSG_FW_ADD_TEST(boost-variant-test boost_variant_test.cpp)
7373
=== modified file 'tools/get_soversion.sh'
--- tools/get_soversion.sh 2016-11-11 12:58:48 +0000
+++ tools/get_soversion.sh 2016-12-07 19:42:48 +0000
@@ -17,7 +17,9 @@
1717
18set -eu18set -eu
1919
20[ -n "${SERIES:-}" ] || SERIES=$(lsb_release -c -s)20. /etc/lsb-release
21
22[ -n "${SERIES:-}" ] || SERIES=$DISTRIB_CODENAME
2123
22case "$SERIES" in24case "$SERIES" in
23 trusty)25 trusty)

Subscribers

People subscribed via source and target branches

to all changes: