-
Notifications
You must be signed in to change notification settings - Fork 166
Introduce Google test and Google mock infra #31
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
Conversation
jovany-wang
left a comment
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.
Left some small comments about lint.
CMakeLists.txt
Outdated
| add_subdirectory(libs) | ||
| add_subdirectory(project) | ||
| add_subdirectory(example) | ||
| add_subdirectory(test) No newline at end of file |
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.
Please add a new line at the end of this file.
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.
Already processed
build.sh
Outdated
| mkdir -p ${build_dir} | ||
| fi | ||
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.
remove these spaces?
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.
Alerady delete
|
|
||
| BuildGoogleTest() | ||
| { | ||
|
|
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.
Remove this empty line?
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.
Already processed
test/CMakeLists.txt
Outdated
| include_directories(${Boost_INCLUDE_DIRS}) | ||
|
|
||
|
|
||
| set(Gtest_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/bin/include/gtest) |
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.
set(Gtest_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/bin/include/gtest)
Just use 1 space between 2 args.
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.
Already processed
test/CMakeLists.txt
Outdated
| target_link_libraries (${basename} rocketmq_shared ${deplibs}) | ||
| target_link_libraries (${basename} rocketmq_shared ${Gtest_LIBRARIES}) | ||
| target_link_libraries (${basename} rocketmq_shared ${Gmock_LIBRARIES}) | ||
| #else() |
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.
If these codes are useless, could you plz remove them?
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.
Already processed
test/CMakeLists.txt
Outdated
| include_directories(${Gmock_INCLUDE_DIR}) | ||
| include_directories(${Gmock_INCLUDE_DIR}/internal) | ||
|
|
||
| set(Gtest_LIBRARY_DIRS ${CMAKE_SOURCE_DIR}/bin/lib) |
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.
also 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.
Already processed
Introduction of test library Google test and google mock to provide unit and integration test functions