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

Fix up the dependencies in test_tf2. #277

Merged
merged 1 commit into from
Jun 22, 2020

Conversation

clalancette
Copy link
Contributor

This is to ensure that the tests include what they use,
which then makes it easy to figure out which packages each
test should ament_target_depend on.

Signed-off-by: Chris Lalancette clalancette@openrobotics.org

This should fix one more bug when building this package in an overlay.

@clalancette clalancette force-pushed the clalancette/fix-test-tf2-dependencies branch from 16a1484 to e18e822 Compare June 20, 2020 20:10
This is to ensure that the tests include what they use,
which then makes it easy to figure out which packages each
test should ament_target_depend on.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
@clalancette clalancette force-pushed the clalancette/fix-test-tf2-dependencies branch from e18e822 to 19f7047 Compare June 20, 2020 20:24
@clalancette
Copy link
Contributor Author

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

@@ -34,15 +33,19 @@ include_directories(${GTEST_INCLUDE_DIRS})
ament_add_gtest(buffer_core_test test/buffer_core_test.cpp)
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't all this be under a if (BUILD_TESTING) condition?
Unrelated to this PR though

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, that's a good point. It really should be. We have kind of ignored it because we don't build binary packages, but it would be nicer for source users. I'll open an issue about it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@clalancette
Copy link
Contributor Author

test_tf2.BufferClientTestAfterShutdown.test_exit_code is clearly flakey on the PR job. Since real CI was green, I'm going to go ahead and merge this.

@clalancette clalancette merged commit 7335b61 into ros2 Jun 22, 2020
@delete-merged-branch delete-merged-branch bot deleted the clalancette/fix-test-tf2-dependencies branch June 22, 2020 18:24
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.

None yet

2 participants