Skip to content

Added tests for services - #42

Merged
esteve merged 1 commit into
masterfrom
test-services
Oct 13, 2015
Merged

esteve merged 1 commit into
masterfrom
test-services

Conversation

@esteve

@esteve esteve commented Sep 2, 2015

Copy link
Copy Markdown
Member

No description provided.

@esteve esteve added in progress Actively being worked on (Kanban column) in review Waiting for review (Kanban column) and removed in progress Actively being worked on (Kanban column) labels Sep 2, 2015
@esteve esteve self-assigned this Sep 2, 2015
@tfoote

tfoote commented Sep 2, 2015

Copy link
Copy Markdown
Contributor

+1

Comment thread test_rclcpp/CMakeLists.txt Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why is this dependency needed? The new service file seems to only use primitive types.

Same for the package.xml file.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good catch. Fixed

@esteve

esteve commented Sep 3, 2015

Copy link
Copy Markdown
Member Author

This PR fails on Windows because it depends on GTest, which is not installed on our CI slave. Should we install it or just check if it's installed and fail if not? I'd rather the tests run on Windows, especially these as services are currently broken on Windows.

@esteve

esteve commented Sep 3, 2015

Copy link
Copy Markdown
Member Author

I just realized I forgot to add ament_add_gtest, that may be cause.

@dirk-thomas

Copy link
Copy Markdown
Member

The error on the Windows slave (http://ci.ros2.org/job/ros2_batch_ci_windows/364/console) is:

fatal error C1083: Cannot open include file: 'gtest/gtest.h': No such file or directory

And it looks like that you don't set the include directories for the target but only link against the library. For the launch based invocation you can't use ament_add_gtest anyway.

@dirk-thomas

Copy link
Copy Markdown
Member

You might want to try again with ament/ament_cmake#28 being merged.

@dirk-thomas

Copy link
Copy Markdown
Member

Still not passing CI. Moving back to in-progress.

@dirk-thomas dirk-thomas added in progress Actively being worked on (Kanban column) and removed in review Waiting for review (Kanban column) labels Sep 8, 2015
@tfoote

tfoote commented Sep 15, 2015

Copy link
Copy Markdown
Contributor

From our discussion we'll split this into the parts of this that pass with ros2/rclcpp#52 and merge that so we can close that out. And leave the rest of this continuing to block.

@esteve
esteve force-pushed the test-services branch 2 times, most recently from ebb8ca2 to 8140017 Compare September 15, 2015 22:03
@esteve esteve mentioned this pull request Sep 15, 2015
@esteve

esteve commented Sep 15, 2015

Copy link
Copy Markdown
Member Author

I've spun off the test for ros2/rclcpp#52 into test-read-condition and left only the basic test for services.

@esteve
esteve force-pushed the test-services branch 2 times, most recently from 41f2313 to 8ea61f0 Compare September 16, 2015 00:52
@esteve esteve added in review Waiting for review (Kanban column) and removed in progress Actively being worked on (Kanban column) labels Sep 17, 2015
Comment thread test_rclcpp/CMakeLists.txt Outdated

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'm going to run this on Windows and check if this code works, otherwise I'll set the paths to the executables manually.

@esteve

esteve commented Sep 17, 2015

Copy link
Copy Markdown
Member Author

I had to revert the get_target_property patch and set the path to the test executables manually. Windows runs the tests, tested locally.

@jackieokay

Copy link
Copy Markdown
Contributor

I will test this again once the durability PRs are merged.

@jackieokay

Copy link
Copy Markdown
Contributor

Tests pass on Linux and OSX!

And it looks like the services test passes on Windows for Opensplice but not Connext or Connext Dynamic.

@esteve

esteve commented Oct 13, 2015

Copy link
Copy Markdown
Member Author

Hooray! Will squash and merge this PR.

esteve added a commit that referenced this pull request Oct 13, 2015
@esteve
esteve merged commit 3da890f into master Oct 13, 2015
@esteve esteve removed the in review Waiting for review (Kanban column) label Oct 13, 2015
@esteve
esteve deleted the test-services branch October 13, 2015 21:28
@jackieokay jackieokay mentioned this pull request Oct 14, 2015
@esteve esteve mentioned this pull request Oct 23, 2015
14 of 21 tasks
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.

4 participants