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

Adding missing dependency for gtest #136

Merged
merged 2 commits into from
Aug 21, 2023
Merged

Adding missing dependency for gtest #136

merged 2 commits into from
Aug 21, 2023

Conversation

RobertDeLeeuw
Copy link
Contributor

No description provided.

Signed-off-by: Robert de Leeuw, PIONIX <robert@pionix.de>
README.md Outdated
@@ -419,7 +419,7 @@ TODO
For Debian GNU/Linux 11 you will need the following dependencies:

```bash
sudo apt install build-essential cmake python3-pip libboost-all-dev libsqlite3-dev libssl-dev
sudo apt install build-essential cmake python3-pip libboost-all-dev libsqlite3-dev libssl-dev libgtest-dev
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this would be great in a small new section for testing, something along the lines of:

Unit testing

If you want to run the unit tests in the tests subdirectory, you need googletest as a dependency.
For Debian GNU/Linux 11 you can install it like this:

sudo apt install libgtest-dev

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hikinggrass Hmmm, I thought I got an error during building of libocpp due to missing gtest.
I have removed libgtest-dev from my machine and tried again. I can build without, so you are right, this is not part of the build.

Is libocpp itself does not have tests, I think we can drop this pull request

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume you built it with -DBUILD_TESTING=ON which will build the unit tests we have in https://github.com/EVerest/libocpp/tree/main/tests that require gtest

Added two missing dependencies

Signed-off-by: Robert de Leeuw, PIONIX <robert@pionix.de>
@hikinggrass hikinggrass merged commit e0de9b9 into main Aug 21, 2023
2 of 3 checks passed
@hikinggrass hikinggrass deleted the rdl-fix-readme branch August 21, 2023 14:36
bWF0dGhpYXMK pushed a commit to bWF0dGhpYXMK/libocpp that referenced this pull request Sep 27, 2023
* Adding missing dependency for gtest
* Create new section about unit testing
Added two missing dependencies

---------

Signed-off-by: Robert de Leeuw, PIONIX <robert@pionix.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants