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

rostest - Executable not rebuilding

asked 2014-07-08 16:44:42 -0600

David Lu gravatar image

I am trying to write rostests for the clear_costmap_recovery package. [relevant code]

Is there a way to build the tests for only one package?

Running catkin_make or catkin_make clear_costmap_recovery do not rebuild the test executable.

Running catkin_make run_tests does rebuild the test executable, but also runs ALL the tests in the navigation package.

Running catkin_make run_tests_clear_costmap_recovery runs only the relevant tests, but does NOT rebuild the test executable.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-07-08 17:17:40 -0600

joq gravatar image

I think you can do it like this:

catkin_make tests
catkin_make run_tests_clear_costmap_recovery

Those targets can probably share the same command line.

edit flag offensive delete link more

Comments

Good call. And yes, they can share the same line. Thanks joq.

David Lu gravatar image David Lu  ( 2014-07-09 10:55:31 -0600 )edit

Although, wouldn't you think that run_tests_clear_costmap_recovery would build the tests if run_tests does?

David Lu gravatar image David Lu  ( 2014-07-09 16:46:47 -0600 )edit

``run_tests`` depends on ``tests``, but the package-specific ones don't. That may have been a conscious choice. It can sometimes be useful, once you understand how it works.

joq gravatar image joq  ( 2014-07-10 17:05:33 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2014-07-08 16:44:42 -0600

Seen: 380 times

Last updated: Jul 08 '14