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

rosmake + make test? Automated testing?

asked 2013-06-05 07:02:51 -0600

madmax gravatar image

I am wondering how I could automate the build of my unit tests.

Because right now I have to call make test in every package.
But I would like to automate this, to build for every package that has a test in it.

Something like a rosmake command for testing would be ideal.
Or can I add something to the makefile, so rosmake will also build the test?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2013-06-05 22:42:03 -0600

madmax gravatar image

Ok, I should have searched for rosmake options. ;-)
There is a command rosmake [PACKAGE] -t that builds and tests the package.
But it calls make test only for the package specified and not for the packages it depends on...

edit flag offensive delete link more
2

answered 2013-10-07 05:40:30 -0600

anonymous user

Anonymous

I reached the same conclusion: there is, AFAIK, no way of building and running tests for all package dependencies of a given package. 'rosmake -t foo' will only compile and run the tests for package 'foo', but not for its dependencies.

I wrote a small script to do that. This script calls 'make test' in all dependencies of the given package and presents the results in a fancy way. Available here, hope it helps! https://sites.google.com/site/rameyarnaud/misc/ros/ros-unit-tests-compilation

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-06-05 07:02:51 -0600

Seen: 310 times

Last updated: Oct 07 '13