Skip to content

Commit

Permalink
[hironx_head] Move tests to downstream to avoid circular dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
130s committed Mar 5, 2017
1 parent eff4ab5 commit 54aeb2e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions hironx_head_action/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ install(DIRECTORY test launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
USE_SOURCE_PERMISSIONS)

if (CATKIN_ENABLE_TESTING)
find_package(catkin REQUIRED COMPONENTS rostest)
add_rostest(test/test-head-action.test)
endif()
# System tests are done in the downstream, hironx_ros_bridge pkg.
# Because system tests require some launch files hironx_ros_bridge provides, but
# then hironx_ros_bridge depends on this package so that circular dependency
# occurs. That's why tests are moved there to avoid circular.
1 change: 0 additions & 1 deletion hironx_head_action/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,5 @@
<run_depend>tf</run_depend>
<run_depend>tf_conversions</run_depend>
<run_depend>trajectory_msgs</run_depend>
<test_depend>hironx_ros_bridge</test_depend>
<test_depend>rostest</test_depend>
</package>
2 changes: 2 additions & 0 deletions hironx_ros_bridge/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ add_rostest(test/test-hironx-ros-bridge-pose.test)
add_rostest(test/test-hironx-ros-bridge-controller.test)

if (CATKIN_ENABLE_TESTING)
find_package(catkin REQUIRED COMPONENTS rostest)
catkin_add_nosetests(test/test_no_ros.py)
add_rostest(test/test_head_action.test)
endif()

roslint_python(scripts/hironx.py src/hironx_ros_bridge/hironx_client.py src/hironx_ros_bridge/ros_client.py src/hironx_ros_bridge/constant.py)
Expand Down
File renamed without changes.

0 comments on commit 54aeb2e

Please sign in to comment.