-
Notifications
You must be signed in to change notification settings - Fork 45
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
Add CMake lint test to sros2_cmake #90
Conversation
Fixed lint errors accordingly. Signed-off-by: Jacob Perron <jacob@openrobotics.org>
* Correct sros2 cli test folder location (#83) * Update test folder location fixing incomplete rebase from #72 * Remove old yaml profile examples fixing incomplete rebase from #72 * add reference to schema in generated permission files (#84) Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com> * Add missing attributes to test permissions XML file Signed-off-by: Jacob Perron <jacob@openrobotics.org> * fix status print to match commands invoked Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com> * Fix bug preventing generate_policy verb from working with publishers and services Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Add CMake lint test to sros2_cmake (#90) Fixed lint errors accordingly. Signed-off-by: Jacob Perron <jacob@openrobotics.org>
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.
thanks @jacobperron !
I'm unsure how ament_lint_auto
is meant to be used for pure cmake packages in non ament packages.
I opened #95 with an alternative approach
configure_package_config_file(sros2_cmakeConfig.cmake.in | ||
${CMAKE_CURRENT_BINARY_DIR}/sros2_cmakeConfig.cmake | ||
INSTALL_DESTINATION ${LIB_INSTALL_DIR}/sros2_cmake/cmake | ||
find_package(ament_cmake_test REQUIRED) |
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 believe this is not necessary.
If it is, should it be listed as a dependency in the package.xml?
if(BUILD_TESTING) | ||
find_package(ament_lint_auto REQUIRED) | ||
ament_lint_auto_find_test_dependencies() | ||
ament_lint_cmake() |
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 we need to call out the test explicitly, do we need ament_lint_auto
at all?
Fixed lint errors accordingly.