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

Revision history [back]

click to hide/show revision 1
initial version

OK so the CMakelists.txt file was in the test directory. Basically everything got confused as to where the test file was during the build.

Solution explicitly state where the file is in the project:

rosbuild_add_rostest(${PROJECT_SOURCE_DIR}/test/differential_drive.test)

or, per my example:

rosbuild_add_rostest(${PROJECT_SOURCE_DIR}/smurf/differential_drive.test)

OK so the CMakelists.txt file was in the test directory. Basically everything got confused as to where the test file was during the build.

Solution Solution, explicitly state where the file is in the project:

rosbuild_add_rostest(${PROJECT_SOURCE_DIR}/test/differential_drive.test)

or, per my example:

rosbuild_add_rostest(${PROJECT_SOURCE_DIR}/smurf/differential_drive.test)