ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

testing launch files in install_space?

asked 2016-08-10 04:12:40 -0600

mgruhler gravatar image

updated 2016-08-10 04:42:34 -0600

Hi all,

The question I have is actually pretty short:

Is there a way to run roslaunch checks in an install space?

Let me give you a short rationale of my current thoughts:

In ROS, there are three different types of tests you can have (afaik):

  1. Unit Tests (using gtest or unittest) for testing functionality
  2. rostests for testing ROS Nodes and other ROS stuff (e.g. publishers/subscribers)
  3. roslaunch checks (very bottom of the page) using roslaunch_add_file_check

IMO, 1. and 2. should be run in the build/devel space, as those test targets and launchfiles should not be installed (even though there are some packages doing this, e.g. gazebo_plugins/test/set_model_state_test, which then does fail as the required test executable is not, and cannot be, installed.)

However, for 3. it would be beneficial to check this in the install space as well. This would help to detect missing install tags of executables, launch files and yaml files.

How can I achieve this? catkin_make run_tests is always running in devel/build/src.

edit retag flag offensive close merge delete

Comments

@William@tfoote maybe some insights from you?

mgruhler gravatar image mgruhler  ( 2016-08-15 01:31:27 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-08-18 12:52:36 -0600

tfoote gravatar image

The testing frameworks are not available when installed. If you want to test a packages installed resources you can create another package which depends on the package you want to test, and then test it on top of the installed version of the dependency. So that the package with the tests is still in the buildspace but it can test the resources from the install space.

edit flag offensive delete link more

Comments

@tfoote thanks.

mgruhler gravatar image mgruhler  ( 2016-08-19 01:20:46 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2016-08-10 04:12:40 -0600

Seen: 363 times

Last updated: Aug 18 '16