Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure google-mock is installed and setup #9107

Merged
merged 1 commit into from
Sep 27, 2021
Merged

Commits on Sep 24, 2021

  1. Ensure google-mock is installed and setup

    Google Mock is the mocking/helper framework that gets bundled with Google Test, it used to be separate but now isn't.  I ran into the issue of Google Mock not being configured fully in the i386 build of apache#9106, which uses the `HasSubtr` matcher. This PR aims to fully configure Google Mock for use, which is interesting in itself...
    
    The headers are installed as part of Ubuntu 18.04's `googletest` package:
    
    ```shell
    $ dpkg -S /usr/include/gmock/
    googletest:amd64: /usr/include/gmock
    ```
    
    But not the lib sources, that requires another package named `google-mock`:
    
    ```shell
    $ dpkg -S /usr/src/gmock
    google-mock:amd64: /usr/src/gmock
    ```
    
    But in Ubuntu 16.04 the includes and lib sources are in the `google-mock` package:
    ```shell
    $ dpkg -S /usr/include/gmock
    google-mock:i386: /usr/include/gmock
    $ dpkg -S /usr/src/gmock/
    google-mock:i386: /usr/src/gmock
    ```
    
    And excitingly, in Ubuntu 20.04 this will again be changed to `libgmock-dev` by the
    looks of things, just to keep us on our toes.
    Mousius committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    df550b8 View commit details
    Browse the repository at this point in the history