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

[foxy backport] Backport various commits for unit tests and coverage #1387

Conversation

brawner
Copy link
Contributor

@brawner brawner commented Oct 6, 2020

This backports another chunk of PRs for unit test coverage. It also includes several test failure bug fixes.

Coverage PRs: #1221, #1189
New testing features: #1232
Bug fix PRs: #1245, #1246, #1251, #1253, #1252

@brawner brawner requested a review from ahcorde October 6, 2020 23:16
@brawner
Copy link
Contributor Author

brawner commented Oct 6, 2020

Testing --packages-select rclcpp

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

Copy link
Contributor

@ahcorde ahcorde left a comment

Choose a reason for hiding this comment

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

LGTM, just added new tests or new test files

@brawner brawner force-pushed the brawner/rclcpp-backport-1222 branch from 971190f to e687f0f Compare October 7, 2020 18:27
brawner and others added 7 commits October 7, 2020 11:30
* EXPECT_THROW_EQ and ASSERT_THROW_EQ macros for unittests

Signed-off-by: Stephen Brawner <brawner@gmail.com>

* Address PR Feedback

Signed-off-by: Stephen Brawner <brawner@gmail.com>
…#1189)

* Unit tests for memory_strategy classes (part 1)

Adds unit tests for:
* strategies/message_pool_memory_strategy.hpp
* memory_strategy.cpp
* message_memory_strategy.cpp

Signed-off-by: Stephen Brawner <brawner@gmail.com>

* Address PR Feedback

Signed-off-by: Stephen Brawner <brawner@gmail.com>

* Update with new macros

Signed-off-by: Stephen Brawner <brawner@gmail.com>
…#1245)

* fix node graph test with Connext and CycloneDDS returning actual data

Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>

* use ADD_FAILURE()

Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
)

* fix failing test with Connext since it doesn't wait for discovery

Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>

* Check for added service in the node graph

Signed-off-by: Stephen Brawner <brawner@gmail.com>

Co-authored-by: Stephen Brawner <brawner@gmail.com>
…1251)

It turns out rmw_connext_cpp adds a default waitable that other rmw
implementations do not. Adjusting the unit test to take this into
account in a non-rmw specific manner.

Signed-off-by: Stephen Brawner <brawner@gmail.com>
* Increase timeouts for connext for long tests

Signed-off-by: Stephen Brawner <brawner@gmail.com>

* Fix cmakelists

Signed-off-by: Stephen Brawner <brawner@gmail.com>
* Fix allocator memory strategy for connext

Signed-off-by: Stephen Brawner <brawner@gmail.com>

* PR Feedback

Signed-off-by: Stephen Brawner <brawner@gmail.com>
@brawner brawner force-pushed the brawner/rclcpp-backport-tests-part2 branch from f4ff384 to def9730 Compare October 7, 2020 18:31
@brawner brawner changed the base branch from brawner/rclcpp-backport-1222 to brawner/rclcpp-backport-tests-part1 October 7, 2020 18:31
@brawner
Copy link
Contributor Author

brawner commented Oct 7, 2020

Rebase and merging into #1383 so that PR can act as the ultimate feature branch.

@brawner brawner merged commit 93839e1 into brawner/rclcpp-backport-tests-part1 Oct 7, 2020
@delete-merged-branch delete-merged-branch bot deleted the brawner/rclcpp-backport-tests-part2 branch October 7, 2020 18:33
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

3 participants