Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.

Enable and fix rosmsg tests#751

Closed
gerkey wants to merge 31 commits intoindigo-develfrom
enable_tests
Closed

Enable and fix rosmsg tests#751
gerkey wants to merge 31 commits intoindigo-develfrom
enable_tests

Conversation

@gerkey
Copy link
Copy Markdown
Contributor

@gerkey gerkey commented Feb 23, 2016

As noted in #709, the test suite for rosmsg has long been disabled. This PR enables the test suite and updates the tests to make them pass. In some cases, it could be argued that instead the code should be updated instead of the tests. But I feel that's it's less risky to update the tests to match the long-standing behavior of the code.

alex and others added 7 commits September 28, 2015 02:56
Fixed most tests by replacing test_ros with test_rosmaster, which is apparently
the new location for the messages and services that this test suite needs. There
are still a few failing tests, which look like actual problems, related to how
rosmsg, in raw mode, is resolving types that appear elsewhere, like `Empty`.
…kage names prepended like get_msg_text(_,raw=False) does
…age names prepended like get_srv_text(,raw=False) does
@dirk-thomas
Copy link
Copy Markdown
Member

The failing test from roswtf (test_offline) is a known problem (see #752). But the other failing tests are related to this PR.

@dirk-thomas
Copy link
Copy Markdown
Member

@ros-pull-request-builder retest this please

eric-wieser and others added 14 commits March 3, 2016 20:08
roslaunch-check fails for heqtor_quadrotor_gazebo
```
$ rosrun roslaunch roslaunch-check  /opt/ros/indigo/share/hector_quadrotor_gazebo/launch/quadrotor_empty_world.launch
checking /opt/ros/indigo/share/hector_quadrotor_gazebo/launch/quadrotor_empty_world.launch
...writing test results to /home/k-okada/.ros/test_results/hector_quadrotor_gazebo/rosunit-roslaunch_check_quadrotor_empty_world_launch.xml
FAILURE:
[/opt/ros/indigo/share/hector_quadrotor_gazebo/launch/quadrotor_empty_world.launch]:
	Missing package dependencies: hector_quadrotor_gazebo/package.xml: gazebo_ros, hector_quadrotor_controller
Missing package dependencies: hector_quadrotor_controller/package.xml: controller_manager
```
but it has dependency like
```
$ rospack depends-why --target gazebo_ros hector_quadrotor_gazebo
Dependency chains from hector_quadrotor_gazebo to gazebo_ros:
* hector_quadrotor_gazebo -> gazebo_plugins -> gazebo_ros
* hector_quadrotor_gazebo -> hector_gazebo_plugins -> gazebo_ros
* hector_quadrotor_gazebo -> hector_sensors_gazebo -> gazebo_plugins -> gazebo_ros
* hector_quadrotor_gazebo -> hector_sensors_gazebo -> hector_gazebo_plugins -> gazebo_ros
* hector_quadrotor_gazebo -> hector_quadrotor_gazebo_plugins -> gazebo_ros
* hector_quadrotor_gazebo -> hector_quadrotor_gazebo_plugins -> hector_gazebo_plugins -> gazebo_ros
* hector_quadrotor_gazebo -> hector_quadrotor_controller_gazebo -> gazebo_ros_control -> gazebo_ros
```
do not fail if other package.xml provides package required
…param to stdout.

If no filename is passed to rosparam load or if '-' is passed as
the filename, rosparam will attempt to read yaml from stdin. This
allows piping yaml into rosparam.

If no filename is specified to rosparam dump or if the filename is
"-", dumps the rosparam yaml to stdout, allowing it to be piped
into other programs.
Fixed most tests by replacing test_ros with test_rosmaster, which is apparently
the new location for the messages and services that this test suite needs. There
are still a few failing tests, which look like actual problems, related to how
rosmsg, in raw mode, is resolving types that appear elsewhere, like `Empty`.
…kage names prepended like get_msg_text(_,raw=False) does
@gerkey
Copy link
Copy Markdown
Contributor Author

gerkey commented Mar 10, 2016

The test failures were caused by:

Unknown message class: geometry_msgs/Polygon

I added a test_depend on geometry_msgs in efff5a4.

@gerkey
Copy link
Copy Markdown
Contributor Author

gerkey commented Mar 10, 2016

Replaced by #764.

@gerkey gerkey closed this Mar 10, 2016
@dirk-thomas dirk-thomas deleted the enable_tests branch March 17, 2016 22:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants