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

Add CMake lint test to sros2_cmake #90

Merged
merged 1 commit into from
Mar 8, 2019
Merged

Add CMake lint test to sros2_cmake #90

merged 1 commit into from
Mar 8, 2019

Conversation

jacobperron
Copy link
Member

Fixed lint errors accordingly.

Fixed lint errors accordingly.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
@jacobperron jacobperron added the in progress Actively being worked on (Kanban column) label Mar 4, 2019
@jacobperron jacobperron added in review Waiting for review (Kanban column) and removed in progress Actively being worked on (Kanban column) labels Mar 4, 2019
@jacobperron
Copy link
Member Author

CI (up to sros2_cmake):

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@jacobperron jacobperron self-assigned this Mar 4, 2019
@mjcarroll mjcarroll merged commit c59ea2f into master Mar 8, 2019
@mjcarroll mjcarroll deleted the lint_sros2_cmake branch March 8, 2019 21:20
@mjcarroll mjcarroll removed the in review Waiting for review (Kanban column) label Mar 8, 2019
mjcarroll added a commit that referenced this pull request Mar 8, 2019
* 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>
Copy link
Member

@mikaelarguedas mikaelarguedas left a 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)
Copy link
Member

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()
Copy link
Member

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?

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.

3 participants