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 testing for Jazzy packages #4

Open
wants to merge 9 commits into
base: ros2-jazzy
Choose a base branch
from

Conversation

emdemir
Copy link
Member

@emdemir emdemir commented Dec 17, 2024

Depends on EddyGharib/rules_ros2#7.

With this, it should be possible to test ros2_rosidl, ros2_rcl and ros2_rcl_interfaces. The first two are not fully covered yet but it's a start and verifies that the packages are built correctly at the basic level.

To test, do the following:

# Inside ros2-bazel-tools
$ ./create_workspace.py --registry path/to/bazel-public-registry --registry path/to/bazel-central-registry
# For each package:
$ cd workspace/ros2_rosidl
# Required because we don't support Bazel 8 at the moment
$ echo 7.4.1 > .bazelversion
# --cxxopt required for ros2_rcl since osrf_testing_tools_cpp needs it
$ bazel test //... --cxxopt=-std=c++17

This is no longer used and isn't included in the workspace.
These two tests are all the tests present in ros2_rcl_interfaces and
they pass.
A lot of tests are missing but this at least verifies that the package
works.
These are unconditionally included in the headers so should be included
when building too; otherwise we get missing symbol errors when linking
tests.
There are still type support tests and such missing, but this at least
verifies package functionality.
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.

1 participant