-
Notifications
You must be signed in to change notification settings - Fork 793
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
Support of googletest using colcon [12009] #2054
Conversation
Signed-off-by: Ricardo González <ricardo@richiware.dev>
Signed-off-by: Ricardo González <ricardo@richiware.dev>
Signed-off-by: Ricardo González <ricardo@richiware.dev>
Signed-off-by: Ricardo González <ricardo@richiware.dev>
Signed-off-by: Ricardo González <ricardo@richiware.dev>
Signed-off-by: Ricardo González <ricardo@richiware.dev>
Signed-off-by: Ricardo González <ricardo@richiware.dev>
Signed-off-by: Ricardo González <ricardo@richiware.dev>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM,
Just a couple of comments, mostly because I'm curious
${PROJECT_SOURCE_DIR}/include | ||
${PROJECT_BINARY_DIR}/include | ||
${PROJECT_SOURCE_DIR}/src/cpp | ||
${Asio_INCLUDE_DIR} | ||
) | ||
|
||
target_link_libraries(RTPSStatisticsTests fastrtps fastcdr ${GTEST_LIBRARIES} ${GMOCK_LIBRARIES}) | ||
target_link_libraries(RTPSStatisticsTests fastrtps fastcdr GTest::gtest GTest::gmock) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
target_link_libraries(RTPSStatisticsTests fastrtps fastcdr GTest::gtest GTest::gmock) | |
target_link_libraries(RTPSStatisticsTests fastrtps fastcdr GTest::gmock) |
Is not enough with gmock? I see in the rest of cases where both Gtest and Gmock were added, only gmock is added in your changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was reading the cmake config file that googletest-distribution generates, and the target GTest::gmock
imports also GTest::gtest
and Threads
@@ -44,7 +42,7 @@ if(NOT ((MSVC OR MSVC_IDE) AND EPROSIMA_INSTALLER)) | |||
${PROJECT_SOURCE_DIR}/include ${PROJECT_BINARY_DIR}/include | |||
${PROJECT_SOURCE_DIR}/src/cpp | |||
) | |||
target_link_libraries(ThroughputControllerTests ${GTEST_LIBRARIES} ${GTEST_LIBRARIES} ${GMOCK_LIBRARIES}) | |||
target_link_libraries(ThroughputControllerTests GTest::gtest GTest::gmock) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here will enough with only GTest::gmock
.
Failed tests not related. |
@Mergifyio backport 2.1.x |
* Refs #11961. New support of googletest using colcon Signed-off-by: Ricardo González <ricardo@richiware.dev> * Refs #11961. Fix compilation errors Signed-off-by: Ricardo González <ricardo@richiware.dev> * Refs #11961. Fix compilation error Signed-off-by: Ricardo González <ricardo@richiware.dev> * Refs #11961. Including asio in a good way Signed-off-by: Ricardo González <ricardo@richiware.dev> * Refs #11961. gmock exports gtest Signed-off-by: Ricardo González <ricardo@richiware.dev> * Refs #11961. Forget to remove one include_directories Signed-off-by: Ricardo González <ricardo@richiware.dev> * Refs #11961. Little change Signed-off-by: Ricardo González <ricardo@richiware.dev> * Refs #11961. Fix error Signed-off-by: Ricardo González <ricardo@richiware.dev> (cherry picked from commit 4f9f7e9) # Conflicts: # examples/C++/DDS/DeadlineQoSExample/CMakeLists.txt # examples/C++/DeadlineQoSExample/CMakeLists.txt # test/blackbox/CMakeLists.txt # test/communication/CMakeLists.txt # test/performance/CMakeLists.txt # test/performance/latency/CMakeLists.txt # test/performance/throughput/CMakeLists.txt # test/performance/video/CMakeLists.txt # test/profiling/CMakeLists.txt # test/realtime/CMakeLists.txt # test/unittest/dds/collections/CMakeLists.txt # test/unittest/dds/core/condition/CMakeLists.txt # test/unittest/dds/core/entity/CMakeLists.txt # test/unittest/dds/publisher/CMakeLists.txt # test/unittest/dds/status/CMakeLists.txt # test/unittest/dynamic_types/CMakeLists.txt # test/unittest/logging/CMakeLists.txt # test/unittest/logging/log_macros/CMakeLists.txt # test/unittest/rtps/common/CMakeLists.txt # test/unittest/rtps/flowcontrol/CMakeLists.txt # test/unittest/rtps/network/CMakeLists.txt # test/unittest/rtps/persistence/CMakeLists.txt # test/unittest/rtps/resources/timedevent/CMakeLists.txt # test/unittest/rtps/security/CMakeLists.txt # test/unittest/rtps/writer/CMakeLists.txt # test/unittest/security/accesscontrol/CMakeLists.txt # test/unittest/security/authentication/CMakeLists.txt # test/unittest/statistics/dds/CMakeLists.txt # test/unittest/statistics/rtps/CMakeLists.txt # test/unittest/transport/CMakeLists.txt # test/unittest/utils/CMakeLists.txt # test/unittest/xmlparser/CMakeLists.txt # test/unittest/xtypes/CMakeLists.txt # test/xtypes/CMakeLists.txt
✅ Backports have been created
|
Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>
* Refs #15163: backport #2054 to 2.1.x Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #15163: fix RTPSWriter unittest build Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #15163: fix RTPSWriter unittest build (second attempt) Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #15163: use correct variable name Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>
No description provided.